OpendTect  7.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Network::WriteCache Class Reference
Inheritance diagram for Network::WriteCache:
[legend]

Public Member Functions

 WriteCache ()
 
 ~WriteCache ()
 
void clearData () override
 
void setMinCacheSize (file_size_type) override
 
- Public Member Functions inherited from Network::FileCache
virtual ~FileCache ()
 
block_idx_type blockIdx (FilePosType) const
 
BlockSizeType blockSize (block_idx_type) const
 
BufTypegetBlock (block_idx_type)
 
const BufTypegetBlock (block_idx_type) const
 
bool isEmpty () const
 
bool isLiveBlock (block_idx_type) const
 
file_size_type size () const
 
bool validBlockIdx (block_idx_type bidx) const
 

Protected Member Functions

void handleNewLiveBlock (block_idx_type) override
 
- Protected Member Functions inherited from Network::FileCache
 FileCache (file_size_type)
 
void clearBlocks ()
 
void dismissBlock (block_idx_type)
 
BlockgtBlk (block_idx_type) const
 
FilePosType lastBlockPos () const
 
FilePosType lastFilePos () const
 

Protected Attributes

block_idx_type nrblocksmem_
 
- Protected Attributes inherited from Network::FileCache
ObjectSet< Blockblocks_
 
const file_size_type knownfilesize_
 
const BlockSizeType lastblocksz_
 

Additional Inherited Members

- Public Types inherited from Network::FileCache
typedef ObjectSet< Block >::size_type block_idx_type
 
typedef Block::SizeType BlockSizeType
 
typedef unsigned char BufType
 
typedef int ChunkSizeType
 
typedef od_stream_Count file_size_type
 
typedef TypeSet< FileChunkTypeFileChunkSetType
 
typedef Interval< FilePosTypeFileChunkType
 
typedef od_stream_Pos FilePosType
 
- Static Public Member Functions inherited from Network::FileCache
static FilePosType blockStart (block_idx_type)
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ WriteCache()

Network::WriteCache::WriteCache ( )

◆ ~WriteCache()

Network::WriteCache::~WriteCache ( )

Member Function Documentation

◆ clearData()

void Network::WriteCache::clearData ( )
overridevirtual

Implements Network::FileCache.

◆ handleNewLiveBlock()

void Network::WriteCache::handleNewLiveBlock ( block_idx_type  )
overrideprotectedvirtual

Reimplemented from Network::FileCache.

◆ setMinCacheSize()

void Network::WriteCache::setMinCacheSize ( file_size_type  )
overridevirtual

Implements Network::FileCache.

Member Data Documentation

◆ nrblocksmem_

block_idx_type Network::WriteCache::nrblocksmem_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024