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

#include <Registry.hh>

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

Classes

class  Info
 

Public Types

typedef boost::shared_ptr< SearchInterfaceindexing_type
 
typedef void(* FindFunc) (const Streams::Streamable &Source, const Directory &Dir, QueryAnswer &Answer)
 
typedef bool(* IsMatchFunc) (DirectoryScanData &Data)
 
typedef void(* OnDirectoryCloseFunc) (DirectoryScanData &Data)
 
typedef void(* TranslateQueryFunc) (const QueryParams &Params, QueryAnswer &Answer)
 
typedef boost::shared_ptr< SearchInterfaceindexing_type
 
typedef void(* FindFunc) (const Streams::Streamable &Source, const Directory &Dir, QueryAnswer &Answer)
 
typedef bool(* IsMatchFunc) (DirectoryScanData &Data)
 
typedef void(* OnDirectoryCloseFunc) (DirectoryScanData &Data)
 
typedef void(* TranslateQueryFunc) (const QueryParams &Params, QueryAnswer &Answer)
 
typedef boost::shared_ptr< SearchInterfaceindexing_type
 
typedef void(* FindFunc) (const Streams::Streamable &Source, const Directory &Dir, QueryAnswer &Answer)
 
typedef bool(* IsMatchFunc) (DirectoryScanData &Data)
 
typedef void(* OnDirectoryCloseFunc) (DirectoryScanData &Data)
 
typedef void(* TranslateQueryFunc) (const QueryParams &Params, QueryAnswer &Answer)
 
typedef INT_4U id_type
 
typedef INT_4U id_type
 
typedef INT_4U id_type
 
typedef std::string ascii_key_type
 
typedef std::string ascii_key_type
 
typedef std::string ascii_key_type
 
typedef boost::shared_ptr< Infoinfo_type
 
typedef boost::shared_ptr< Infoinfo_type
 
typedef boost::shared_ptr< Infoinfo_type
 

Public Member Functions

 Registry ()
 
void OnDirectoryClose (DirectoryScanData &Data)
 
id_type Register (const Info &Key)
 
bool ScanForMatch (DirectoryScanData &Data)
 
void TranslateQuery (const Cache::QueryParams &Params, Cache::QueryAnswer &Answer) const
 Translate a query. More...
 
 Registry ()
 
void OnDirectoryClose (DirectoryScanData &Data)
 
id_type Register (const Info &Key)
 
bool ScanForMatch (DirectoryScanData &Data)
 
void TranslateQuery (const Cache::QueryParams &Params, Cache::QueryAnswer &Answer) const
 Translate a query. More...
 
 Registry ()
 
void OnDirectoryClose (DirectoryScanData &Data)
 
id_type Register (const Info &Key)
 
bool ScanForMatch (DirectoryScanData &Data)
 
void TranslateQuery (const Cache::QueryParams &Params, Cache::QueryAnswer &Answer) const
 Translate a query. More...
 
id_type Register (const Info &Key)
 
id_type Id (const std::string &Name) const
 
id_type Id (const std::string &Name) const
 
id_type Id (const std::string &Name) const
 
const info_type GetInfo (id_type Id) const
 
const info_type GetInfo (id_type Id) 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
 
typedef LDASTools::AL::unordered_map< id_type, info_typeregistry_container_type
 
typedef LDASTools::AL::unordered_map< id_type, info_typeregistry_container_type
 

Protected Member Functions

const registry_container_typeregistry () const
 
const registry_container_typeregistry () const
 
const registry_container_typeregistry () const
 

Private Types

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 Attributes

registry_container_type m_info
 
registry_name_container_type m_name_info
 
id_type m_max_id
 

Member Typedef Documentation

◆ ascii_key_type [1/3]

typedef std::string diskCache::Common::Registry::ascii_key_type
inherited

◆ ascii_key_type [2/3]

typedef std::string diskCache::Common::Registry::ascii_key_type
inherited

◆ ascii_key_type [3/3]

typedef std::string diskCache::Common::Registry::ascii_key_type
inherited

◆ FindFunc [1/3]

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

◆ FindFunc [2/3]

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

◆ FindFunc [3/3]

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

◆ id_type [1/3]

typedef INT_4U diskCache::Common::Registry::id_type
inherited

◆ id_type [2/3]

typedef INT_4U diskCache::Common::Registry::id_type
inherited

◆ id_type [3/3]

typedef INT_4U diskCache::Common::Registry::id_type
inherited

◆ indexing_type [1/3]

◆ indexing_type [2/3]

◆ indexing_type [3/3]

◆ info_type [1/3]

typedef boost::shared_ptr< Info > diskCache::Common::Registry::info_type
inherited

◆ info_type [2/3]

typedef boost::shared_ptr< Info > diskCache::Common::Registry::info_type
inherited

◆ info_type [3/3]

typedef boost::shared_ptr< Info > diskCache::Common::Registry::info_type
inherited

◆ IsMatchFunc [1/3]

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

◆ IsMatchFunc [2/3]

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

◆ IsMatchFunc [3/3]

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

◆ OnDirectoryCloseFunc [1/3]

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

◆ OnDirectoryCloseFunc [2/3]

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

◆ OnDirectoryCloseFunc [3/3]

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

◆ 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)

◆ TranslateQueryFunc [2/3]

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

◆ TranslateQueryFunc [3/3]

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

Constructor & Destructor Documentation

◆ Registry() [1/3]

diskCache::Cache::Registry::Registry ( )
inline

◆ Registry() [2/3]

diskCache::Cache::Registry::Registry ( )

◆ Registry() [3/3]

diskCache::Cache::Registry::Registry ( )

Member Function Documentation

◆ GetInfo() [1/3]

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

◆ GetInfo() [2/3]

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

◆ GetInfo() [3/3]

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

◆ Id() [1/3]

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.

◆ Id() [2/3]

id_type diskCache::Common::Registry::Id ( const std::string &  Name) const
inherited

◆ Id() [3/3]

id_type diskCache::Common::Registry::Id ( const std::string &  Name) const
inherited

◆ OnDirectoryClose() [1/3]

void diskCache::Cache::Registry::OnDirectoryClose ( DirectoryScanData Data)

After all data has been read from the directory, this function is called to allow all search engines an oppertunity

Todo:
Associate the updated information with the cache

◆ OnDirectoryClose() [2/3]

void diskCache::Cache::Registry::OnDirectoryClose ( DirectoryScanData Data)

◆ OnDirectoryClose() [3/3]

void diskCache::Cache::Registry::OnDirectoryClose ( DirectoryScanData Data)

◆ Register() [1/4]

Registry::id_type diskCache::Cache::Registry::Register ( const Info Key)

◆ 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]

id_type diskCache::Cache::Registry::Register ( const Info Key)

◆ Register() [4/4]

id_type diskCache::Cache::Registry::Register ( const Info Key)

◆ 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::Registry::ScanForMatch ( DirectoryScanData Data)

◆ ScanForMatch() [2/3]

bool diskCache::Cache::Registry::ScanForMatch ( DirectoryScanData Data)

◆ ScanForMatch() [3/3]

bool diskCache::Cache::Registry::ScanForMatch ( DirectoryScanData Data)

◆ TranslateQuery() [1/3]

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

Translate a query.

◆ TranslateQuery() [2/3]

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

Translate a query.

◆ TranslateQuery() [3/3]

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

Translate a query.

Member Data Documentation

◆ 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: