torc::generic::VectorPortBit Class Reference

Represents a bit of a port. More...

#include <VectorPortBit.hpp>

Inheritance diagram for torc::generic::VectorPortBit:

Inheritance graph
[legend]
Collaboration diagram for torc::generic::VectorPortBit:

Collaboration graph
[legend]

List of all members.

Public Types

typedef FactoryType
< VectorPortBit
Factory
typedef VisitorType
< VectorPortBit
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)


Detailed Description

Represents a bit of a port.

The VectorPortBit class represents a bit of an array port. 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 43 of file VectorPortBit.hpp.


Member Function Documentation

void torc::generic::VectorPortBit::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.

Parameters:
[in,out] inoutVisitor A reference to the inoutVisitor object
Exceptions:
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 44 of file VectorPortBit.cpp.

Connectable::Connection torc::generic::VectorPortBit::connect ( const NetSharedPtr &  inNet  )  throw (Error) [virtual]

Connect a Net to this object.

Note:
This metod can be overridden by derived classes. However, the method must call the on_connected() method after this. The sigConnected_ signal must also be invoked in the overriding method.
Parameters:
[in] inNet A pointer to the Net object that needs to be Connected
Returns:
A connection that has been established. This can be used later for disconnection.
Connect a Net to this object.

Note:
This metod can be overridden by derived classes. However, the method must call the on_connected() method after this. The sigConnected_ signal must also be invoked in the overriding method.
Parameters:
[in] inNet A pointer to the Net object that eeds to be Connected
Returns:
A connection that has been established. This can be used later for disconnection.

Implements torc::generic::Connectable.

Definition at line 59 of file VectorPortBit.cpp.

void torc::generic::VectorPortBit::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

Parameters:
[out] outNets A vector of Connected nets
Get the vector of Nets that are Connected to the current object. The connected elements are appended to the given vector

Returns:
A vector of Connected nets

Reimplemented from torc::generic::Connectable.

Definition at line 119 of file VectorPortBit.cpp.


The documentation for this class was generated from the following files:

Generated on Thu Oct 13 16:50:34 2011 for TORC by  doxygen 1.5.6