HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
openvdb::OPENVDB_VERSION_NAME::math::MapRegistry Class Reference

Threadsafe singleton object for accessing the map type-name dictionary. Associates a map type-name with a factory function. More...

#include <Maps.h>

Public Types

using MapDictionary = std::map< Name, MapBase::MapFactory >
 

Static Public Member Functions

static MapRegistryinstance ()
 
static MapBase::Ptr createMap (const Name &)
 Create a new map of the given (registered) type name. More...
 
static bool isRegistered (const Name &)
 Return true if the given map type name is registered. More...
 
static void registerMap (const Name &, MapBase::MapFactory)
 Register a map type along with a factory function. More...
 
static void unregisterMap (const Name &)
 Remove a map type from the registry. More...
 
static void clear ()
 Clear the map type registry. More...
 

Detailed Description

Threadsafe singleton object for accessing the map type-name dictionary. Associates a map type-name with a factory function.

Definition at line 289 of file Maps.h.

Member Typedef Documentation

Member Function Documentation

static void openvdb::OPENVDB_VERSION_NAME::math::MapRegistry::clear ( )
static

Clear the map type registry.

static MapBase::Ptr openvdb::OPENVDB_VERSION_NAME::math::MapRegistry::createMap ( const Name )
static

Create a new map of the given (registered) type name.

static MapRegistry* openvdb::OPENVDB_VERSION_NAME::math::MapRegistry::instance ( )
static
static bool openvdb::OPENVDB_VERSION_NAME::math::MapRegistry::isRegistered ( const Name )
static

Return true if the given map type name is registered.

static void openvdb::OPENVDB_VERSION_NAME::math::MapRegistry::registerMap ( const Name ,
MapBase::MapFactory   
)
static

Register a map type along with a factory function.

static void openvdb::OPENVDB_VERSION_NAME::math::MapRegistry::unregisterMap ( const Name )
static

Remove a map type from the registry.


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