#include <Bundle.hpp>


Public Types | |
| typedef Composite< _Type > | BaseType |
| typedef BaseType::Type | Type |
| typedef BaseType::Pointer | Pointer |
| typedef BaseType::List | List |
| typedef BaseType::SizeType | SizeType |
| typedef Type | ChildType |
Public Member Functions | |
| virtual CompositionType | getCompositionType () const throw () |
| virtual SizeType | getSize () const throw () |
| virtual void | addChild (const boost::shared_ptr< Type > &child) throw (Error) |
| virtual void | getChildren (List &outChildren) const throw (Error) |
| template<typename _Action> | |
| void | applyOnAllChildren (const _Action &action) throw (Error) |
| virtual const Pointer | get (const std::vector< SizeType > &indices) const throw (Error) |
Private Attributes | |
| List | mChildren |
A bundle in EDIF is an ordered collection of items. For example a bundle of ports is a collection of other scalar and vector ports. The Bundle class represents an implementation of functionality for such a collection.
Definition at line 49 of file Bundle.hpp.
| typedef BaseType::Pointer torc::generic::Bundle< _Type >::Pointer |
Shared Pointer to object of type Type
Reimplemented from torc::generic::Composite< _Type >.
Definition at line 56 of file Bundle.hpp.
| typedef BaseType::List torc::generic::Bundle< _Type >::List |
List of Shared Pointers to objects of type Type
Reimplemented from torc::generic::Composite< _Type >.
Definition at line 57 of file Bundle.hpp.
| CompositionType torc::generic::Bundle< _Type >::getCompositionType | ( | ) | const throw () [inline, virtual] |
Get composition type for this object
Implements torc::generic::Composite< _Type >.
Definition at line 147 of file Bundle.hpp.
| Bundle< _Type >::SizeType torc::generic::Bundle< _Type >::getSize | ( | void | ) | const throw () [inline, virtual] |
Get the total number of bits of the composition
Implements torc::generic::Composite< _Type >.
Definition at line 158 of file Bundle.hpp.
| void torc::generic::Bundle< _Type >::addChild | ( | const boost::shared_ptr< Type > & | child | ) | throw (Error) [inline, virtual] |
Add a child to the bundle. Note that, the new element is added to the end of the array.
| [in] | child | A pointer to a child |
| Error | The composition is not a container or the child type is not proper |
Definition at line 178 of file Bundle.hpp.
| virtual void torc::generic::Bundle< _Type >::getChildren | ( | List & | outChildren | ) | const throw (Error) [virtual] |
Get children of this composition.
| [out] | outChildren | A list of all children for this composition |
| virtual const Pointer torc::generic::Bundle< _Type >::get | ( | const std::vector< SizeType > & | indices | ) | const throw (Error) [virtual] |
Get a specific member of this composition.
| Error | Index dimensions mismatch |
1.5.6