ldas-tools-diskcacheAPI  2.7.2
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
diskCache::Cache::RegistrySingleton Class Reference

#include <RegistrySingleton.hh>

Inheritance diagram for diskCache::Cache::RegistrySingleton:
Inheritance graph
[legend]
Collaboration diagram for diskCache::Cache::RegistrySingleton:
Collaboration graph
[legend]

Public Types

typedef Registry::info_type info_type
 
typedef Registry::id_type id_type
 
typedef Registry::ascii_key_type ascii_key_type
 
typedef Registry::Info Info
 
typedef Registry::Info::indexing_type indexing_type
 
typedef Registry::info_type info_type
 
typedef Registry::id_type id_type
 
typedef Registry::ascii_key_type ascii_key_type
 
typedef Registry::Info Info
 
typedef Registry::Info::indexing_type indexing_type
 
typedef Registry::info_type info_type
 
typedef Registry::id_type id_type
 
typedef Registry::ascii_key_type ascii_key_type
 
typedef Registry::Info Info
 
typedef Registry::Info::indexing_type indexing_type
 

Public Member Functions

 SINGLETON_TS_DECL (RegistrySingleton)
 
 SINGLETON_TS_DECL (RegistrySingleton)
 
 SINGLETON_TS_DECL (RegistrySingleton)
 

Static Public Member Functions

static const info_type GetInfo (id_type Key)
 
static id_type Id (const ascii_key_type &Key)
 
static void OnDirectoryClose (DirectoryScanData &Data)
 
static id_type Register (const Info &Key)
 
static bool ScanForMatch (DirectoryScanData &Data)
 
static void TranslateQuery (const QueryParams &Params, QueryAnswer &Answer)
 
static const info_type GetInfo (id_type Key)
 
static id_type Id (const ascii_key_type &Key)
 
static void OnDirectoryClose (DirectoryScanData &Data)
 
static id_type Register (const Info &Key)
 
static bool ScanForMatch (DirectoryScanData &Data)
 
static void TranslateQuery (const QueryParams &Params, QueryAnswer &Answer)
 
static const info_type GetInfo (id_type Key)
 
static id_type Id (const ascii_key_type &Key)
 
static void OnDirectoryClose (DirectoryScanData &Data)
 
static id_type Register (const Info &Key)
 
static bool ScanForMatch (DirectoryScanData &Data)
 
static void TranslateQuery (const QueryParams &Params, QueryAnswer &Answer)
 

Static Public Attributes

static const id_type ID_NULL = 0
 

Private Types

typedef void(* FindFunc) (const Streams::Streamable &Source, const Directory &Dir, QueryAnswer &Answer)
 
typedef void(* FindFunc) (const Streams::Streamable &Source, const Directory &Dir, QueryAnswer &Answer)
 
typedef void(* FindFunc) (const Streams::Streamable &Source, const Directory &Dir, QueryAnswer &Answer)
 
typedef bool(* IsMatchFunc) (DirectoryScanData &Data)
 
typedef bool(* IsMatchFunc) (DirectoryScanData &Data)
 
typedef bool(* IsMatchFunc) (DirectoryScanData &Data)
 
typedef void(* OnDirectoryCloseFunc) (DirectoryScanData &Data)
 
typedef void(* OnDirectoryCloseFunc) (DirectoryScanData &Data)
 
typedef void(* OnDirectoryCloseFunc) (DirectoryScanData &Data)
 
typedef void(* TranslateQueryFunc) (const QueryParams &Params, QueryAnswer &Answer)
 
typedef void(* TranslateQueryFunc) (const QueryParams &Params, QueryAnswer &Answer)
 
typedef void(* TranslateQueryFunc) (const QueryParams &Params, QueryAnswer &Answer)
 
typedef LDASTools::AL::unordered_map< id_type, info_typeregistry_container_type
 
typedef LDASTools::AL::unordered_map< id_type, info_typeregistry_container_type
 
typedef LDASTools::AL::unordered_map< id_type, info_typeregistry_container_type
 
typedef LDASTools::AL::unordered_map< std::string, id_typeregistry_name_container_type
 
typedef LDASTools::AL::unordered_map< std::string, id_typeregistry_name_container_type
 
typedef LDASTools::AL::unordered_map< std::string, id_typeregistry_name_container_type
 

Private Member Functions

id_type Register (const Info &Key)
 
void TranslateQuery (const Cache::QueryParams &Params, Cache::QueryAnswer &Answer) const
 Translate a query. More...
 
id_type Id (const std::string &Name) const
 
const info_type GetInfo (id_type Id) const
 
const registry_container_typeregistry () const
 
const registry_container_typeregistry () const
 
const registry_container_typeregistry () const
 

Private Attributes

registry_container_type m_info
 
registry_name_container_type m_name_info
 
id_type m_max_id
 

Static Private Attributes

static const id_type KEY_NULL = id_type( 0 )
 

Member Typedef Documentation

◆ ascii_key_type [1/3]

◆ ascii_key_type [2/3]

◆ ascii_key_type [3/3]

◆ FindFunc [1/3]

typedef void( * diskCache::Cache::Registry::FindFunc) (const Streams::Streamable &Source, const Directory &Dir, QueryAnswer &Answer)
inherited

◆ FindFunc [2/3]

typedef void( * diskCache::Cache::Registry::FindFunc) (const Streams::Streamable &Source, const Directory &Dir, QueryAnswer &Answer)
inherited

◆ FindFunc [3/3]

typedef void( * diskCache::Cache::Registry::FindFunc) (const Streams::Streamable &Source, const Directory &Dir, QueryAnswer &Answer)
inherited

◆ id_type [1/3]

◆ id_type [2/3]

◆ id_type [3/3]

◆ indexing_type [1/3]

◆ indexing_type [2/3]

◆ indexing_type [3/3]

◆ Info [1/3]

◆ Info [2/3]

◆ Info [3/3]

◆ info_type [1/3]

◆ info_type [2/3]

◆ info_type [3/3]

◆ IsMatchFunc [1/3]

typedef bool( * diskCache::Cache::Registry::IsMatchFunc) (DirectoryScanData &Data)
inherited

◆ IsMatchFunc [2/3]

typedef bool( * diskCache::Cache::Registry::IsMatchFunc) (DirectoryScanData &Data)
inherited

◆ IsMatchFunc [3/3]

typedef bool( * diskCache::Cache::Registry::IsMatchFunc) (DirectoryScanData &Data)
inherited

◆ OnDirectoryCloseFunc [1/3]

typedef void( * diskCache::Cache::Registry::OnDirectoryCloseFunc) (DirectoryScanData &Data)
inherited

◆ OnDirectoryCloseFunc [2/3]

typedef void( * diskCache::Cache::Registry::OnDirectoryCloseFunc) (DirectoryScanData &Data)
inherited

◆ OnDirectoryCloseFunc [3/3]

typedef void( * diskCache::Cache::Registry::OnDirectoryCloseFunc) (DirectoryScanData &Data)
inherited

◆ registry_container_type [1/3]

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

◆ registry_container_type [2/3]

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

◆ registry_container_type [3/3]

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

◆ registry_name_container_type [1/3]

typedef LDASTools::AL::unordered_map< std::string, id_type > diskCache::Common::Registry::registry_name_container_type
privateinherited

◆ registry_name_container_type [2/3]

typedef LDASTools::AL::unordered_map< std::string, id_type > diskCache::Common::Registry::registry_name_container_type
privateinherited

◆ registry_name_container_type [3/3]

typedef LDASTools::AL::unordered_map< std::string, id_type > diskCache::Common::Registry::registry_name_container_type
privateinherited

◆ TranslateQueryFunc [1/3]

typedef void( * diskCache::Cache::Registry::TranslateQueryFunc) (const QueryParams &Params, QueryAnswer &Answer)
inherited

◆ TranslateQueryFunc [2/3]

typedef void( * diskCache::Cache::Registry::TranslateQueryFunc) (const QueryParams &Params, QueryAnswer &Answer)
inherited

◆ TranslateQueryFunc [3/3]

typedef void( * diskCache::Cache::Registry::TranslateQueryFunc) (const QueryParams &Params, QueryAnswer &Answer)
inherited

Member Function Documentation

◆ GetInfo() [1/4]

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

◆ GetInfo() [2/4]

const RegistrySingleton::info_type diskCache::Cache::RegistrySingleton::GetInfo ( id_type  Key)
inlinestatic

◆ GetInfo() [3/4]

static const info_type diskCache::Cache::RegistrySingleton::GetInfo ( id_type  Key)
static

◆ GetInfo() [4/4]

static const info_type diskCache::Cache::RegistrySingleton::GetInfo ( id_type  Key)
static

◆ Id() [1/4]

RegistrySingleton::id_type diskCache::Cache::RegistrySingleton::Id ( const ascii_key_type Key)
inlinestatic

◆ Id() [2/4]

static id_type diskCache::Cache::RegistrySingleton::Id ( const ascii_key_type Key)
static

◆ Id() [3/4]

static id_type diskCache::Cache::RegistrySingleton::Id ( const ascii_key_type Key)
static

◆ Id() [4/4]

Registry::id_type diskCache::Common::Registry::Id ( const std::string &  Name) const
inlineinherited
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.
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.
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.

◆ OnDirectoryClose() [1/3]

void diskCache::Cache::RegistrySingleton::OnDirectoryClose ( DirectoryScanData Data)
inlinestatic

◆ OnDirectoryClose() [2/3]

static void diskCache::Cache::RegistrySingleton::OnDirectoryClose ( DirectoryScanData Data)
static

◆ OnDirectoryClose() [3/3]

static void diskCache::Cache::RegistrySingleton::OnDirectoryClose ( DirectoryScanData Data)
static

◆ Register() [1/4]

RegistrySingleton::id_type diskCache::Cache::RegistrySingleton::Register ( const Info Key)
inlinestatic

◆ Register() [2/4]

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

◆ Register() [3/4]

static id_type diskCache::Cache::RegistrySingleton::Register ( const Info Key)
static

◆ Register() [4/4]

static id_type diskCache::Cache::RegistrySingleton::Register ( const Info Key)
static

◆ registry() [1/3]

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

◆ registry() [2/3]

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

◆ registry() [3/3]

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

◆ ScanForMatch() [1/3]

bool diskCache::Cache::RegistrySingleton::ScanForMatch ( DirectoryScanData Data)
inlinestatic

◆ ScanForMatch() [2/3]

static bool diskCache::Cache::RegistrySingleton::ScanForMatch ( DirectoryScanData Data)
static

◆ ScanForMatch() [3/3]

static bool diskCache::Cache::RegistrySingleton::ScanForMatch ( DirectoryScanData Data)
static

◆ SINGLETON_TS_DECL() [1/3]

diskCache::Cache::RegistrySingleton::SINGLETON_TS_DECL ( RegistrySingleton  )

◆ SINGLETON_TS_DECL() [2/3]

diskCache::Cache::RegistrySingleton::SINGLETON_TS_DECL ( RegistrySingleton  )

◆ SINGLETON_TS_DECL() [3/3]

diskCache::Cache::RegistrySingleton::SINGLETON_TS_DECL ( RegistrySingleton  )

◆ TranslateQuery() [1/4]

void diskCache::Cache::Registry::TranslateQuery ( const Cache::QueryParams Params,
Cache::QueryAnswer Answer 
) const
inherited

Translate a query.

◆ TranslateQuery() [2/4]

void diskCache::Cache::RegistrySingleton::TranslateQuery ( const QueryParams Params,
QueryAnswer Answer 
)
inlinestatic

◆ TranslateQuery() [3/4]

static void diskCache::Cache::RegistrySingleton::TranslateQuery ( const QueryParams Params,
QueryAnswer Answer 
)
static

◆ TranslateQuery() [4/4]

static void diskCache::Cache::RegistrySingleton::TranslateQuery ( const QueryParams Params,
QueryAnswer Answer 
)
static

Member Data Documentation

◆ ID_NULL

static const id_type diskCache::Cache::RegistrySingleton::ID_NULL = 0
static

◆ KEY_NULL

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

◆ m_info

registry_container_type diskCache::Common::Registry::m_info
privateinherited

◆ m_max_id

id_type diskCache::Common::Registry::m_max_id
privateinherited

◆ m_name_info

registry_name_container_type diskCache::Common::Registry::m_name_info
privateinherited

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