highlighter application  1.1
HCE project utils : highlighter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
ContentsStorageSimple Class Reference

#include <ContentsStorageSimple.hpp>

Inheritance diagram for ContentsStorageSimple:
Collaboration diagram for ContentsStorageSimple:

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

Detailed Description

Definition at line 22 of file ContentsStorageSimple.hpp.

Constructor & Destructor Documentation

ContentsStorageSimple::ContentsStorageSimple ( unsigned int  refinesCount)

Definition at line 140 of file ContentsStorageSimple.cpp.

ContentsStorageSimple::~ContentsStorageSimple ( )
virtual

Definition at line 144 of file ContentsStorageSimple.cpp.

Member Function Documentation

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.

void ContentsStorageSimple::fillWordPosMap ( Poco::SharedPtr< HCE::OutDataRefine outDataRefine,
ContentsStorageBase::WordPosPtrType  ret 
)
protected

Definition at line 20 of file ContentsStorageSimple.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned int ContentsStorageSimple::getCacheSize ( ) const
inline

Definition at line 33 of file ContentsStorageSimple.hpp.

ContentsStorageBase::WordPosPtrType ContentsStorageSimple::wordMapExctract ( unsigned long long  key,
std::string &  incomeContent 
)
virtual

Implements ContentsStorageBase.

Definition at line 53 of file ContentsStorageSimple.cpp.

Here is the call graph for this function:

void ContentsStorageSimple::wordMapRelease ( unsigned long long  key,
ContentsStorageBase::WordPosPtrType refinePtr 
)
virtual

Implements ContentsStorageBase.

Definition at line 102 of file ContentsStorageSimple.cpp.

Member Data Documentation

std::map<unsigned long long, std::pair<WordPosPtrType, Poco::SharedPtr<std::atomic_flag> > > ContentsStorageSimple::wordPosCache
protected

Definition at line 26 of file ContentsStorageSimple.hpp.


The documentation for this class was generated from the following files: