ldas-tools-diskcacheAPI
2.5.6
|
#include <Registry.hh>
Classes | |
class | Info |
Public Types | |
typedef LDASTools::AL::SharedPtr< SearchInterface > | indexing_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 std::string | ascii_key_type |
typedef LDASTools::AL::SharedPtr< Info > | info_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... | |
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 | |
const registry_container_type & | registry () const |
|
inherited |
typedef void(* diskCache::Cache::Registry::FindFunc) (const Streams::Streamable &Source, const Directory &Dir, QueryAnswer &Answer) |
|
inherited |
typedef LDASTools::AL::SharedPtr< SearchInterface > diskCache::Cache::Registry::indexing_type |
|
inherited |
typedef bool(* diskCache::Cache::Registry::IsMatchFunc) (DirectoryScanData &Data) |
typedef void(* diskCache::Cache::Registry::OnDirectoryCloseFunc) (DirectoryScanData &Data) |
|
protectedinherited |
typedef void(* diskCache::Cache::Registry::TranslateQueryFunc) (const QueryParams &Params, QueryAnswer &Answer) |
|
inline |
|
inlineinherited |
|
inlineinherited |
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
|
inherited |
Registry::id_type diskCache::Cache::Registry::Register | ( | const Info & | Key | ) |
|
inlineprotectedinherited |
bool diskCache::Cache::Registry::ScanForMatch | ( | DirectoryScanData & | Data | ) |
void diskCache::Cache::Registry::TranslateQuery | ( | const Cache::QueryParams & | Params, |
Cache::QueryAnswer & | Answer | ||
) | const |
Translate a query.