Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends
Typelib::Field Class Reference

#include <typemodel.hh>

List of all members.

Public Member Functions

 Field (const std::string &name, Type const &base_type)
 Field (Field const &field)
MetaDatagetMetaData () const
MetaData::Values getMetaData (std::string const &key) const
std::string getName () const
size_t getOffset () const
const TypegetType () 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

Fieldoperator= (Field const &field)

Private Attributes

MetaDatam_metadata
std::string m_name
size_t m_offset
const Typem_type

Friends

class Compound

Detailed Description

A field in a Compound type

Definition at line 357 of file typemodel.hh.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Field& Typelib::Field::operator= ( Field const &  field) [private]
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.


Friends And Related Function Documentation

friend class Compound [friend]

Definition at line 359 of file typemodel.hh.


Member Data Documentation

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.


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


typelib
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Sat Jun 8 2019 18:49:22