#include <typemodel.hh>
Public Member Functions | |
Field (const std::string &name, Type const &base_type) | |
std::string | getName () const |
size_t | getOffset () const |
const Type & | getType () const |
bool | operator== (Field const &field) const |
Protected Member Functions | |
void | setOffset (size_t offset) |
Private Attributes | |
std::string | m_name |
size_t | m_offset |
const Type & | m_type |
Friends | |
class | Compound |
Definition at line 287 of file typemodel.hh.
Typelib::Field::Field | ( | const std::string & | name, |
Type const & | base_type | ||
) |
Definition at line 526 of file typemodel.cc.
std::string Typelib::Field::getName | ( | void | ) | const |
The field name
Definition at line 529 of file typemodel.cc.
size_t Typelib::Field::getOffset | ( | ) | const |
The offset, in bytes, of this field w.r.t. the begginning of the parent value
Definition at line 531 of file typemodel.cc.
Type const & Typelib::Field::getType | ( | ) | const |
The field type
Definition at line 530 of file typemodel.cc.
bool Typelib::Field::operator== | ( | Field const & | field | ) | const |
Definition at line 533 of file typemodel.cc.
void Typelib::Field::setOffset | ( | size_t | offset | ) | [protected] |
Definition at line 532 of file typemodel.cc.
friend class Compound [friend] |
Definition at line 289 of file typemodel.hh.
std::string Typelib::Field::m_name [private] |
Definition at line 291 of file typemodel.hh.
size_t Typelib::Field::m_offset [private] |
Definition at line 293 of file typemodel.hh.
const Type& Typelib::Field::m_type [private] |
Definition at line 292 of file typemodel.hh.