#include <PortList.hpp>
Public Types | |
typedef PortElement | PortListElement |
typedef VisitorType< PortList > | Visitor |
Public Member Functions | |
virtual void | accept (BaseVisitor &inoutVisitor) throw (Error) |
virtual Connection | connect (const NetSharedPtr &inNet) throw (Error) |
virtual void | disconnect (const Connection &inConnection) throw (Error) |
size_t | getSize () const throw () |
void | addChildPort (const PortSharedPtr &inPort) throw () |
void | addChildPortReference (const PortReferenceSharedPtr &inPortRef) throw () |
void | getChildren (std::list< PortListElement > &outPorts) throw () |
Private Member Functions | |
template<typename _Tp> | |
void | connectElementToNet (const NetSharedPtr &inNet, const boost::shared_ptr< _Tp > &inType, size_t &inoutCurrentWidth) throw (Error) |
Private Attributes | |
std::list< PortListElement > | mElements |
Friends | |
class | FactoryType< PortList > |
Classes | |
class | Factory |
The PortList class represents an ordered list of port references. Such objects in EDIF are declard using the (portList portRefName1 portRefName2 ... ) syntax.
Definition at line 46 of file PortList.hpp.
void torc::generic::PortList::accept | ( | BaseVisitor & | inoutVisitor | ) | throw (Error) [virtual] |
Recive a visitor to this class. The visit method of the visitor is called and a reference to this object is passed as a parameter. It has to be noted however, that a dynamic_cast is performed inside this method. If the cast fails, an appropriate exception is thrown by this method. This sitation can arise when the passed Visitor object does not inherit from the appropriate visitor specialization. See Visitor documentation for more details.
[in,out] | inoutVisitor | A reference to the visitor object |
Error | Visitor type inappropriate for visiting this object or any other error thrown by the Visitor::throw() method. |
Definition at line 78 of file PortList.cpp.
Connectable::Connection torc::generic::PortList::connect | ( | const NetSharedPtr & | inNet | ) | throw (Error) [virtual] |
Connect a Net to this object.
[in] | inNet | A pointer to the Net object that needs to be connected |
Implements torc::generic::Connectable.
Definition at line 183 of file PortList.cpp.
virtual void torc::generic::PortList::disconnect | ( | const Connection & | inConnection | ) | throw (Error) [virtual] |
size_t torc::generic::PortList::getSize | ( | void | ) | const throw () |
Get the total number of bits of the composition
Definition at line 250 of file PortList.cpp.
void torc::generic::PortList::addChildPort | ( | const PortSharedPtr & | inPort | ) | throw () |
Add a port to the port list.
[in] | inPort | Pointer to port to be added. |
Definition at line 273 of file PortList.cpp.
void torc::generic::PortList::addChildPortReference | ( | const PortReferenceSharedPtr & | inPortRef | ) | throw () |
Add a port reference to the port list.
[in] | inPortRef | Pointer to port reference to be added. |
Definition at line 278 of file PortList.cpp.
void torc::generic::PortList::getChildren | ( | std::list< PortListElement > & | outPorts | ) | throw () |
Get all the children of this composition
Definition at line 284 of file PortList.cpp.