Interface class for user traits. More...
#include <NvParameterizedTraits.h>
Classes | |
| class | Allocator |
| Adapter for allocator classes in PxAlloctor.h. More... | |
Public Member Functions | |
| virtual void | registerFactory (::NvParameterized::Factory &factory)=0 |
| Register NvParameterized class factory. | |
| virtual ::NvParameterized::Factory * | removeFactory (const char *className)=0 |
| Remove NvParameterized class factory for current version of class. | |
| virtual ::NvParameterized::Factory * | removeFactory (const char *className, uint32_t version)=0 |
| Remove NvParameterized class factory for given version of class. | |
| virtual bool | doesFactoryExist (const char *className)=0 |
| Checks whether any class factory is registered. | |
| virtual bool | doesFactoryExist (const char *className, uint32_t version)=0 |
| Checks whether class factory for given version is registered. | |
| virtual ::NvParameterized::Interface * | createNvParameterized (const char *name)=0 |
| Create object of NvParameterized class using its staticClassName() | |
| virtual ::NvParameterized::Interface * | createNvParameterized (const char *name, uint32_t ver)=0 |
| Create object of NvParameterized class using its staticClassName() | |
| virtual ::NvParameterized::Interface * | finishNvParameterized (const char *name, void *obj, void *buf, int32_t *refCount)=0 |
| Finish construction of inplace object of NvParameterized class. | |
| virtual ::NvParameterized::Interface * | finishNvParameterized (const char *name, uint32_t ver, void *obj, void *buf, int32_t *refCount)=0 |
| Finish construction of inplace object of NvParameterized class. | |
| virtual uint32_t | getCurrentVersion (const char *className) const =0 |
| Get version of class which is currently used. | |
| virtual uint32_t | getAlignment (const char *className, uint32_t classVersion) const =0 |
| Get memory alignment required for objects of class. | |
| virtual void | registerConversion (const char *, uint32_t, uint32_t, Conversion &) |
| Register converter for legacy version of class. | |
|
virtual ::NvParameterized::Conversion * | removeConversion (const char *, uint32_t, uint32_t) |
| Remove converter for legacy version of class. | |
| virtual bool | updateLegacyNvParameterized (::NvParameterized::Interface &legacyObj,::NvParameterized::Interface &obj) |
| Update legacy object (most probably using appropriate registered converter) | |
| virtual bool | getNvParameterizedNames (const char **names, uint32_t &outCount, uint32_t inCount) const =0 |
| Get a list of the NvParameterized class type names. | |
| virtual bool | getNvParameterizedVersions (const char *className, uint32_t *versions, uint32_t &outCount, uint32_t inCount) const =0 |
| Get a list of versions of particular NvParameterized class. | |
| virtual int32_t | incRefCount (int32_t *refCount)=0 |
| Increment reference counter. | |
| virtual int32_t | decRefCount (int32_t *refCount)=0 |
| Decrement reference counter. | |
| virtual void | onInplaceObjectDestroyed (void *,::NvParameterized::Interface *) |
| Called when inplace object is destroyed. | |
| virtual void | onAllInplaceObjectsDestroyed (void *buf) |
| Called when all inplace objects are destroyed. | |
| virtual void * | alloc (uint32_t nbytes)=0 |
| Allocate memory with default alignment of 8. | |
| virtual void * | alloc (uint32_t nbytes, uint32_t align)=0 |
| Allocate aligned memory. | |
| virtual void | free (void *buf)=0 |
| Deallocate memory. | |
| virtual char * | strdup (const char *str) |
| Copy string. | |
| virtual void | strfree (char *str) |
| Release copied string. | |
| virtual void | traitsWarn (const char *) const |
| Warns user. | |
| virtual void | release (void)=0 |
| Release Traits. | |
Interface class for user traits.
This class is a collection of loosely-related functions provided by application or framework and used by NvParameterized library to do memory allocation, object creation, user notification, etc.
| virtual ::NvParameterized::Interface* NvParameterized::Traits::createNvParameterized | ( | const char * | name | ) | [pure virtual] |
Create object of NvParameterized class using its staticClassName()
| [in] | name | static class name of the instance to create |
Most probably this just calls Factory::create on appropriate factory.
| virtual ::NvParameterized::Interface* NvParameterized::Traits::createNvParameterized | ( | const char * | name, |
| uint32_t | ver | ||
| ) | [pure virtual] |
Create object of NvParameterized class using its staticClassName()
| [in] | name | static class name of the instance to create |
| [in] | ver | version of the class |
Most probably this just calls Factory::create on appropriate factory.
| virtual ::NvParameterized::Interface* NvParameterized::Traits::finishNvParameterized | ( | const char * | name, |
| void * | obj, | ||
| void * | buf, | ||
| int32_t * | refCount | ||
| ) | [pure virtual] |
Finish construction of inplace object of NvParameterized class.
Most probably this just calls Factory::finish using appropriate factory.
| virtual ::NvParameterized::Interface* NvParameterized::Traits::finishNvParameterized | ( | const char * | name, |
| uint32_t | ver, | ||
| void * | obj, | ||
| void * | buf, | ||
| int32_t * | refCount | ||
| ) | [pure virtual] |
Finish construction of inplace object of NvParameterized class.
Most probably this just calls Factory::finish using appropriate factory.
| virtual bool NvParameterized::Traits::getNvParameterizedNames | ( | const char ** | names, |
| uint32_t & | outCount, | ||
| uint32_t | inCount | ||
| ) | const [pure virtual] |
Get a list of the NvParameterized class type names.
| [in] | names | buffer for names |
| [out] | outCount | minimal required length of buffer |
| [in] | inCount | length of buffer |
| virtual bool NvParameterized::Traits::getNvParameterizedVersions | ( | const char * | className, |
| uint32_t * | versions, | ||
| uint32_t & | outCount, | ||
| uint32_t | inCount | ||
| ) | const [pure virtual] |
Get a list of versions of particular NvParameterized class.
| [in] | className | Name of the class |
| [in] | versions | buffer for versions |
| [out] | outCount | minimal required length of buffer |
| [in] | inCount | length of buffer |
| virtual ::NvParameterized::Factory* NvParameterized::Traits::removeFactory | ( | const char * | className | ) | [pure virtual] |
Remove NvParameterized class factory for current version of class.
| virtual ::NvParameterized::Factory* NvParameterized::Traits::removeFactory | ( | const char * | className, |
| uint32_t | version | ||
| ) | [pure virtual] |
Remove NvParameterized class factory for given version of class.
| virtual bool NvParameterized::Traits::updateLegacyNvParameterized | ( | ::NvParameterized::Interface & | legacyObj, |
| ::NvParameterized::Interface & | obj | ||
| ) | [inline, virtual] |
Update legacy object (most probably using appropriate registered converter)
| [in] | legacyObj | legacy object to be converted |
| [in] | obj | destination object |