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. | |
| ostream & | operator<< (ostream &stream, const PrintableObject &obj) |
| template<class B > | |
| B | shared_cast (SharedObject &A) |
| Typecast a shared object to a base class to a shared object to a derived class, cf. dynamic_cast. | |
| 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) | |
| template<class A > | |
| A | deepcopy (const A &a) |
| Make a deep copy of an object (Note: default is a shallow copy!) | |
| template<class A > | |
| 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) |
| 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.
| A CasADi::deepcopy | ( | const A & | a, |
| std::map< SharedObjectNode *, SharedObject > & | already_copied | ||
| ) |
Definition at line 254 of file shared_object.hpp.
| 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.
| 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.
| 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.
| 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.