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

#include <ContentsStorageBase.hpp>

Inheritance diagram for ContentsStorageBase:

Public Types

typedef Poco::SharedPtr
< HCE::component::Refine
RefinePtrType
typedef Poco::SharedPtr
< std::vector< std::map
< unsigned long long,
std::vector< WordPos > > > > 
WordPosPtrType

Public Member Functions

 ContentsStorageBase (unsigned int refinesCount)
virtual WordPosPtrType wordMapExctract (unsigned long long key, std::string &incomeContent)=0
virtual void wordMapRelease (unsigned long long key, WordPosPtrType &refinePtr)=0
virtual ~ContentsStorageBase ()

Protected Member Functions

RefinePtrType refineExctract ()
void refineRelease (RefinePtrType &refinePtr)

Detailed Description

Definition at line 29 of file ContentsStorageBase.hpp.

Member Typedef Documentation

Definition at line 32 of file ContentsStorageBase.hpp.

typedef Poco::SharedPtr<std::vector<std::map<unsigned long long, std::vector<WordPos> > > > ContentsStorageBase::WordPosPtrType

Definition at line 34 of file ContentsStorageBase.hpp.

Constructor & Destructor Documentation

ContentsStorageBase::ContentsStorageBase ( unsigned int  refinesCount)

ContentsStorageBase::ContentsStorageBase class constructor.

Definition at line 71 of file ContentsStorageBase.cpp.

ContentsStorageBase::~ContentsStorageBase ( )
virtual

ContentsStorageBase::ContentsStorageBase class destructor.

Definition at line 81 of file ContentsStorageBase.cpp.

Member Function Documentation

ContentsStorageBase::RefinePtrType ContentsStorageBase::refineExctract ( )
protected

ContentsStorageBase::refineExctract method. Method extracts and returns, from cross-thread storage "refinesVector", first available Refine component

Definition at line 22 of file ContentsStorageBase.cpp.

Here is the caller graph for this function:

void ContentsStorageBase::refineRelease ( ContentsStorageBase::RefinePtrType refinePtr)
protected

ContentsStorageBase::refineRelease method. Method releases previously captured Refine component item, in cross-thread storage "refinesVector"

Definition at line 51 of file ContentsStorageBase.cpp.

Here is the caller graph for this function:

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

Implemented in ContentsStorageSimple.

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

Implemented in ContentsStorageSimple.


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