$search

Typelib::Field Class Reference

#include <typemodel.hh>

List of all members.

Public Member Functions

 Field (const std::string &name, Type const &base_type)
std::string getName () const
size_t getOffset () const
const TypegetType () 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 Typem_type

Friends

class Compound

Detailed Description

A field in a Compound type

Definition at line 287 of file typemodel.hh.


Constructor & Destructor Documentation

Typelib::Field::Field ( const std::string &  name,
Type const &  base_type 
)

Definition at line 526 of file typemodel.cc.


Member Function Documentation

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.


Friends And Related Function Documentation

friend class Compound [friend]

Definition at line 289 of file typemodel.hh.


Member Data Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


typelib
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Fri Mar 1 16:29:10 2013