OpendTect  6.3
Public Types | Public Member Functions | Protected Attributes | List of all members
DataBuffer Class Reference

Resizable buffer of elements. More...

Public Types

typedef int size_type
 
typedef int obj_size_type
 
typedef unsigned char buf_type
 

Public Member Functions

 DataBuffer (size_type nrelem, int bytsperelem=4, bool setnull=false)
 
 ~DataBuffer ()
 
 DataBuffer (const DataBuffer &b)
 
DataBufferoperator= (const DataBuffer &)
 
bool isOk () const
 
bool isEmpty () const
 
size_type size () const
 
obj_size_type bytesPerElement () const
 
bool isZero () const
 
od_int64 totalBytes () const
 
buf_typedata ()
 
const buf_typedata () const
 
void reSize (size_type, bool copydata=true)
 
void reByte (obj_size_type, bool copydata=true)
 
void zero ()
 
bool fitsInString () const
 
BufferString getString () const
 

Protected Attributes

size_type nelem_
 
obj_size_type elembytes_
 
buf_typedata_
 

Detailed Description

Resizable buffer of elements.

Member Typedef Documentation

typedef unsigned char DataBuffer::buf_type
typedef int DataBuffer::size_type

Constructor & Destructor Documentation

DataBuffer::DataBuffer ( size_type  nrelem,
int  bytsperelem = 4,
bool  setnull = false 
)
DataBuffer::~DataBuffer ( )
DataBuffer::DataBuffer ( const DataBuffer b)
inline

Member Function Documentation

obj_size_type DataBuffer::bytesPerElement ( ) const
inline
buf_type* DataBuffer::data ( )
inline
const buf_type* DataBuffer::data ( ) const
inline
bool DataBuffer::fitsInString ( ) const
BufferString DataBuffer::getString ( ) const
bool DataBuffer::isEmpty ( ) const
inline
bool DataBuffer::isOk ( ) const
inline
bool DataBuffer::isZero ( ) const
DataBuffer& DataBuffer::operator= ( const DataBuffer )
void DataBuffer::reByte ( obj_size_type  ,
bool  copydata = true 
)
void DataBuffer::reSize ( size_type  ,
bool  copydata = true 
)
size_type DataBuffer::size ( ) const
inline
od_int64 DataBuffer::totalBytes ( ) const
inline
void DataBuffer::zero ( )

Member Data Documentation

buf_type* DataBuffer::data_
protected
obj_size_type DataBuffer::elembytes_
protected
size_type DataBuffer::nelem_
protected

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