#include <PortBundle.hpp>
Public Types | |
typedef VisitorType< PortBundle > | Visitor |
Public Member Functions | |
virtual void | setParent (const ViewSharedPtr &inParent) throw () |
virtual Connectable::Connection | connect (const NetSharedPtr &inNet) throw (Error) |
void | disconnect (const Connectable::Connection &inConnection) throw (Error) |
virtual void | accept (BaseVisitor &inoutVisitor) throw (Error) |
Friends | |
class | FactoryType< PortBundle > |
Classes | |
class | Factory |
The PortBundle class represents an EDIF port bundle. PortBundles are ordered collection of scalar and vector ports and can be created using the (portBundle ...) syntax.
Definition at line 47 of file PortBundle.hpp.
Connectable::Connection torc::generic::PortBundle::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 |
Error | Pointer to the Net object does not exists
| |
Error | Net size does not match with port bundle size |
[in] | inNet | A pointer to the Net object that eeds to be connected |
Implements torc::generic::Connectable.
Definition at line 63 of file PortBundle.cpp.
void torc::generic::PortBundle::disconnect | ( | const Connectable::Connection & | inConnection | ) | throw (Error) [virtual] |
Disconnect a Net from this object.
[in] | inConnection | A connection as returned by the connect() method |
Error | Provided connection is invalid, because pointer to the Net does not exist
|
[in] | connection | A connection as returned by the connect() method |
Implements torc::generic::Connectable.
Definition at line 128 of file PortBundle.cpp.
void torc::generic::PortBundle::accept | ( | BaseVisitor & | inoutVisitor | ) | throw (Error) [virtual] |
Recive a inoutVisitor to this class. The visit method of the inoutVisitor 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 inoutVisitor specialization. See Visitor documentation for more details.
[in,out] | inoutVisitor | A reference to the inoutVisitor object |
Error | Visitor type inappropriate for visiting this object or any other error thrown by the Visitor::throw() method. |
Implements torc::generic::Visitable.
Definition at line 221 of file PortBundle.cpp.