|
Colibri Core
|
A pattern store in the form of an ordered set (i.e, no duplicates). Stores only patterns, no values. More...
#include <patternstore.h>
Public Types | |
| typedef t_hashorderedpatternset::iterator | iterator |
| typedef t_hashorderedpatternset::const_iterator | const_iterator |
Public Types inherited from PatternStore< t_hashorderedpatternset, ReadWriteSizeType > | |
| typedef t_hashorderedpatternset::iterator | iterator |
| typedef t_hashorderedpatternset::const_iterator | const_iterator |
Public Member Functions | |
| HashOrderedPatternSet () | |
| virtual | ~HashOrderedPatternSet () |
| void | insert (const Pattern pattern) |
| bool | has (const Pattern &pattern) const |
| bool | has (const PatternPointer &pattern) const |
| size_t | size () const |
| void | reserve (size_t s) |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| iterator | find (const Pattern &pattern) |
| const_iterator | find (const Pattern &pattern) const |
| iterator | find (const PatternPointer &pattern) |
| const_iterator | find (const PatternPointer &pattern) const |
| bool | erase (const Pattern &pattern) |
| iterator | erase (const_iterator position) |
| void | write (std::ostream *out) |
| void | read (std::istream *in, int MINLENGTH=0, int MAXLENGTH=999999, bool DONGRAMS=true, bool DOSKIPGRAMS=true, bool DOFLEXGRAMS=true) |
Public Member Functions inherited from PatternStore< t_hashorderedpatternset, ReadWriteSizeType > | |
| PatternStore () | |
| virtual | ~PatternStore () |
| virtual void | attachcorpus (unsigned char *corpusstart, unsigned int corpussize) |
| virtual void | attachcorpus (const IndexedCorpus &corpus) |
| virtual void | detachcorpus () |
| unsigned char * | getcorpus () const |
| unsigned int | getcorpussize () const |
| virtual void | use_v1_format () |
| virtual void | insert (const Pattern &pattern)=0 |
| virtual PatternStoreInterface * | getstoreinterface () |
Protected Attributes | |
| t_hashorderedpatternset | data |
Protected Attributes inherited from PatternStore< t_hashorderedpatternset, ReadWriteSizeType > | |
| unsigned char * | corpusstart |
| unsigned int | corpussize |
| unsigned char | classencodingversion |
| int | patterntype |
A pattern store in the form of an ordered set (i.e, no duplicates). Stores only patterns, no values.
| ReadWriteSizeType | The data type for addressing, determines the maximum amount of patterns that can be held, only used in serialisation/deserialisation |
| typedef t_hashorderedpatternset::const_iterator HashOrderedPatternSet< ReadWriteSizeType >::const_iterator |
| typedef t_hashorderedpatternset::iterator HashOrderedPatternSet< ReadWriteSizeType >::iterator |
|
inline |
|
virtual |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
Does the pattern occur in the pattern store?
Implements PatternStore< t_hashorderedpatternset, ReadWriteSizeType >.
|
inlinevirtual |
Does the pattern occur in the pattern store?
Implements PatternStore< t_hashorderedpatternset, ReadWriteSizeType >.
|
inline |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
How many patterns are in the pattern store?
Implements PatternStore< t_hashorderedpatternset, ReadWriteSizeType >.
|
inlinevirtual |
|
protected |
1.8.10