39 const std::list<PortSharedPtr>& inPorts,
40 const std::list<PortReferenceSharedPtr>& inPortReferences,
46 newEvent->setType(inEventType);
47 std::list<PortSharedPtr>::const_iterator portIt = inPorts.begin();
48 for(; portIt != inPorts.end(); portIt++) {
49 newEvent->addPort(*portIt);
52 std::list<PortReferenceSharedPtr>::const_iterator portRefIt = inPortReferences.begin();
53 for(; portRefIt != inPortReferences.end(); portRefIt++) {
54 newEvent->addPortReference(*portRefIt);
57 std::list<NetSharedPtr>::const_iterator netIt = inNets.begin();
58 for(; netIt != inNets.end(); netIt++) {
59 newEvent->addNet(*netIt);
62 newEvent->setTransition(inTransition);
65 newEvent->setPortList(inPortList);
68 if(inOffsetTime.getIsSet()) {
69 newEvent->setOffsetTime(inOffsetTime);
131 mNets.push_back(inNet);
152 mNets(), mTransition(), mOffsetTime() {}
void setType(const Type &inSource)
std::list< NetSharedPtr > mNets
void setTransition(const LogicElementSharedPtr &inSource)
boost::shared_ptr< LogicElement > LogicElementSharedPtr
Represents port element like port or port reference.
PortListSharedPtr mPortList
void runVisitor(_Tp &inoutVisited, BaseVisitor &inoutVisitor)
The Error object thrown by different methods of EdifOM.
boost::shared_ptr< Net > NetSharedPtr
void addPortReference(const PortReferenceSharedPtr &inPortRef)
A base class for Visitor.
boost::shared_ptr< PortReference > PortReferenceSharedPtr
boost::shared_ptr< PortList > PortListSharedPtr
boost::shared_ptr< Event > EventSharedPtr
std::list< PortElement > mPortElements
virtual void accept(BaseVisitor &inoutVisitor)
void addPort(const PortSharedPtr &inPort)
void setOffsetTime(const Value &value)
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.
boost::shared_ptr< Port > PortSharedPtr
virtual EventSharedPtr newEventPtr(const Event::Type &inEventType, const std::list< PortSharedPtr > &inPorts, const std::list< PortReferenceSharedPtr > &inPortReferences, const std::list< NetSharedPtr > &inNets, const LogicElementSharedPtr &inTransition=LogicElementSharedPtr(), const PortListSharedPtr &inPortList=PortListSharedPtr(), const Value &inOffsetTime=Value())
void addNet(const NetSharedPtr &inNet)
LogicElementSharedPtr mTransition
void setPortList(const PortListSharedPtr &inPortList)
An object that receives an inoutVisitor.
void setCurrentLocation(const std::string &inFunction, const std::string &inFile, uint32_t inLine)