#include <typelib/value.hh>
Public Member Functions | |
Value () | |
Value (void *data, Type const &type) | |
void * | getData () const |
Type const & | getType () const |
bool | operator== (Value const &with) const |
bool | operator!= (Value const &with) const |
There are two basic operations on value object:
Typelib::Value::Value | ( | ) | [inline] |
Typelib::Value::Value | ( | void * | data, | |
Type const & | type | |||
) | [inline] |
void* Typelib::Value::getData | ( | ) | const [inline] |
The raw data pointer
Referenced by Typelib::FieldGetter::apply(), Typelib::ValueVisitor::TypeDispatch::apply(), Typelib::compare(), Typelib::copy(), Typelib::destroy(), Typelib::ValueVisitor::dispatch(), Typelib::dump(), Typelib::init(), Typelib::load(), Typelib::CompileEndianSwapVisitor::swap(), and Typelib::ValueVisitor::visit_().
Type const& Typelib::Value::getType | ( | ) | const [inline] |
The data type
Referenced by Typelib::ValueVisitor::TypeDispatch::apply(), Typelib::compare(), Typelib::copy(), Typelib::destroy(), Typelib::ValueVisitor::dispatch(), Typelib::dump(), Typelib::init(), and Typelib::load().
bool Typelib::Value::operator== | ( | Value const & | with | ) | const [inline] |
bool Typelib::Value::operator!= | ( | Value const & | with | ) | const [inline] |