Classes | Functions
CasADi Namespace Reference

Classes

class  CasadiException
 Casadi exception class. More...
 
class  PrintableObject
 Base class for objects that have a natural string representation. More...
 
class  SharedObject
 SharedObject implements a reference counting framework simular for effient and easily-maintained memory management. More...
 
class  SharedObjectNode
 Internal class for the reference counting framework, see comments on the public class. More...
 

Functions

template<class B >
bool is_a (const SharedObject &A)
 Check if a shared object is of a certain type. More...
 
ostream & operator<< (ostream &stream, const PrintableObject &obj)
 
template<class B >
shared_cast (SharedObject &A)
 Typecast a shared object to a base class to a shared object to a derived class, cf. dynamic_cast. More...
 
template<class B >
const B shared_cast (const SharedObject &A)
 Typecast a shared object to a base class to a shared object to a derived class, cf. dynamic_cast (const) More...
 
template<class A >
deepcopy (const A &a)
 Make a deep copy of an object (Note: default is a shallow copy!) More...
 
template<class A >
deepcopy (const A &a, std::map< SharedObjectNode *, SharedObject > &already_copied)
 
template<class A >
std::vector< A > deepcopy (const std::vector< A > &a, std::map< SharedObjectNode *, SharedObject > &already_copied)
 

Function Documentation

template<class A >
A CasADi::deepcopy ( const A &  a)

Make a deep copy of an object (Note: default is a shallow copy!)

Definition at line 247 of file shared_object.hpp.

template<class A >
A CasADi::deepcopy ( const A &  a,
std::map< SharedObjectNode *, SharedObject > &  already_copied 
)

Definition at line 254 of file shared_object.hpp.

template<class A >
std::vector<A> CasADi::deepcopy ( const std::vector< A > &  a,
std::map< SharedObjectNode *, SharedObject > &  already_copied 
)

Definition at line 261 of file shared_object.hpp.

template<class B >
bool CasADi::is_a ( const SharedObject A)

Check if a shared object is of a certain type.

Definition at line 239 of file shared_object.hpp.

ostream& CasADi::operator<< ( ostream &  stream,
const PrintableObject obj 
)

Definition at line 31 of file printable_object.cpp.

template<class B >
B CasADi::shared_cast ( SharedObject A)

Typecast a shared object to a base class to a shared object to a derived class, cf. dynamic_cast.

Get a pointer to the node

Create a return object

Assign node of B and return

Null pointer if not pointing towards the right type of object

Definition at line 212 of file shared_object.hpp.

template<class B >
const B CasADi::shared_cast ( const SharedObject A)

Typecast a shared object to a base class to a shared object to a derived class, cf. dynamic_cast (const)

Definition at line 232 of file shared_object.hpp.



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