torc-master
|
Event is used to describe an event on a port or a net using logic state transitions. Events can also be described for unordered groups of ports or nets using portGroup or netGroup. An ordered list of ports may also be used using a portList. More...
#include <Event.hpp>
Data Structures | |
class | Factory |
Public Types | |
enum | Type { eTypeEvent = 0, eTypeOffsetEvent } |
typedef VisitorType< Event > | Visitor |
typedef boost::shared_ptr< Type > | Pointer |
typedef boost::weak_ptr< Type > | WeakPointer |
Public Member Functions | |
virtual void | accept (BaseVisitor &inoutVisitor) throw (Error) |
const Type | getType () const |
void | setType (const Type &inSource) |
void | getPortElements (std::list< PortElement > &outPortElements) const |
void | addPort (const PortSharedPtr &inPort) |
void | addPortReference (const PortReferenceSharedPtr &inPortRef) |
const PortListSharedPtr | getPortList () const |
void | setPortList (const PortListSharedPtr &inPortList) |
void | getNets (std::list< NetSharedPtr > &outNets) const |
void | addNet (const NetSharedPtr &inNet) |
const LogicElementSharedPtr | getTransition () const |
void | setTransition (const LogicElementSharedPtr &inSource) |
const Value | getOffsetTime () const |
void | setOffsetTime (const Value &value) |
virtual | ~Event () throw () |
void | setWeakThis (const WeakPointer &inWeakThis) |
Pointer | getSharedThis () const |
Protected Member Functions | |
Event () | |
Private Member Functions | |
Event (const Event &source) | |
Event & | operator= (const Event &source) |
Private Attributes | |
Type | mType |
std::list< PortElement > | mPortElements |
PortListSharedPtr | mPortList |
std::list< NetSharedPtr > | mNets |
LogicElementSharedPtr | mTransition |
Value | mOffsetTime |
Friends | |
class | FactoryType< Event > |
Event is used to describe an event on a port or a net using logic state transitions. Events can also be described for unordered groups of ports or nets using portGroup or netGroup. An ordered list of ports may also be used using a portList.
This class also models edif OffsetEvent construct, which is used to define a time relative to an Event.
|
inherited |
Definition at line 36 of file SelfReferencing.hpp.
|
inherited |
Definition at line 37 of file SelfReferencing.hpp.
Event type
Enumerator | |
---|---|
eTypeEvent | |
eTypeOffsetEvent |
Definition at line 53 of file Event.hpp.
|
private |
|
virtual |
Implements torc::generic::Visitable.
Definition at line 79 of file Event.cpp.
void torc::generic::Event::addNet | ( | const NetSharedPtr & | inNet | ) |
void torc::generic::Event::addPort | ( | const PortSharedPtr & | inPort | ) |
void torc::generic::Event::addPortReference | ( | const PortReferenceSharedPtr & | inPortRef | ) |
|
inline |
Get the list of Net of an Event. When Net element list size is more than one, it is NetGroup.
Get the list of nets of an Event. When Net element list size is more than one, it is NetGroup.
Definition at line 239 of file Event.hpp.
|
inline |
|
inline |
|
inline |
|
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.
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.
[out] | ptr | Set to a shared pointer to this object |
|
inline |
|
inline |
Get the event type
void torc::generic::Event::setOffsetTime | ( | const Value & | value | ) |
void torc::generic::Event::setPortList | ( | const PortListSharedPtr & | inPortList | ) |
void torc::generic::Event::setTransition | ( | const LogicElementSharedPtr & | inSource | ) |
void torc::generic::Event::setType | ( | const Type & | inSource | ) |
Set the event type
[in] | inSource | Event type |
|
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.
[in] | weakThis | A weak pointer to this object |
|
friend |
|
private |
|
private |
|
private |
|
private |