torc::generic::ScalarPort Class Reference

Represents a standalone port. More...

#include <ScalarPort.hpp>

Inheritance diagram for torc::generic::ScalarPort:

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

Collaboration graph
[legend]

List of all members.

Public Types

typedef VisitorType< ScalarPortVisitor

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)

Friends

class FactoryType< ScalarPort >

Classes

class  Factory


Detailed Description

Represents a standalone port.

The ScalarPort class represents a standalone port object. Such objects in EDIF are declard using the (port portName ... ) syntax.

Definition at line 44 of file ScalarPort.hpp.


Member Function Documentation

void torc::generic::ScalarPort::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 87 of file ScalarPort.cpp.

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

Exceptions:
Error Pointer to the Net object does not exists
  • Id : eMessageIdErrorPointerToItemDoesNotExist
  • Context Data
Error Net size does not match with scalar port size
  • Id : eMessageIdErrorItemSizeMismatch
  • Context Data
    • Net Size - SizeType
    • Scalar port Size - SizeType

Implements torc::generic::Connectable.

Definition at line 101 of file ScalarPort.cpp.


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

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