Typelib::Field Class Reference

#include <typelib/typemodel.hh>

Collaboration diagram for Typelib::Field:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Field (const std::string &name, Type const &base_type)
std::string getName () const
const TypegetType () const
size_t getOffset () const
bool operator== (Field const &field) const

Protected Member Functions

void setOffset (size_t offset)

Friends

class Compound


Detailed Description

A field in a Compound type

Constructor & Destructor Documentation

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

References m_name.


Member Function Documentation

void Typelib::Field::setOffset ( size_t  offset  )  [protected]

std::string Typelib::Field::getName (  )  const

The field name

Type const & Typelib::Field::getType (  )  const

size_t Typelib::Field::getOffset (  )  const

The offset, in bytes, of this field w.r.t. the begginning of the parent value

Referenced by Typelib::ValueVisitor::TypeDispatch::visit_(), and Typelib::TypeDisplayVisitor::visit_().

bool Typelib::Field::operator== ( Field const &  field  )  const


Friends And Related Function Documentation

friend class Compound [friend]


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

Generated on Thu Jan 22 16:38:02 2009 for typeLib by doxygen 1.5.6
SourceForge.net Project Page