Public Member Functions | Private Attributes
Typelib::Value Class Reference

#include <value.hh>

List of all members.

Public Member Functions

void * getData () const
Type const & getType () const
bool operator!= (Value const &with) const
bool operator== (Value const &with) const
 Value ()
 Value (void *data, Type const &type)

Private Attributes

void * m_data
boost::reference_wrapper< Type
const > 
m_type

Detailed Description

A Value object is raw data given through a void* pointer typed by a Type object

There are two basic operations on value object:

Definition at line 20 of file value.hh.


Constructor & Destructor Documentation

Typelib::Value::Value ( ) [inline]

Definition at line 26 of file value.hh.

Typelib::Value::Value ( void *  data,
Type const &  type 
) [inline]

Definition at line 29 of file value.hh.


Member Function Documentation

void* Typelib::Value::getData ( ) const [inline]

The raw data pointer

Definition at line 33 of file value.hh.

Type const& Typelib::Value::getType ( ) const [inline]

The data type

Definition at line 35 of file value.hh.

bool Typelib::Value::operator!= ( Value const &  with) const [inline]

Definition at line 39 of file value.hh.

bool Typelib::Value::operator== ( Value const &  with) const [inline]

Definition at line 37 of file value.hh.


Member Data Documentation

void* Typelib::Value::m_data [private]

Definition at line 22 of file value.hh.

boost::reference_wrapper<Type const> Typelib::Value::m_type [private]

Definition at line 23 of file value.hh.


The documentation for this class was generated from the following file:


typelib
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Mon Oct 6 2014 03:17:12