NCBI C++ ToolKit
Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
CRCache::CRVPool Class Reference

Search Toolkit Book for CRCache::CRVPool

Public Member Functions

 CRVPool (Uint4 mres)
 
TItemnewItem ()
 

Private Types

typedef vector< CSRSearch::SResultDataTItem
 
typedef vector< TItemTBlock
 
typedef vector< TBlockTBlocks
 

Private Member Functions

void newBlock ()
 

Private Attributes

Uint4 max_res
 
Uint4 num_items
 
TBlocks blocks
 

Static Private Attributes

static const Uint4 BLOCK_SIZE = 1024UL*1024UL
 
static const Uint4 BLOCKS_RESERVE = 1024UL
 

Detailed Description

Definition at line 121 of file srsearch_app.cpp.

Member Typedef Documentation

◆ TBlock

typedef vector< TItem > CRCache::CRVPool::TBlock
private

Definition at line 127 of file srsearch_app.cpp.

◆ TBlocks

typedef vector< TBlock > CRCache::CRVPool::TBlocks
private

Definition at line 128 of file srsearch_app.cpp.

◆ TItem

Definition at line 126 of file srsearch_app.cpp.

Constructor & Destructor Documentation

◆ CRVPool()

CRCache::CRVPool::CRVPool ( Uint4  mres)
inline

Definition at line 132 of file srsearch_app.cpp.

References blocks, and BLOCKS_RESERVE.

Member Function Documentation

◆ newBlock()

void CRCache::CRVPool::newBlock ( )
inlineprivate

Definition at line 146 of file srsearch_app.cpp.

References b, BLOCK_SIZE, blocks, i, max_res, and num_items.

Referenced by newItem().

◆ newItem()

TItem* CRCache::CRVPool::newItem ( )
inline

Definition at line 138 of file srsearch_app.cpp.

References BLOCK_SIZE, blocks, newBlock(), and num_items.

Referenced by CRCache::update().

Member Data Documentation

◆ BLOCK_SIZE

const Uint4 CRCache::CRVPool::BLOCK_SIZE = 1024UL*1024UL
staticprivate

Definition at line 123 of file srsearch_app.cpp.

Referenced by newBlock(), and newItem().

◆ blocks

TBlocks CRCache::CRVPool::blocks
private

Definition at line 160 of file srsearch_app.cpp.

Referenced by CRVPool(), newBlock(), and newItem().

◆ BLOCKS_RESERVE

const Uint4 CRCache::CRVPool::BLOCKS_RESERVE = 1024UL
staticprivate

Definition at line 124 of file srsearch_app.cpp.

Referenced by CRVPool().

◆ max_res

Uint4 CRCache::CRVPool::max_res
private

Definition at line 158 of file srsearch_app.cpp.

Referenced by newBlock().

◆ num_items

Uint4 CRCache::CRVPool::num_items
private

Definition at line 159 of file srsearch_app.cpp.

Referenced by newBlock(), and newItem().


The documentation for this class was generated from the following file:
Modified on Wed Sep 04 15:04:54 2024 by modify_doxy.py rev. 669887