|
AGXDynamics
2.31.1.0
|
An array attribute. More...
#include <Attribute.h>
Inheritance diagram for agxData::ArrayAttribute:Public Types | |
| typedef agx::observer_ptr< const Event > | EventConstObserver |
| typedef agx::ref_ptr< const Event > | EventConstRef |
| typedef agx::observer_ptr< Event > | EventObserver |
| typedef agx::ref_ptr< Event > | EventRef |
Public Member Functions | |
| ArrayAttribute (const agx::Name &name, ScalarAttribute *elementAttribute, Type *arrayType) | |
| virtual | ~ArrayAttribute () |
| void | addListener (EventListener *listener) |
| AGX_DECLARE_VECTOR_TYPES (Event) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| virtual void | buildNavigationTree (agxJson::Value &eNode) const |
| virtual void | configure (TiXmlElement *) |
| agx::String | fullName () const |
| agx::String | fullPath () const |
| agx::String | fullPath (const agx::Object *root) const |
| agx::Object * | getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr) |
| const agx::Object * | getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr) const |
| template<typename T > | |
| T * | getAutoScopedResource (const agx::Path &path) |
| template<typename T > | |
| const T * | getAutoScopedResource (const agx::Path &path) const |
| agx::Object * | getContext () |
| const agx::Object * | getContext () const |
| template<typename T > | |
| T * | getContext () |
| template<typename T > | |
| const T * | getContext () const |
| agxData::Format * | getDefaultFormat () |
| const agxData::Format * | getDefaultFormat () const |
| agxData::Value * | getDefaultValue () |
| const agxData::Value * | getDefaultValue () const |
| ScalarAttribute * | getElementAttribute () |
| const ScalarAttribute * | getElementAttribute () const |
| EntityModel * | getEntity () const |
| agx::Index | getId () const |
| const agx::Name & | getImplementationName () const |
| agx::Model * | getModel () |
| const agx::Model * | getModel () const |
| const agx::Name & | getName () const |
| agx::Object * | getNextSibling () |
| const agx::Object * | getNextSibling () const |
| agxData::Value * | getNumElements () |
| const agxData::Value * | getNumElements () const |
| agx::Path | getPath () const |
| agx::Path | getPath (const agx::Object *root) const |
| int | getReferenceCount () const |
| agx::Object * | getResource (const agx::Path &path, agx::Model *model=nullptr) |
| const agx::Object * | getResource (const agx::Path &path, agx::Model *model=nullptr) const |
| template<typename T > | |
| T * | getResource (const agx::Path &path) |
| template<typename T > | |
| const T * | getResource (const agx::Path &path) const |
| virtual agx::Object * | getResourceImpl (const agx::Path &path, agx::Model *model) |
| agx::Object * | getRootContext () |
| const agx::Object * | getRootContext () const |
| agxData::Type * | getType () |
| const agxData::Type * | getType () const |
| bool | hasListener (EventListener *listener) |
| bool | hasParent (const agx::Object *node) const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| bool | isUnique () const |
| virtual void | printSubtree () const |
| virtual void | rebind () |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | removeListener (EventListener *listener) |
| virtual void | save (TiXmlElement *) const |
| virtual void | setContext (agx::Object *context) |
| void | setDefaultFormat (agxData::Format *format) |
| void | setDefaultValue (agxData::Value *value) |
| void | setId (UInt32 id) |
| void | setModel (agx::Model *model) |
| Set the object model (handled automatically). More... | |
| void | setName (const agx::Name &name) |
| Set the name of the object. More... | |
| virtual void | snapshot (TiXmlNode *, const String &) const |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
Static Public Member Functions | |
| static agx::Model * | ClassModel () |
| static agx::String | generateName (const agx::String &bindPath) |
| static const HashSet< Object * > & | getActiveObjects () |
| static bool | getEnableRebind () |
| Should rebinding be allowed? Right now a global setting. More... | |
| static Object * | load (TiXmlElement *eObject, Device *device) |
| static Object * | load (const String &path, Device *device, const String &type="", size_t instance=0) |
| static Object * | load (const String &path, Device *device, const String &type, const String &attribute, const String &value) |
| static void | load (const String &path, Device *device, ObjectPtrVector &loadedObjects) |
| static ArrayAttribute * | load (agx::TiXmlElement *eAttribute) |
| static TiXmlDocument | openDocument (const String &path) |
| static void | setEnableRebind (bool flag) |
| Sets if rebinding of objects should be allowed (Right now a global setting). More... | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Protected Member Functions | |
| ArrayAttribute () | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
| void | setEntity (EntityModel *entity) |
| void | setId (agx::Index id) |
Static Protected Member Functions | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Protected Attributes | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
An array attribute.
Definition at line 218 of file Attribute.h.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
| agxData::ArrayAttribute::ArrayAttribute | ( | const agx::Name & | name, |
| ScalarAttribute * | elementAttribute, | ||
| Type * | arrayType | ||
| ) |
|
virtual |
|
inlineprotected |
Definition at line 230 of file Attribute.h.
|
inherited |
|
inherited |
|
protectedinherited |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), agx::InternalData::getOrCreate(), and agx::InternalData::hasData().
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
|
virtualinherited |
Reimplemented in agxData::Buffer, agxData::Value, agx::Model, agx::Component, and agx::Pointer.
|
static |
|
inlinevirtualinherited |
|
protectedinherited |
|
inherited |
Referenced by agxData::EntityPtr::calculateIndex().
|
inherited |
|
inherited |
|
staticinherited |
|
staticinherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 428 of file Object.h.
References agx::Referenced::is().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 368 of file Attribute.h.
|
inherited |
Definition at line 369 of file Attribute.h.
|
inherited |
Definition at line 372 of file Attribute.h.
|
inherited |
Definition at line 373 of file Attribute.h.
|
staticprotectedinherited |
|
inherited |
Definition at line 380 of file Attribute.h.
|
inherited |
Definition at line 379 of file Attribute.h.
|
staticinherited |
Should rebinding be allowed? Right now a global setting.
|
inherited |
Definition at line 374 of file Attribute.h.
|
inherited |
Definition at line 365 of file Attribute.h.
Referenced by agxData::EntityStorage::getBuffer(), and agxData::EntityStorage::getPermutationBuffer().
|
inherited |
|
inherited |
|
inherited |
Definition at line 369 of file Object.h.
Referenced by agxData::EntityStorage::get(), agxData::FormatBinding< T >::getFormat(), and agxData::EntityPtr::operator()().
|
inherited |
|
inherited |
|
inherited |
Definition at line 370 of file Attribute.h.
|
inherited |
Definition at line 371 of file Attribute.h.
|
inherited |
Referenced by agxData::EntityStorage::dereferenceMultipliedAttribute(), and agxData::EntityInstance::verifyIndex().
|
inherited |
| root | A node along the parent path from this object. |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 414 of file Object.h.
References agx::Referenced::is().
|
inherited |
|
virtualinherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 366 of file Attribute.h.
|
inherited |
Definition at line 367 of file Attribute.h.
|
inherited |
|
inherited |
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::EntityStorage::getInstances(), and agx::Object::getResource().
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
static |
|
staticinherited |
|
inlinevirtualinherited |
Reimplemented in agx::Component.
|
inlinevirtualinherited |
Reimplemented in agx::Task, agx::Clock, agx::Parameter, agxData::Value, agx::Component, agxIO::KeyEvent, and agxData::FunctionValue.
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
|
inherited |
|
inlinevirtualinherited |
Reimplemented in agx::Clock.
|
virtualinherited |
Reimplemented in agx::Task, and agxData::FunctionValue.
|
inherited |
|
inherited |
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
|
staticinherited |
Sets if rebinding of objects should be allowed (Right now a global setting).
Allowing it when adding larger parts to the system tree might hit performance, so it might be smarter to disable it first, then add, and then enable again.
|
protectedinherited |
|
protectedinherited |
|
inherited |
Set the object model (handled automatically).
Reimplemented in agx::Component.
Definition at line 106 of file Object.h.
References agx::getModel(), and agx::root().
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
Referenced by agxData::EntityRef< ContactMaterialPtr >::~EntityRef().
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
|
staticinherited |
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.