#include <VectorPort.hpp>
Public Types | |
typedef Vector< Port, VectorPortBit, VectorPortBit::Factory, true > | BaseVectorType |
typedef VisitorType< VectorPort > | Visitor |
Public Member Functions | |
virtual void | setParent (const ViewSharedPtr &inParent) throw () |
virtual void | accept (BaseVisitor &inoutVisitor) throw (Error) |
virtual Connectable::Connection | connect (const NetSharedPtr &inNet) throw (Error) |
void | disconnect (const Connectable::Connection &inConnection) throw (Error) |
virtual void | getConnectedNets (std::vector< NetSharedPtr > &outNets, bool inSkipChildConnections=false) const throw (Error) |
Protected Member Functions | |
virtual void | onChildCreate (const boost::shared_ptr< BaseVectorType::ChildType > &inCreatedChild) const throw (Error) |
Friends | |
class | FactoryType< VectorPort > |
Classes | |
class | Factory |
The VectorPort class represents a port array. Such objects in EDIF are declard using the (port (array ...) ) syntax.
Definition at line 46 of file VectorPort.hpp.
void torc::generic::VectorPort::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 128 of file VectorPort.cpp.
Connectable::Connection torc::generic::VectorPort::connect | ( | const NetSharedPtr & | inNet | ) | throw (Error) [virtual] |
Connect a Net to this object.
[in] | net | A pointer to the Net object that eeds to be connected |
Implements torc::generic::Connectable.
Definition at line 160 of file VectorPort.cpp.
void torc::generic::VectorPort::disconnect | ( | const Connectable::Connection & | inConnection | ) | throw (Error) [virtual] |
Disconnect a Net from this object.
[in] | connection | A connection as returned by the connect() method |
Error | Provided connection is invalid |
Implements torc::generic::Connectable.
Definition at line 202 of file VectorPort.cpp.
void torc::generic::VectorPort::getConnectedNets | ( | std::vector< NetSharedPtr > & | outNets, | |
bool | inSkipChildConnections = false | |||
) | const throw (Error) [virtual] |
Get the vector of Nets that are Connected to the current object. The connected elements are appended to the given vector
[out] | outNets | A vector of Connected nets |
Reimplemented from torc::generic::Connectable.
Definition at line 227 of file VectorPort.cpp.