VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Protected Types | Protected Attributes | Static Protected Attributes | Private Member Functions
makVrv::DtKeyedData Class Reference

This class is used in conjunction with DtKeyedDataManagerTemplate. It represents data associated with a KeyType This key type can be a tuple like (camera, stream, thread id) Usage of this class is thread safe.

Classes

struct  UserDataCreationResult
 

Public Member Functions

 DtKeyedData (DtDe &de, const std::string &name)
 
virtual ~DtKeyedData ()
 
template<class ClassToCreate , class... ConstructorArgs>
UserDataCreationResult getOrCreateUserData (const void *userPointer, DtVirtualBaseClassCreator< ClassToCreate, ConstructorArgs...> *creator, ConstructorArgs &&...constructorArgs)
 
virtual DtKeyedDataUserDatafindUserData (const void *userPointer) const
 
virtual void deleteUserData (const void *userPointer)
 

Protected Types

typedef
tbb::concurrent_hash_map
< const void
*, DtKeyedDataUserData * > 
UserDataHashTable
 

Protected Attributes

DtDemyDe
 
UserDataHashTable myUserDataHashTable
 
const std::string myName
 

Static Protected Attributes

static std::atomic< inttheCount
 

Private Member Functions

 DtKeyedData ()=delete
 
 DtKeyedData (const DtKeyedData &rhs)=delete
 
DtKeyedDataoperator= (const DtKeyedData &rhs)=delete
 

Member Typedef Documentation

typedef tbb::concurrent_hash_map< const void*, DtKeyedDataUserData*> makVrv::DtKeyedData::UserDataHashTable
protected

Constructor & Destructor Documentation

makVrv::DtKeyedData::DtKeyedData ( DtDe de,
const std::string &  name 
)
virtual makVrv::DtKeyedData::~DtKeyedData ( )
virtual
makVrv::DtKeyedData::DtKeyedData ( )
privatedelete

not allowed

makVrv::DtKeyedData::DtKeyedData ( const DtKeyedData rhs)
privatedelete

not allowed

Member Function Documentation

DtKeyedData& makVrv::DtKeyedData::operator= ( const DtKeyedData rhs)
privatedelete

not allowed

template<class ClassToCreate , class... ConstructorArgs>
DtKeyedData::UserDataCreationResult makVrv::DtKeyedData::getOrCreateUserData ( const void *  userPointer,
DtVirtualBaseClassCreator< ClassToCreate, ConstructorArgs...> *  creator,
ConstructorArgs &&...  constructorArgs 
)
virtual DtKeyedDataUserData* makVrv::DtKeyedData::findUserData ( const void *  userPointer) const
virtual
virtual void makVrv::DtKeyedData::deleteUserData ( const void *  userPointer)
virtual

delete the user data for this pointer

Member Data Documentation

DtDe& makVrv::DtKeyedData::myDe
protected

Referenced by getOrCreateUserData().

UserDataHashTable makVrv::DtKeyedData::myUserDataHashTable
protected

Referenced by getOrCreateUserData().

const std::string makVrv::DtKeyedData::myName
protected
std::atomic<int> makVrv::DtKeyedData::theCount
staticprotected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)