highlighter application
1.1
HCE project utils : highlighter
|
#include <ContentsStorageSimple.hpp>
Public Member Functions | |
ContentsStorageSimple (unsigned int refinesCount) | |
virtual WordPosPtrType | wordMapExctract (unsigned long long key, std::string &incomeContent) |
virtual void | wordMapRelease (unsigned long long key, WordPosPtrType &refinePtr) |
void | cacheAddElement (unsigned long long key, WordPosPtrType wordPos) |
void | cacheClear () |
unsigned int | getCacheSize () const |
virtual | ~ContentsStorageSimple () |
Public Member Functions inherited from ContentsStorageBase | |
ContentsStorageBase (unsigned int refinesCount) | |
virtual | ~ContentsStorageBase () |
Protected Member Functions | |
void | fillWordPosMap (Poco::SharedPtr< HCE::OutDataRefine > outDataRefine, ContentsStorageBase::WordPosPtrType ret) |
Protected Member Functions inherited from ContentsStorageBase | |
RefinePtrType | refineExctract () |
void | refineRelease (RefinePtrType &refinePtr) |
Protected Attributes | |
std::map< unsigned long long, std::pair< WordPosPtrType, Poco::SharedPtr < std::atomic_flag > > > | wordPosCache |
Additional Inherited Members | |
Public Types inherited from ContentsStorageBase | |
typedef Poco::SharedPtr < HCE::component::Refine > | RefinePtrType |
typedef Poco::SharedPtr < std::vector< std::map < unsigned long long, std::vector< WordPos > > > > | WordPosPtrType |
Definition at line 22 of file ContentsStorageSimple.hpp.
ContentsStorageSimple::ContentsStorageSimple | ( | unsigned int | refinesCount | ) |
Definition at line 140 of file ContentsStorageSimple.cpp.
|
virtual |
Definition at line 144 of file ContentsStorageSimple.cpp.
void ContentsStorageSimple::cacheAddElement | ( | unsigned long long | key, |
ContentsStorageBase::WordPosPtrType | wordPos | ||
) |
Definition at line 112 of file ContentsStorageSimple.cpp.
void ContentsStorageSimple::cacheClear | ( | ) |
Definition at line 127 of file ContentsStorageSimple.cpp.
|
protected |
Definition at line 20 of file ContentsStorageSimple.cpp.
|
inline |
Definition at line 33 of file ContentsStorageSimple.hpp.
|
virtual |
Implements ContentsStorageBase.
Definition at line 53 of file ContentsStorageSimple.cpp.
|
virtual |
Implements ContentsStorageBase.
Definition at line 102 of file ContentsStorageSimple.cpp.
|
protected |
Definition at line 26 of file ContentsStorageSimple.hpp.