ldas-tools-diskcacheAPI  2.5.6
Classes | Public Types | Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | List of all members
diskCache::Common::Registry Class Reference

#include <Registry.hh>

Inheritance diagram for diskCache::Common::Registry:
diskCache::Cache::Registry diskCache::Cache::RegistrySingleton

Classes

class  AlreadyRegisteredException
 
struct  Info
 

Public Types

typedef INT_4U id_type
 
typedef std::string ascii_key_type
 
typedef LDASTools::AL::SharedPtr< Infoinfo_type
 

Public Member Functions

 Registry ()
 Default constructor. More...
 
id_type Register (const Info &Key)
 
id_type Id (const std::string &Name) const
 
const info_type GetInfo (id_type Id) const
 

Static Public Attributes

static const id_type KEY_NULL = id_type( 0 )
 

Protected Types

typedef LDASTools::AL::unordered_map< id_type, info_typeregistry_container_type
 

Protected Member Functions

 Registry (const Registry &Source)
 
const registry_container_typeregistry () const
 

Member Typedef Documentation

◆ ascii_key_type

◆ id_type

◆ info_type

typedef LDASTools::AL::SharedPtr< Info > diskCache::Common::Registry::info_type

◆ registry_container_type

typedef LDASTools::AL::unordered_map< id_type, info_type > diskCache::Common::Registry::registry_container_type
protected

Constructor & Destructor Documentation

◆ Registry() [1/2]

diskCache::Common::Registry::Registry ( )

Default constructor.

◆ Registry() [2/2]

diskCache::Common::Registry::Registry ( const Registry Source)
protected

Member Function Documentation

◆ GetInfo()

const Registry::info_type diskCache::Common::Registry::GetInfo ( id_type  Id) const
inline

◆ Id()

Registry::id_type diskCache::Common::Registry::Id ( const std::string &  Name) const
inline
Todo:
This needs to be locked to be thread safe. It only needs to be locked with a read lock since it only queries the information.

◆ Register()

Registry::id_type diskCache::Common::Registry::Register ( const Info Key)
Todo:
Lock the registry because changes are going to happen

◆ registry()

const Registry::registry_container_type & diskCache::Common::Registry::registry ( ) const
inlineprotected

Member Data Documentation

◆ KEY_NULL

const id_type diskCache::Common::Registry::KEY_NULL = id_type( 0 )
static

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