AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
agxData::EntityRef< PtrT > Class Template Reference

An entity reference is a safe/referencing handle to an entity instance whose model is descendant from Referenced.agxEntity. More...

#include <EntityRef.h>

+ Inheritance diagram for agxData::EntityRef< PtrT >:

Public Member Functions

 EntityRef ()
 
 EntityRef (agxData::EntityStorage *storage, agx::Index id)
 
 EntityRef (const agxData::EntityPtr &other)
 
 EntityRef (const agxData::EntityRef< PtrT > &other)
 
 ~EntityRef ()
 
void init (agxData::EntityStorage *storage, agx::Index id)
 
EntityRef< PtrT > & operator= (const EntityRef< PtrT > &other)
 

Detailed Description

template<typename PtrT>
class agxData::EntityRef< PtrT >

An entity reference is a safe/referencing handle to an entity instance whose model is descendant from Referenced.agxEntity.

  1. Provides shared ownership of an entity instance in a storage.
  2. It also holds a strong retain to the storage in which the entity is allocated.
  3. It is automatically updated when an entity is transferred from one storage to another.

Definition at line 34 of file EntityRef.h.

Constructor & Destructor Documentation

◆ EntityRef() [1/4]

template<typename PtrT >
agxData::EntityRef< PtrT >::EntityRef

Definition at line 57 of file EntityRef.h.

◆ EntityRef() [2/4]

template<typename PtrT >
agxData::EntityRef< PtrT >::EntityRef ( agxData::EntityStorage *  storage,
agx::Index  id 
)

Definition at line 60 of file EntityRef.h.

◆ EntityRef() [3/4]

template<typename PtrT >
agxData::EntityRef< PtrT >::EntityRef ( const agxData::EntityRef< PtrT > &  other)

Definition at line 66 of file EntityRef.h.

◆ EntityRef() [4/4]

template<typename PtrT >
agxData::EntityRef< PtrT >::EntityRef ( const agxData::EntityPtr &  other)

Definition at line 72 of file EntityRef.h.

◆ ~EntityRef()

template<typename PtrT >
agxData::EntityRef< PtrT >::~EntityRef

Definition at line 78 of file EntityRef.h.

Member Function Documentation

◆ init()

template<typename PtrT >
void agxData::EntityRef< PtrT >::init ( agxData::EntityStorage *  storage,
agx::Index  id 
)

Definition at line 129 of file EntityRef.h.

◆ operator=()

template<typename PtrT >
EntityRef< PtrT > & agxData::EntityRef< PtrT >::operator= ( const EntityRef< PtrT > &  other)

Definition at line 138 of file EntityRef.h.


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