ValueHolder< V > Class Template Reference

#include <value_holder.hh>

Public Types

typedef V * VPtr
typedef const V * ConstVPtr
typedef VPtrVPtrPtr

Public Member Functions

std::size_t MemSize () const
V & Value (const Index &i)
const V & Value (const Index &i) const
VPtr GetData ()
ConstVPtr GetData () const
ConstVPtr GetEnd () const
Construction, Release, etc



 ValueHolder (const Size &s)
 ValueHolder (const Size &s, const Size &ps)
 ValueHolder (const ValueHolder< V > &h)
ValueHolderoperator= (const ValueHolder< V > &h)
 ~ValueHolder ()
void Swap (ValueHolder &vh)

Static Public Member Functions

static DataType GetDataType ()

Detailed Description

template<typename V>
class ost::img::image_state::ValueHolder< V >

Definition at line 62 of file value_holder.hh.


Member Typedef Documentation

typedef const V* ConstVPtr

Definition at line 65 of file value_holder.hh.

typedef V* VPtr

Definition at line 64 of file value_holder.hh.

typedef VPtr* VPtrPtr

Definition at line 66 of file value_holder.hh.


Constructor & Destructor Documentation

ValueHolder ( const Size s  ) 

initialization with size

ValueHolder ( const Size s,
const Size ps 
)

initialization with size and physical size

ValueHolder ( const ValueHolder< V > &  h  ) 

copy ctor provides full copy!

~ValueHolder (  ) 

free allocated memory upon destruction


Member Function Documentation

ConstVPtr GetData (  )  const [inline]

const version of GetData()

Definition at line 138 of file value_holder.hh.

VPtr GetData (  )  [inline]

return pointer to raw data

Definition at line 136 of file value_holder.hh.

static DataType GetDataType (  )  [static]
ConstVPtr GetEnd (  )  const [inline]

Definition at line 141 of file value_holder.hh.

std::size_t MemSize (  )  const
ValueHolder& operator= ( const ValueHolder< V > &  h  ) 

assignement provides full copy!

Not exception safe, ie the state of value holder is undefined if something goes wrong here. This is on purpose to allow memory efficient assignement!

void Swap ( ValueHolder< V > &  vh  ) 

swap data with another value holder

const V& Value ( const Index i  )  const [inline]

return direct ro access to the value without boundary check

The lookup is based on an integer triplet encapsulated within Index.

Definition at line 124 of file value_holder.hh.

V& Value ( const Index i  )  [inline]

return direct r/w access to the value without boundary check

The lookup is based on an integer triplet encapsulated within Index.

Definition at line 108 of file value_holder.hh.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 10 Nov 2016 for OpenStructure by  doxygen 1.6.1