|
MocoExtendProblem: Interface Between OpenSim and MATLAB for Rapidly Developing Direct Collocation Goals in Moco 1.1.0
add custom Moco goals to existing matlab scripts
|
Key-value storage to make a stateful MEX function. More...
#include <dispatch.h>
Public Types | |
| typedef std::map< intptr_t, std::shared_ptr< T > > | InstanceMap |
Static Public Member Functions | |
| static intptr_t | create (T *instance) |
| Create an instance. | |
| static void | destroy (intptr_t id) |
| Destroy an instance. | |
| static void | destroy (const mxArray *pointer) |
| static T * | get (intptr_t id) |
| Retrieve an instance or throw if no instance is found. | |
| static T * | get (const mxArray *pointer) |
| static const T & | getConst (intptr_t id) |
| Retrieve a const instance or throw if no instance is found. | |
| static const T & | getConst (const mxArray *pointer) |
| static bool | exist (intptr_t id) |
| Check if the given id exists. | |
| static bool | exist (const mxArray *pointer) |
| static void | clear () |
| Clear all session instances. | |
| static const InstanceMap & | getInstanceMap () |
| Get instance map. | |
Private Member Functions | |
| Session () | |
| Constructor prohibited. | |
| ~Session () | |
Static Private Member Functions | |
| static intptr_t | getIntPointer (const mxArray *pointer) |
| Convert mxArray to intptr_t. | |
| static InstanceMap * | getInstances () |
| Get static instance storage. | |
Key-value storage to make a stateful MEX function.
| typedef std::map<intptr_t, std::shared_ptr<T> > InstanceMap |
|
inlineprivate |
Constructor prohibited.
|
inlineprivate |
|
inlinestatic |
Clear all session instances.

|
inlinestatic |
Create an instance.

|
inlinestatic |

|
inlinestatic |
Destroy an instance.


|
inlinestatic |

|
inlinestatic |
Check if the given id exists.


|
inlinestatic |

|
inlinestatic |
Retrieve an instance or throw if no instance is found.


|
inlinestatic |

|
inlinestatic |
Retrieve a const instance or throw if no instance is found.


|
inlinestatic |
Get instance map.

|
inlinestaticprivate |
Get static instance storage.

|
inlinestaticprivate |
Convert mxArray to intptr_t.
