A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCGraphCache.html below:

NCBI C++ ToolKit: CGraphCache< TData

Search Toolkit Book for CGraphCache

CGraphCache –. More...

#include <gui/widgets/seq_graphic/graph_cache.hpp>

virtual  ~CGraphCache ()   void  Stop ()   CRef< TData >  GetCachedData (const string &data_key)   Retrieves TData from in-memory cache. More...
  CRef< TData >  GetData (const string &data_key)   Retrieves TData from in-memory cache or if not found calls TData::Init to initialize new TData instance. More...
  void  RemoveData (const string &data_key)   Removes Data from in-memory cache. More...
  void  SaveData (CRef< TData > data)   Clones TData, puts it into Save Queue for asynchroneous storage operation. More...
  void  EnableICache (bool value)     CObject (void)   Constructor. More...
    CObject (const CObject &src)   Copy constructor. More...
  virtual  ~CObject (void)   Destructor. More...
  CObjectoperator= (const CObject &src) THROWS_NONE   Assignment operator. More...
  bool  CanBeDeleted (void) const THROWS_NONE   Check if object can be deleted. More...
  bool  IsAllocatedInPool (void) const THROWS_NONE   Check if object is allocated in memory pool (not system heap) More...
  bool  Referenced (void) const THROWS_NONE   Check if object is referenced. More...
  bool  ReferencedOnlyOnce (void) const THROWS_NONE   Check if object is referenced only once. More...
  void  AddReference (void) const   Add reference to object. More...
  void  RemoveReference (void) const   Remove reference to object. More...
  void  ReleaseReference (void) const   Remove reference without deleting object. More...
  virtual void  DoNotDeleteThisObject (void)   Mark this object as not allocated in heap – do not delete this object. More...
  virtual void  DoDeleteThisObject (void)   Mark this object as allocated in heap – object can be deleted. More...
  void *  operator new (size_t size)   Define new operator for memory allocation. More...
  void *  operator new[] (size_t size)   Define new[] operator for 'array' memory allocation. More...
  void  operator delete (void *ptr)   Define delete operator for memory deallocation. More...
  void  operator delete[] (void *ptr)   Define delete[] operator for memory deallocation. More...
  void *  operator new (size_t size, void *place)   Define new operator. More...
  void  operator delete (void *ptr, void *place)   Define delete operator. More...
  void *  operator new (size_t size, CObjectMemoryPool *place)   Define new operator using memory pool. More...
  void  operator delete (void *ptr, CObjectMemoryPool *place)   Define delete operator. More...
  virtual void  DebugDump (CDebugDumpContext ddc, unsigned int depth) const   Define method for dumping debug information. More...
    CDebugDumpable (void)   virtual  ~CDebugDumpable (void)   void  DebugDumpText (ostream &out, const string &bundle, unsigned int depth) const   void  DebugDumpFormat (CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const   void  DumpToConsole (void) const   template<class TData>
class CGraphCache< TData >

CGraphCache –.

in-memeory cache for graph data Provides concurrent access and asynchroneous storage operation for TData

TData is expected to provide: Init() - method to be called to initialize data Save() - method to serialize data

ICache storage is not used by default the caller needs to invoke EnableICache() to enable it

if ICache is enabled GraphCache start a backround thread (m_Thread) on first save request The consecutive save request sends a copy of data to m_Queue for asynchroneous Save.

Definition at line 93 of file graph_cache.hpp.

◆ TDataKey ◆ ~CGraphCache() ◆ CGraphCache() [1/2] ◆ CGraphCache() [2/2] ◆ EnableICache() ◆ GetCachedData() ◆ GetData()

Retrieves TData from in-memory cache or if not found calls TData::Init to initialize new TData instance.

Parameters
data_key memory access key generated by TData
Returns
instance of TData or NULL if there are no cached data and TData does not have ICache

Definition at line 140 of file graph_cache.hpp.

References data, CGraphCache< TData >::m_Cache, CGraphCache< TData >::m_HasICache, CGraphCache< TData >::m_Lock, CGraphCache< TData >::m_Storage, and Ref().

Referenced by CSGAlignmentDS::CanShowRange(), CSGAlignmentDS::GetGraphCost(), CSGAlignmentDS::IsRangeCached(), CSGAlignStatJob::x_Execute(), CSGSeqGraphJob::x_Execute(), CVcfFeatureJob::x_Execute(), and CSGFeatureJob::x_ProcessCachedBigBed().

◆ GetInstance()

Definition at line 97 of file graph_cache.hpp.

References CSafeStatic< T, Callbacks >::Get().

Referenced by CSGAlignmentDS::CanShowRange(), CSGAlignmentDS::ClearCache(), CSGAlignmentDS::EnablePileUpCache(), CVcfHistogram::EraseCachePerAnnotation(), CSGAlignmentDS::GetGraphCost(), CSGAlignmentDS::IsGraphCached(), CSGAlignmentDS::IsRangeCached(), CSGAlignStatJob::x_Execute(), CSGSeqGraphJob::x_Execute(), CVcfFeatureJob::x_Execute(), CWigGraph::x_FetchData(), CSGFeatureJob::x_ProcessCachedBigBed(), and CSGFeatureJob::x_ProcessCachedVcfTabix().

◆ operator=() ◆ RemoveData() ◆ SaveData()

Clones TData, puts it into Save Queue for asynchroneous storage operation.

Parameters

Definition at line 173 of file graph_cache.hpp.

References context, data, CDiagContext::GetRequestContext(), CGraphCache< TData >::m_CV, CGraphCache< TData >::m_HasICache, CGraphCache< TData >::m_Lock, CGraphCache< TData >::m_Queue, CGraphCache< TData >::m_Thread, and CGraphCache< TData >::x_Run().

Referenced by CSGAlignStatJob::x_Execute(), CVcfFeatureJob::x_Execute(), and CWigGraph::x_FetchData().

◆ Stop() ◆ x_Run() ◆ CSafeStatic_Allocator< CGraphCache > ◆ m_Cache ◆ m_CV ◆ m_HasICache ◆ m_Lock ◆ m_Queue ◆ m_StopRequested ◆ m_Storage ◆ m_Thread

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4