|
OpenASIP 2.2
|

Public Member Functions | |
| Cache (CostDBTypes::MatchTypeTable matchingType, CostDBEntryKey *key, CostDBTypes::EntryTable &entry) | |
| ~Cache () | |
| Cache * | copy () const |
| bool | isEqual (CostDBTypes::MatchTypeTable matchingType, const CostDBEntryKey *key) const |
| CostDBTypes::EntryTable | entries () const |
Private Member Functions | |
| Cache (const Cache &) | |
| Copying not allowed. | |
| Cache & | operator= (const Cache &) |
| Assignment not allowed. | |
Private Attributes | |
| CostDBTypes::MatchTypeTable | matchType_ |
| Type of match used for these results. | |
| CostDBEntryKey * | searchKey_ |
| Search key of the query for these results. | |
| CostDBTypes::EntryTable | entries_ |
| Resulting database entries. Not owned by this class. | |
Friends | |
| class | FilterSearchTest |
Represents a cache entry.
Definition at line 78 of file FilterSearch.hh.
| FilterSearch::Cache::Cache | ( | CostDBTypes::MatchTypeTable | matchingType, |
| CostDBEntryKey * | key, | ||
| CostDBTypes::EntryTable & | entry | ||
| ) |
Constructor.
| matchingType | Type of match. |
| key | Search key. |
| entry | Database entries. |
Definition at line 218 of file FilterSearch.cc.
References matchType_.
| FilterSearch::Cache::~Cache | ( | ) |
Destructor.
Deallocates memory reserved for search key and type of match. Not responsible of deleting entries.
Definition at line 236 of file FilterSearch.cc.
References assert.
|
private |
Copying not allowed.
| FilterSearch::Cache * FilterSearch::Cache::copy | ( | ) | const |
Returns a copy of this cache.
Client is responsible of deallocating the memory reserved for the returned object.
Definition at line 260 of file FilterSearch.cc.
References CostDBEntryKey::copy().

| CostDBTypes::EntryTable FilterSearch::Cache::entries | ( | ) | const |
| bool FilterSearch::Cache::isEqual | ( | CostDBTypes::MatchTypeTable | matchingType, |
| const CostDBEntryKey * | key | ||
| ) | const |
Tests if cache matches to the type of match and search key.
| matchingType | Type of match. |
| key | Search key. |
Definition at line 289 of file FilterSearch.cc.
|
friend |
Definition at line 79 of file FilterSearch.hh.
|
private |
Resulting database entries. Not owned by this class.
Definition at line 97 of file FilterSearch.hh.
|
private |
Type of match used for these results.
Definition at line 93 of file FilterSearch.hh.
Referenced by Cache().
|
private |
Search key of the query for these results.
Definition at line 95 of file FilterSearch.hh.