torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::generic::LogicalResponse Class Reference

This class is used to model logicInput/logicOutput construct. This class holds information of logical response to be expected from a ports during simulation. More...

#include <LogicalResponse.hpp>

+ Inheritance diagram for torc::generic::LogicalResponse:
+ Collaboration diagram for torc::generic::LogicalResponse:

Data Structures

class  Factory
 

Public Types

enum  ResponseType { eResponseTypeInput = 0, eResponseTypeOutput }
 
typedef VisitorType
< LogicalResponse
Visitor
 
typedef LogicalResponse Type
 
typedef boost::shared_ptr< TypePointer
 
typedef boost::weak_ptr< TypeWeakPointer
 

Public Member Functions

const ResponseType getResponseType () const
 
void setResponseType (const ResponseType &inSource)
 
virtual void accept (BaseVisitor &inoutVisitor) throw (Error)
 
const PortSharedPtr getConnectedPort () const
 
void setConnectedPort (const PortSharedPtr &inPort)
 
const PortListSharedPtr getConnectedPortList () const
 
void setConnectedPortList (const PortListSharedPtr &inPortList)
 
const PortListAliasSharedPtr getConnectedPortListAlias () const
 
void setConnectedPortListAlias (const PortListAliasSharedPtr &inPortListAlias)
 
const LogicElementSharedPtr getLogicWaveForm () const
 
void setLogicWaveForm (const LogicElementSharedPtr &inSource)
 
 ~LogicalResponse () throw ()
 
void setWeakThis (const WeakPointer &inWeakThis)
 
Pointer getSharedThis () const
 

Protected Member Functions

 LogicalResponse ()
 

Private Member Functions

 LogicalResponse (const LogicalResponse &source)
 
LogicalResponseoperator= (const LogicalResponse &source)
 

Private Attributes

ResponseType mResponseType
 
PortSharedPtr mConnectedPort
 
PortListSharedPtr mConnectedPortList
 
PortListAliasSharedPtr mConnectedPortListAlias
 
LogicElementSharedPtr mLogicWaveForm
 

Friends

class FactoryType< LogicalResponse >
 

Detailed Description

This class is used to model logicInput/logicOutput construct. This class holds information of logical response to be expected from a ports during simulation.

Definition at line 38 of file LogicalResponse.hpp.

Member Typedef Documentation

typedef boost::shared_ptr<Type> torc::generic::SelfReferencing< LogicalResponse >::Pointer
inherited

Definition at line 36 of file SelfReferencing.hpp.

Definition at line 35 of file SelfReferencing.hpp.

Convenience class to visit LogicalResponse.

Definition at line 67 of file LogicalResponse.hpp.

typedef boost::weak_ptr<Type> torc::generic::SelfReferencing< LogicalResponse >::WeakPointer
inherited

Definition at line 37 of file SelfReferencing.hpp.

Member Enumeration Documentation

Logical response types (logicInput/logicOutput)

Enumerator
eResponseTypeInput 
eResponseTypeOutput 

Definition at line 46 of file LogicalResponse.hpp.

Constructor & Destructor Documentation

torc::generic::LogicalResponse::~LogicalResponse ( )
throw (
)

Definition at line 110 of file LogicalResponse.cpp.

110 {}
torc::generic::LogicalResponse::LogicalResponse ( )
protected

Definition at line 106 of file LogicalResponse.cpp.

106  : Visitable(), SelfReferencing<LogicalResponse>(),
108  mLogicWaveForm() {}
LogicElementSharedPtr mLogicWaveForm
PortListAliasSharedPtr mConnectedPortListAlias
torc::generic::LogicalResponse::LogicalResponse ( const LogicalResponse source)
private

Member Function Documentation

void torc::generic::LogicalResponse::accept ( BaseVisitor inoutVisitor)
throw (Error
)
virtual

Implements torc::generic::Visitable.

Definition at line 52 of file LogicalResponse.cpp.

52  {
53  try {
54  runVisitor(*this, inoutVisitor);
55  } catch(Error& e) {
56  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
57  throw;
58  }
59 }
void runVisitor(_Tp &inoutVisited, BaseVisitor &inoutVisitor)
Definition: VisitorType.hpp:78

+ Here is the call graph for this function:

const PortSharedPtr torc::generic::LogicalResponse::getConnectedPort ( ) const
inline

Get the connected port shared pointer.

Returns
Connected port shared pointer.

Definition at line 180 of file LogicalResponse.hpp.

180  {
181  return mConnectedPort;
182 }
const PortListSharedPtr torc::generic::LogicalResponse::getConnectedPortList ( ) const
inline

Get the connected port list shared pointer.

Returns
Connected port list shared pointer.

Definition at line 189 of file LogicalResponse.hpp.

189  {
190  return mConnectedPortList;
191 }
const PortListAliasSharedPtr torc::generic::LogicalResponse::getConnectedPortListAlias ( ) const
inline

Get the connected port list alias shared pointer.

Returns
Connected port list alias shared pointer.

Definition at line 198 of file LogicalResponse.hpp.

198  {
200 }
PortListAliasSharedPtr mConnectedPortListAlias
const LogicElementSharedPtr torc::generic::LogicalResponse::getLogicWaveForm ( ) const
inline

Get the logic wave form for this response.

Returns
LogicElementSharedPtr Pointer to logic element object.

Definition at line 207 of file LogicalResponse.hpp.

207  {
208  return mLogicWaveForm;
209 }
LogicElementSharedPtr mLogicWaveForm
const LogicalResponse::ResponseType torc::generic::LogicalResponse::getResponseType ( ) const
inline

Get the Logical response type

Returns
Logical response type

Definition at line 171 of file LogicalResponse.hpp.

171  {
172  return mResponseType;
173 }
Pointer torc::generic::SelfReferencing< LogicalResponse >::getSharedThis ( ) const
inlineinherited

Get a shared pointer to this object. A valid pointer is returned if weakThis was set. Otherwise this returns a NULL pointer. For Vector types, the second scenario is an exception condition and should be treated as such.

Returns
A shared pointer to this object

Get a shared pointer to this object. A valid pointer is returned if weakThis was set. Otherwise this returns a NULL pointer. For Vector types, the second scenario is an exception condition and should be treated as such.

Parameters
[out]ptrSet to a shared pointer to this object
LogicalResponse& torc::generic::LogicalResponse::operator= ( const LogicalResponse source)
private
void torc::generic::LogicalResponse::setConnectedPort ( const PortSharedPtr inPort)

Set the connected port shared pointer.

Parameters
[in]inPortConnected port shared pointer.

Definition at line 75 of file LogicalResponse.cpp.

75  {
76  mConnectedPort = inPort;
77 }
void torc::generic::LogicalResponse::setConnectedPortList ( const PortListSharedPtr inPortList)

Set the connected port list shared pointer.

Parameters
[in]inPortListConnected port list shared pointer.

Definition at line 84 of file LogicalResponse.cpp.

84  {
85  mConnectedPortList = inPortList;
86 }
void torc::generic::LogicalResponse::setConnectedPortListAlias ( const PortListAliasSharedPtr inPortListAlias)

Set the connected port list alias shared pointer.

Parameters
[in]inPortListAliasConnected port list alias shared pointer.

Definition at line 93 of file LogicalResponse.cpp.

93  {
94  mConnectedPortListAlias = inPortListAlias;
95 }
PortListAliasSharedPtr mConnectedPortListAlias
void torc::generic::LogicalResponse::setLogicWaveForm ( const LogicElementSharedPtr inSource)

Set the logic wave form for this response.

Parameters
[in]inSourcePointer to logic element object.

Definition at line 102 of file LogicalResponse.cpp.

102  {
103  mLogicWaveForm = inSource;
104 }
LogicElementSharedPtr mLogicWaveForm
void torc::generic::LogicalResponse::setResponseType ( const ResponseType inSource)

Set the Logical response type

Parameters
[in]inSourceLogical response type

Definition at line 66 of file LogicalResponse.cpp.

66  {
67  mResponseType = inSource;
68 }
void torc::generic::SelfReferencing< LogicalResponse >::setWeakThis ( const WeakPointer inWeakThis)
inlineinherited

Set a weak pointer to this object. This will be used later to get a shared pointer to this object from within other member methods if required. This should be called by the Factory creating the object.

Parameters
[in]weakThisA weak pointer to this object

Friends And Related Function Documentation

friend class FactoryType< LogicalResponse >
friend

Definition at line 39 of file LogicalResponse.hpp.

Field Documentation

PortSharedPtr torc::generic::LogicalResponse::mConnectedPort
private

Definition at line 159 of file LogicalResponse.hpp.

PortListSharedPtr torc::generic::LogicalResponse::mConnectedPortList
private

Definition at line 160 of file LogicalResponse.hpp.

PortListAliasSharedPtr torc::generic::LogicalResponse::mConnectedPortListAlias
private

Definition at line 161 of file LogicalResponse.hpp.

LogicElementSharedPtr torc::generic::LogicalResponse::mLogicWaveForm
private

Definition at line 162 of file LogicalResponse.hpp.

ResponseType torc::generic::LogicalResponse::mResponseType
private

Definition at line 158 of file LogicalResponse.hpp.


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