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 45 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 47 of file casadi_misc.hpp.

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

◆ scoped_checkout() [2/3]

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

Definition at line 51 of file casadi_misc.hpp.

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

◆ 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 57 of file casadi_misc.hpp.

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

Member Function Documentation

◆ operator casadi_int()

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

Definition at line 61 of file casadi_misc.hpp.

61  {
62  return mem;
63  }

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