#include <VectorNetBit.hpp>
Public Types | |
typedef FactoryType< VectorNetBit > | Factory |
typedef VisitorType< VectorNetBit > | 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) |
virtual void | getConnectedNets (std::vector< NetSharedPtr > &outNets, bool inSkipChildConnections=false) const throw (Error) |
virtual void | getConnectedPorts (std::vector< PortSharedPtr > &outPorts, bool inSkipChildConnections=false) const throw () |
virtual void | getConnectedPortRefs (std::vector< PortReferenceSharedPtr > &outPortRefs, bool inSkipChildConnections=false) const throw () |
The VectorNetBit class represents a bit of an array net. Such objects cannot be created in EDIF. They are automatically crated when a particular member of an array is accessed using the (member ...) syntax.
Definition at line 45 of file VectorNetBit.hpp.
void torc::generic::VectorNetBit::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 43 of file VectorNetBit.cpp.
Connectable::Connection torc::generic::VectorNetBit::connect | ( | const NetSharedPtr & | inNet | ) | throw (Error) [virtual] |
Error | Pointer to the Net object does not exists | |
Error | Net size does not match with vector net bit size
|
Implements torc::generic::Connectable.
Definition at line 58 of file VectorNetBit.cpp.
void torc::generic::VectorNetBit::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 85 of file VectorNetBit.cpp.
void torc::generic::VectorNetBit::getConnectedPorts | ( | std::vector< PortSharedPtr > & | outPort, | |
bool | inSkipChildConnections = false | |||
) | const throw () [virtual] |
Appends vector of connected ports
[in] | outPort | vector of port to be appended to |
[in] | inSkipChildConnections | Return only ports connected to this port and skip returning elements that have been connected to the child |
Reimplemented from torc::generic::Net.
Definition at line 151 of file VectorNetBit.cpp.
void torc::generic::VectorNetBit::getConnectedPortRefs | ( | std::vector< PortReferenceSharedPtr > & | outPortRefs, | |
bool | inSkipChildConnections = false | |||
) | const throw () [virtual] |
Appends vector of connected port references
[in] | outPortRefs | vector of port refs to be appended to |
Reimplemented from torc::generic::Net.
Definition at line 216 of file VectorNetBit.cpp.