![]() |
VR-Forces Developer's Guide
|
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 DtKeyedDataUserData * | findUserData (const void *userPointer) const |
| virtual void | deleteUserData (const void *userPointer) |
Protected Types | |
| typedef tbb::concurrent_hash_map < const void *, DtKeyedDataUserData * > | UserDataHashTable |
Protected Attributes | |
| DtDe & | myDe |
| UserDataHashTable | myUserDataHashTable |
| const std::string | myName |
Static Protected Attributes | |
| static std::atomic< int > | theCount |
Private Member Functions | |
| DtKeyedData ()=delete | |
| DtKeyedData (const DtKeyedData &rhs)=delete | |
| DtKeyedData & | operator= (const DtKeyedData &rhs)=delete |
|
protected |
| makVrv::DtKeyedData::DtKeyedData | ( | DtDe & | de, |
| const std::string & | name | ||
| ) |
|
virtual |
|
privatedelete |
not allowed
|
privatedelete |
not allowed
|
privatedelete |
not allowed
| DtKeyedData::UserDataCreationResult makVrv::DtKeyedData::getOrCreateUserData | ( | const void * | userPointer, |
| DtVirtualBaseClassCreator< ClassToCreate, ConstructorArgs...> * | creator, | ||
| ConstructorArgs &&... | constructorArgs | ||
| ) |
get or create the tcs user data
References makVrv::DtVirtualBaseClassCreator< ClassToCreate, ConstructorArgs >::create(), myDe, and myUserDataHashTable.
Referenced by makVrv::DtKeyedDataManagerTemplate< KeyType, KeyTypeHasher >::getOrCreateUserData().
|
virtual |
|
virtual |
delete the user data for this pointer
|
protected |
Referenced by getOrCreateUserData().
|
protected |
Referenced by getOrCreateUserData().
|
protected |
|
staticprotected |