Go to the source code of this file.
Classes | |
class | CasADi::SharedObject |
SharedObject implements a reference counting framework simular for effient and easily-maintained memory management. More... | |
class | CasADi::SharedObjectNode |
Internal class for the reference counting framework, see comments on the public class. More... | |
Namespaces | |
namespace | CasADi |
Functions | |
template<class B > | |
bool | CasADi::is_a (const SharedObject &A) |
Check if a shared object is of a certain type. | |
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. | |
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) | |
template<class A > | |
A | CasADi::deepcopy (const A &a) |
Make a deep copy of an object (Note: default is a shallow copy!) | |
template<class A > | |
A | CasADi::deepcopy (const A &a, std::map< SharedObjectNode *, SharedObject > &already_copied) |
template<class A > | |
std::vector< A > | CasADi::deepcopy (const std::vector< A > &a, std::map< SharedObjectNode *, SharedObject > &already_copied) |