ldas-tools-diskcacheAPI  2.5.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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< Info
info_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_type
registry_container_type
 

Protected Member Functions

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

Member Typedef Documentation

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

Constructor & Destructor Documentation

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

Default constructor.

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

Member Function Documentation

const Registry::info_type diskCache::Common::Registry::GetInfo ( id_type  Id) const
inline
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.
Registry::id_type diskCache::Common::Registry::Register ( const Info Key)
Todo:
Lock the registry because changes are going to happen
const Registry::registry_container_type & diskCache::Common::Registry::registry ( ) const
inlineprotected

Member Data Documentation

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

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