AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
agxSensor::RtRegistry Class Reference

Registry allowing value storage mapped to raytrace entities. More...

#include <RaytraceRegistry.h>

+ Inheritance diagram for agxSensor::RtRegistry:

Public Types

using EntityIdQueue = std::deque< RtEntityId >
 
using EntityIdSet = agx::HashSet< RtEntityId >
 
using EntityIdVector = std::vector< RtEntityId >
 
- Public Types inherited from agx::Singleton
enum  Priority { HIGHEST_PRIORITY = 2147483647 , LOWEST_PRIORITY = 10000 , DEFAULT_PRIORITY = 1073741824 }
 Specifies the ranges of the priority which can be assigned to a singleton at the time of creation. More...
 

Static Public Member Functions

static RtEntityId createId ()
 Creates a new entity ID to use for mapping.
 
static void destroyId (RtEntityId entityId)
 Un-registers the supplied entity ID.
 
template<typename T >
static RtStorage< T > & getOrCreateStorage ()
 Fetches or creates a new storage for the specified type.
 
static bool isDestroyed (RtEntityId entityId)
 
template<typename T >
static const RtStorage< T > & storage ()
 Fetches, but does not create, the storage for the specified type.
 

Additional Inherited Members

- Public Member Functions inherited from agx::Singleton
 Singleton (int priority=DEFAULT_PRIORITY)
 Default constructor.
 
virtual std::string getClassName () const =0
 
int getPriority () const
 Return the shutdown priority of the singleton instance.
 
virtual void shutdown ()=0
 Implement this method to cleanup your Singleton class.
 
- Protected Member Functions inherited from agx::Singleton
virtual ~Singleton ()
 Destructor.
 
void _shutdown ()
 

Detailed Description

Registry allowing value storage mapped to raytrace entities.

Warning
Storing and restoring an agxSensor::RtRegistry may only be conducted using the same standard library implementation version! Stored agxSensor::RtRegistry containers are thus not necessarily transferrable from one system to another!

Definition at line 129 of file RaytraceRegistry.h.

Member Typedef Documentation

◆ EntityIdQueue

Definition at line 133 of file RaytraceRegistry.h.

◆ EntityIdSet

◆ EntityIdVector

Definition at line 132 of file RaytraceRegistry.h.

Member Function Documentation

◆ createId()

static RtEntityId agxSensor::RtRegistry::createId ( )
static

Creates a new entity ID to use for mapping.

Returns
newly created entity ID

◆ destroyId()

static void agxSensor::RtRegistry::destroyId ( RtEntityId  entityId)
static

Un-registers the supplied entity ID.

Parameters
entityId- ID to un-register

◆ getOrCreateStorage()

template<typename T >
RtStorage< T > & agxSensor::RtRegistry::getOrCreateStorage
static

Fetches or creates a new storage for the specified type.

Definition at line 264 of file RaytraceRegistry.h.

◆ isDestroyed()

static bool agxSensor::RtRegistry::isDestroyed ( RtEntityId  entityId)
static
Returns
true if the specified entity ID is un-registered from value mapping or false if the ID is currently in use, or has never been used for value mapping.

◆ storage()

template<typename T >
const RtStorage< T > & agxSensor::RtRegistry::storage
static

Fetches, but does not create, the storage for the specified type.

Definition at line 270 of file RaytraceRegistry.h.

References agx::HashVector< KeyT, DataT, HashT >::end().


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