Go to the source code of this file.
|
| namespace | agx |
| | The agx namespace contains the dynamics/math part of the AGX Dynamics API.
|
| |
| namespace | agxData |
| | Contains classes for low level data storage for AGX.
|
| |
|
| | agx::AGX_DECLARE_HASHSET_TYPES (Object) |
| |
| AGXCORE_EXPORT void | agx::createBuiltinModel (const char *path, Model *parent, std::atomic< Model * > &result) |
| |
| AGXCORE_EXPORT void | agx::createImplementedModel (const char *path, std::atomic< Model * > &result) |
| |
| AGXCORE_EXPORT Model * | agx::getModel (const char *path, const Path &_namespace=Path()) |
| |
| AGXCORE_EXPORT Model * | agx::getModel (const Path &path, const Name &implementation, const Path &_namespace=Path()) |
| |
| template<typename T > |
| T * | agx::getModel (const Path &path, const Name &implementation, const Path &_namespace=Path()) |
| |
| AGXCORE_EXPORT Model * | agx::getModel (const Path &path, const Path &_namespace=Path()) |
| |
| template<typename T > |
| T * | agx::getModel (const Path &path, const Path &_namespace=Path()) |
| |
| AGXCORE_EXPORT Model * | agx::getModel (const String &path, const Path &_namespace=Path()) |
| |
| AGXCORE_EXPORT Model * | agx::getModel (TiXmlElement *element) |
| |
| AGXCORE_EXPORT agx::ReentrantMutex & | agx::getTypeSystemMutex () |
| |
| AGXCORE_EXPORT void | agx::printNode (const char *path) |
| | Debugging.
|
| |
| AGXCORE_EXPORT Component * | agx::root () |
| |
◆ AGX_BUILTIN_MODEL
| #define AGX_BUILTIN_MODEL |
( |
|
_class, |
|
|
|
_path, |
|
|
|
_parent |
|
) |
| |
Value:
{ \
static std::atomic<agx::Model*> s_model = nullptr; \
\
\
if (tmp) \
return tmp; \
\
tmp = s_model.
load(std::memory_order_relaxed); \
if (!tmp) { \
agx::createBuiltinModel(_path, _parent, s_model); \
tmp = s_model.
load(std::memory_order_relaxed); \
} \
\
return tmp; \
}
static Component * load(const String &path, const Path &_namespace=Path())
A model is an abstract representation of the class of an agx::Object.
AGXCORE_EXPORT agx::ReentrantMutex & getTypeSystemMutex()
Definition at line 353 of file Object.h.
◆ AGX_MODEL_IMPLEMENTATION
| #define AGX_MODEL_IMPLEMENTATION |
( |
|
_class, |
|
|
|
_path |
|
) |
| |
Value:
{ \
static std::atomic<agx::Model*> s_model = nullptr; \
\
\
if (tmp) \
return tmp; \
\
tmp = s_model.
load(std::memory_order_relaxed); \
if (!tmp) { \
agx::createImplementedModel(_path, s_model); \
tmp = s_model.
load(std::memory_order_relaxed); \
} \
\
if (!tmp) \
return tmp; \
}
static AgXString format(const char *format,...)
C printf formatting of a string.
Definition at line 330 of file Object.h.