AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
agxSDK::LinkedStructureObjectData Struct Reference

Connection back from bodies, constraints etc. More...

#include <LinkedStructureObjectData.h>

+ Inheritance diagram for agxSDK::LinkedStructureObjectData:

Public Member Functions

 LinkedStructureObjectData ()
 
 LinkedStructureObjectData (LinkedSegment *segment)
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor.
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting.
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match.
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test.
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object.
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 

Static Public Member Functions

template<typename T , typename ObjT >
static T * get (const ObjT &obj)
 
template<typename T , typename ObjT , typename... ArgsT>
static agx::ref_ptr< T > getOrCreate (const ObjT &obj, ArgsT &&... args)
 
- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 

Public Attributes

LinkedStructure * linkedStructure
 
LinkedSegment * segment
 

Protected Member Functions

virtual ~LinkedStructureObjectData ()
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor.
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 

Additional Inherited Members

- Static Protected Member Functions inherited from agx::Referenced
static DeleteHandler * getDeleteHandler ()
 
static void setDeleteHandler (DeleteHandler *handler)
 Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Detailed Description

Connection back from bodies, constraints etc.

to a LinkedStructure instance.

Definition at line 29 of file LinkedStructureObjectData.h.

Constructor & Destructor Documentation

◆ LinkedStructureObjectData() [1/2]

agxSDK::LinkedStructureObjectData::LinkedStructureObjectData ( )
inline

Definition at line 50 of file LinkedStructureObjectData.h.

◆ LinkedStructureObjectData() [2/2]

agxSDK::LinkedStructureObjectData::LinkedStructureObjectData ( LinkedSegment *  segment)
inline

Definition at line 55 of file LinkedStructureObjectData.h.

◆ ~LinkedStructureObjectData()

virtual agxSDK::LinkedStructureObjectData::~LinkedStructureObjectData ( )
inlineprotectedvirtual

Definition at line 64 of file LinkedStructureObjectData.h.

Member Function Documentation

◆ get()

template<typename T , typename ObjT >
static T * agxSDK::LinkedStructureObjectData::get ( const ObjT &  obj)
inlinestatic
Returns
InternalData::LINKED_STRUCTURE slot instance if created, otherwise null

Definition at line 45 of file LinkedStructureObjectData.h.

References agx::InternalData::LINKED_STRUCTURE.

◆ getOrCreate()

template<typename T , typename ObjT , typename... ArgsT>
static agx::ref_ptr< T > agxSDK::LinkedStructureObjectData::getOrCreate ( const ObjT &  obj,
ArgsT &&...  args 
)
inlinestatic
Returns
new or already created instance of the InternalData::LINKED_STRUCTURE slot in the given object

Definition at line 36 of file LinkedStructureObjectData.h.

References agx::InternalData::LINKED_STRUCTURE.

Member Data Documentation

◆ linkedStructure

LinkedStructure* agxSDK::LinkedStructureObjectData::linkedStructure

Definition at line 60 of file LinkedStructureObjectData.h.

◆ segment

LinkedSegment* agxSDK::LinkedStructureObjectData::segment

Definition at line 61 of file LinkedStructureObjectData.h.


The documentation for this struct was generated from the following file: