#include <Catalog.h>

Public Member Functions | |
| Catalog () | |
| virtual | ~Catalog () |
| virtual std::string | Serialize () const =0 |
| return a serialized form of the Catalog as an std::string | |
| virtual unsigned int | addEntry (entryType *entry, bool updateFPLength=true)=0 |
| adds an entry to the catalog | |
| virtual const entryType * | getEntryWithIdx (unsigned int idx) const =0 |
| returns a particular entry in the Catalog | |
| virtual unsigned int | getNumEntries () const =0 |
| returns the number of entries | |
| unsigned int | getFPLength () const |
| returns the length of our fingerprint | |
| void | setFPLength (unsigned int val) |
| sets our fingerprint length | |
| void | setCatalogParams (paramType *params) |
sets our parameters by copying the params argument | |
| const paramType * | getCatalogParams () const |
| returns a pointer to our parameters | |
Protected Attributes | |
| unsigned int | d_fpLength |
| the length of our fingerprint | |
| paramType * | dp_cParams |
| our params object | |
Definition at line 28 of file Catalog.h.
| RDCatalog::Catalog< entryType, paramType >::Catalog | ( | ) | [inline] |
| virtual RDCatalog::Catalog< entryType, paramType >::~Catalog | ( | ) | [inline, virtual] |
| virtual std::string RDCatalog::Catalog< entryType, paramType >::Serialize | ( | ) | const [pure virtual] |
return a serialized form of the Catalog as an std::string
Implemented in RDCatalog::HierarchCatalog< entryType, paramType, orderType >.
| virtual unsigned int RDCatalog::Catalog< entryType, paramType >::addEntry | ( | entryType * | entry, | |
| bool | updateFPLength = true | |||
| ) | [pure virtual] |
adds an entry to the catalog
| entry | the entry to be added | |
| updateFPLength | (optional) if this is true, our internal fingerprint length will also be updated. |
Implemented in RDCatalog::HierarchCatalog< entryType, paramType, orderType >, and RDCatalog::LinearCatalog< entryType, orderType >.
| virtual const entryType* RDCatalog::Catalog< entryType, paramType >::getEntryWithIdx | ( | unsigned int | idx | ) | const [pure virtual] |
returns a particular entry in the Catalog
Implemented in RDCatalog::HierarchCatalog< entryType, paramType, orderType >, and RDCatalog::LinearCatalog< entryType, orderType >.
| virtual unsigned int RDCatalog::Catalog< entryType, paramType >::getNumEntries | ( | ) | const [pure virtual] |
returns the number of entries
Implemented in RDCatalog::HierarchCatalog< entryType, paramType, orderType >.
| unsigned int RDCatalog::Catalog< entryType, paramType >::getFPLength | ( | ) | const [inline] |
returns the length of our fingerprint
Definition at line 65 of file Catalog.h.
Referenced by RDCatalog::HierarchCatalog< entryType, paramType, orderType >::addEntry(), RDCatalog::HierarchCatalog< entryType, paramType, orderType >::getEntryWithBitId(), RDCatalog::HierarchCatalog< entryType, paramType, orderType >::getIdOfEntryWithBitId(), and RDCatalog::HierarchCatalog< entryType, paramType, orderType >::toStream().
| void RDCatalog::Catalog< entryType, paramType >::setFPLength | ( | unsigned int | val | ) | [inline] |
sets our fingerprint length
Definition at line 69 of file Catalog.h.
Referenced by RDCatalog::HierarchCatalog< entryType, paramType, orderType >::addEntry(), and RDCatalog::HierarchCatalog< entryType, paramType, orderType >::initFromStream().
| void RDCatalog::Catalog< entryType, paramType >::setCatalogParams | ( | paramType * | params | ) | [inline] |
sets our parameters by copying the params argument
Definition at line 73 of file Catalog.h.
Referenced by RDCatalog::HierarchCatalog< entryType, paramType, orderType >::initFromStream().
| const paramType* RDCatalog::Catalog< entryType, paramType >::getCatalogParams | ( | ) | const [inline] |
returns a pointer to our parameters
Definition at line 88 of file Catalog.h.
Referenced by RDCatalog::HierarchCatalog< entryType, paramType, orderType >::toStream().
unsigned int RDCatalog::Catalog< entryType, paramType >::d_fpLength [protected] |
the length of our fingerprint
Definition at line 96 of file Catalog.h.
Referenced by RDCatalog::Catalog< entryType, orderType >::getFPLength(), and RDCatalog::Catalog< entryType, orderType >::setFPLength().
paramType* RDCatalog::Catalog< entryType, paramType >::dp_cParams [protected] |
our params object
Definition at line 97 of file Catalog.h.
Referenced by RDCatalog::Catalog< entryType, orderType >::getCatalogParams(), RDCatalog::Catalog< entryType, orderType >::setCatalogParams(), and RDCatalog::Catalog< entryType, orderType >::~Catalog().
1.5.6