OpenASIP
2.0
|
#include <Machine.hh>
Public Types | |
typedef std::vector< ComponentType * > | ComponentTable |
Table of ComponentType pointers. More... | |
typedef ComponentTable::const_iterator | const_iterator |
Public Member Functions | |
ComponentContainer () | |
~ComponentContainer () | |
void | addComponent (ComponentType *component) |
void | removeComponent (ComponentType *component) |
void | deleteAll () |
ComponentType * | item (int index) const |
ComponentType * | item (const std::string &name) const |
int | count () const |
void | moveToPosition (const ComponentType *component, int position) |
const_iterator | begin () const noexcept |
const_iterator | end () const noexcept |
Private Attributes | |
ComponentTable | components_ |
Contains all the components of the container. More... | |
A template class which contains machine components.
Definition at line 153 of file Machine.hh.
typedef std::vector<ComponentType*> TTAMachine::Machine::ComponentContainer< ComponentType >::ComponentTable |
Table of ComponentType pointers.
Definition at line 167 of file Machine.hh.
typedef ComponentTable::const_iterator TTAMachine::Machine::ComponentContainer< ComponentType >::const_iterator |
Definition at line 169 of file Machine.hh.
TTAMachine::Machine::ComponentContainer< ComponentType >::ComponentContainer | ( | ) |
TTAMachine::Machine::ComponentContainer< ComponentType >::~ComponentContainer | ( | ) |
void TTAMachine::Machine::ComponentContainer< ComponentType >::addComponent | ( | ComponentType * | component | ) |
|
noexcept |
int TTAMachine::Machine::ComponentContainer< ComponentType >::count | ( | ) | const |
void TTAMachine::Machine::ComponentContainer< ComponentType >::deleteAll | ( | ) |
|
noexcept |
ComponentType* TTAMachine::Machine::ComponentContainer< ComponentType >::item | ( | const std::string & | name | ) | const |
ComponentType* TTAMachine::Machine::ComponentContainer< ComponentType >::item | ( | int | index | ) | const |
void TTAMachine::Machine::ComponentContainer< ComponentType >::moveToPosition | ( | const ComponentType * | component, |
int | position | ||
) |
void TTAMachine::Machine::ComponentContainer< ComponentType >::removeComponent | ( | ComponentType * | component | ) |
|
private |
Contains all the components of the container.
Definition at line 176 of file Machine.hh.