OpenStructure
|
#include <value_holder.hh>
Public Types | |
typedef V * | VPtr |
typedef const V * | ConstVPtr |
typedef VPtr * | VPtrPtr |
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) |
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 |
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
|
inline |
return pointer to raw data
Definition at line 136 of file value_holder.hh.
|
inline |
const version of GetData()
Definition at line 138 of file value_holder.hh.
|
static |
|
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
|
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.
|
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.