#include <typemodel.hh>
Public Member Functions | |
Field (const std::string &name, Type const &base_type) | |
Field (Field const &field) | |
MetaData & | getMetaData () const |
MetaData::Values | getMetaData (std::string const &key) const |
std::string | getName () const |
size_t | getOffset () const |
const Type & | getType () const |
void | mergeMetaData (Field const &field) const |
bool | operator== (Field const &field) const |
~Field () | |
Protected Member Functions | |
void | setOffset (size_t offset) |
Private Member Functions | |
Field & | operator= (Field const &field) |
Private Attributes | |
MetaData * | m_metadata |
std::string | m_name |
size_t | m_offset |
const Type & | m_type |
Friends | |
class | Compound |
A field in a Compound type
Definition at line 357 of file typemodel.hh.
Typelib::Field::Field | ( | const std::string & | name, |
Type const & | base_type | ||
) |
Definition at line 621 of file typemodel.cc.
Typelib::Field::Field | ( | Field const & | field | ) |
Definition at line 627 of file typemodel.cc.
Definition at line 623 of file typemodel.cc.
MetaData & Typelib::Field::getMetaData | ( | ) | const |
Definition at line 641 of file typemodel.cc.
MetaData::Values Typelib::Field::getMetaData | ( | std::string const & | key | ) | const |
Definition at line 643 of file typemodel.cc.
std::string Typelib::Field::getName | ( | ) | const |
The field name
Definition at line 635 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 637 of file typemodel.cc.
Type const & Typelib::Field::getType | ( | ) | const |
The field type
Definition at line 636 of file typemodel.cc.
void Typelib::Field::mergeMetaData | ( | Field const & | field | ) | const |
Definition at line 645 of file typemodel.cc.
bool Typelib::Field::operator== | ( | Field const & | field | ) | const |
Definition at line 639 of file typemodel.cc.
void Typelib::Field::setOffset | ( | size_t | offset | ) | [protected] |
Definition at line 638 of file typemodel.cc.
friend class Compound [friend] |
Definition at line 359 of file typemodel.hh.
MetaData* Typelib::Field::m_metadata [private] |
Definition at line 364 of file typemodel.hh.
std::string Typelib::Field::m_name [private] |
Definition at line 361 of file typemodel.hh.
size_t Typelib::Field::m_offset [private] |
Definition at line 363 of file typemodel.hh.
const Type& Typelib::Field::m_type [private] |
Definition at line 362 of file typemodel.hh.