#include <value_holder.hh>
Public Types | |
typedef V * | VPtr |
typedef const V * | ConstVPtr |
typedef VPtr * | VPtrPtr |
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) | |
ValueHolder & | operator= (const ValueHolder< V > &h) |
~ValueHolder () | |
void | Swap (ValueHolder &vh) |
Static Public Member Functions | |
static DataType | GetDataType () |
Definition at line 62 of file value_holder.hh.
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.
Definition at line 66 of file value_holder.hh.
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
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.