#include <typelib/typemodel.hh>


field, or the Field object | |
Get a field by its name
| |
| Field const * | getField (const std::string &name) const |
| void | addField (const Field &field, size_t offset) |
| void | addField (const std::string &name, const Type &type, size_t offset) |
| virtual std::set< Type const * > | dependsOn () const |
Public Types | |
| typedef std::list< Field > | FieldList |
Public Member Functions | |
| Compound (std::string const &name) | |
| FieldList const & | getFields () const |
| typedef std::list<Field> Typelib::Compound::FieldList |
| Typelib::Compound::Compound | ( | std::string const & | name | ) |
| Compound::FieldList const & Typelib::Compound::getFields | ( | ) | const |
The list of all fields
Referenced by Typelib::TypeVisitor::visit_(), Typelib::MemLayout::Visitor::visit_(), and Typelib::CompileEndianSwapVisitor::visit_().
| Field const * Typelib::Compound::getField | ( | const std::string & | name | ) | const |
References Typelib::Type::getName().
| void Typelib::Compound::addField | ( | const Field & | field, | |
| size_t | offset | |||
| ) |
Add a new field
References Typelib::Type::getSize(), Typelib::Field::getType(), and Typelib::Type::setSize().
Referenced by addField().
| void Typelib::Compound::addField | ( | const std::string & | name, | |
| const Type & | type, | |||
| size_t | offset | |||
| ) |
Add a new field
References addField().
| std::set< Type const * > Typelib::Compound::dependsOn | ( | ) | const [virtual] |
The set of types this type depends upon
Implements Typelib::Type.
1.5.6