List of all members | Public Member Functions
casadi::scoped_checkout< T > Class Template Reference

#include <casadi_misc.hpp>

Detailed Description

template<typename T>
class casadi::scoped_checkout< T >

Definition at line 44 of file casadi_misc.hpp.

Public Member Functions

 scoped_checkout (const T &proto)
 
 scoped_checkout (scoped_checkout &&that)
 
 scoped_checkout (const scoped_checkout &that)=delete
 
 ~scoped_checkout ()
 
 operator casadi_int () const
 

Constructor & Destructor Documentation

◆ scoped_checkout() [1/3]

template<typename T >
casadi::scoped_checkout< T >::scoped_checkout ( const T &  proto)
inline

Definition at line 46 of file casadi_misc.hpp.

46  : proto_(proto) {
47  mem = proto_.checkout();
48  }

◆ scoped_checkout() [2/3]

template<typename T >
casadi::scoped_checkout< T >::scoped_checkout ( scoped_checkout< T > &&  that)
inline

Definition at line 50 of file casadi_misc.hpp.

50  : mem(that.mem), proto_(that.proto_) {
51  that.mem = -1;
52  }

◆ scoped_checkout() [3/3]

template<typename T >
casadi::scoped_checkout< T >::scoped_checkout ( const scoped_checkout< T > &  that)
delete

◆ ~scoped_checkout()

template<typename T >
casadi::scoped_checkout< T >::~scoped_checkout ( )
inline

Definition at line 56 of file casadi_misc.hpp.

56  {
57  if (mem!=-1) proto_.release(mem);
58  }

Member Function Documentation

◆ operator casadi_int()

template<typename T >
casadi::scoped_checkout< T >::operator casadi_int ( ) const
inline

Definition at line 60 of file casadi_misc.hpp.

60  {
61  return mem;
62  }

The documentation for this class was generated from the following file: