Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | Friends | List of all members
CasADi::SharedObjectNode Class Referenceabstract

Internal class for the reference counting framework, see comments on the public class. More...

#include <shared_object.hpp>

Inheritance diagram for CasADi::SharedObjectNode:
Inheritance graph
[legend]

Public Member Functions

void assertInit () const
 Assert that the object has been initialized. More...
 
virtual SharedObjectNodeclone () const =0
 Make a deep copy of the instance. More...
 
virtual void deepCopyMembers (std::map< SharedObjectNode *, SharedObject > &already_copied)
 Deep copy data members. More...
 
int getCount () const
 Get the reference count. More...
 
virtual void init ()
 Initialize the object. More...
 
bool isInit () const
 Check if the object has been initialized. More...
 
SharedObjectNodeoperator= (const SharedObjectNode &node)
 Assignment operator. More...
 
virtual void print (std::ostream &stream) const
 Print a destription of the object. More...
 
virtual void repr (std::ostream &stream) const
 Print a representation of the object. More...
 
 SharedObjectNode ()
 Default constructor. More...
 
 SharedObjectNode (const SharedObjectNode &node)
 Copy constructor. More...
 
virtual ~SharedObjectNode ()=0
 Destructor. More...
 

Protected Member Functions

template<class B >
shared_from_this ()
 Get a shared object from the current internal object. More...
 
template<class B >
const B shared_from_this () const
 Get a shared object from the current internal object. More...
 

Protected Attributes

bool is_init_
 Has the function been initialized? More...
 

Private Attributes

unsigned int count
 Number of references pointing to the object. More...
 

Friends

class SharedObject
 

Detailed Description

Internal class for the reference counting framework, see comments on the public class.

Definition at line 153 of file shared_object.hpp.

Constructor & Destructor Documentation

CasADi::SharedObjectNode::SharedObjectNode ( )

Default constructor.

Definition at line 112 of file shared_object.cpp.

CasADi::SharedObjectNode::SharedObjectNode ( const SharedObjectNode node)

Copy constructor.

Definition at line 36 of file shared_object.cpp.

CasADi::SharedObjectNode::~SharedObjectNode ( )
pure virtual

Destructor.

Definition at line 117 of file shared_object.cpp.

Member Function Documentation

void CasADi::SharedObjectNode::assertInit ( ) const

Assert that the object has been initialized.

Definition at line 222 of file shared_object.cpp.

virtual SharedObjectNode* CasADi::SharedObjectNode::clone ( ) const
pure virtual

Make a deep copy of the instance.

Implemented in ExportVariableInternal, ExportArgumentInternal, ExportIndexNode, and ExportDataInternal.

void CasADi::SharedObjectNode::deepCopyMembers ( std::map< SharedObjectNode *, SharedObject > &  already_copied)
virtual

Deep copy data members.

Reimplemented in ExportArgumentInternal.

Definition at line 207 of file shared_object.cpp.

int CasADi::SharedObjectNode::getCount ( ) const

Get the reference count.

Definition at line 203 of file shared_object.cpp.

void CasADi::SharedObjectNode::init ( )
virtual

Initialize the object.

Definition at line 125 of file shared_object.cpp.

bool CasADi::SharedObjectNode::isInit ( ) const

Check if the object has been initialized.

Definition at line 218 of file shared_object.cpp.

SharedObjectNode & CasADi::SharedObjectNode::operator= ( const SharedObjectNode node)

Assignment operator.

Definition at line 41 of file shared_object.cpp.

void CasADi::SharedObjectNode::print ( std::ostream &  stream) const
virtual

Print a destription of the object.

Definition at line 149 of file shared_object.cpp.

void CasADi::SharedObjectNode::repr ( std::ostream &  stream) const
virtual

Print a representation of the object.

Definition at line 139 of file shared_object.cpp.

template<class B >
B CasADi::SharedObjectNode::shared_from_this ( )
protected

Get a shared object from the current internal object.

Definition at line 272 of file shared_object.hpp.

template<class B >
const B CasADi::SharedObjectNode::shared_from_this ( ) const
protected

Get a shared object from the current internal object.

Definition at line 283 of file shared_object.hpp.

Friends And Related Function Documentation

friend class SharedObject
friend

Definition at line 154 of file shared_object.hpp.

Member Data Documentation

unsigned int CasADi::SharedObjectNode::count
private

Number of references pointing to the object.

Definition at line 207 of file shared_object.hpp.

bool CasADi::SharedObjectNode::is_init_
protected

Has the function been initialized?

Definition at line 203 of file shared_object.hpp.


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


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:35:27