virtual TCEString name() const
virtual void removePort(Port &port)
void deleteOtherPorts(const NameSet &portsToLeave)
virtual void loadState(const ObjectState *state)
virtual int bidirPortCount() const
Unit & operator=(const Unit &)
Assingment forbidden.
PortTable ports_
Contains all the ports of the unit.
std::set< std::string > NameSet
Set type for strings.
virtual ObjectState * saveState() const
virtual Port * port(const std::string &name) const
std::vector< Port * > PortTable
Container for ports.
virtual bool hasPort(const std::string &name) const
void loadStateWithoutReferences(const ObjectState *state)
virtual int portCount() const
virtual int outputPortCount(bool countBidir=false) const
static NameSet portNames(const ObjectState *state)
virtual int inputPortCount(bool countBidir=false) const
virtual void setMachine(Machine &mach)
static const std::string OSNAME_UNIT
ObjectState name for Unit.
Unit(const std::string &name)
virtual void unsetMachine()