TLM-2.0  2.0.4
Accellera TLM-2.0 proof-of-concept library
tlm_utils::peq_with_cb_and_phase< OWNER, TYPES > Class Template Reference

#include <tlm_utils/peq_with_cb_and_phase.h>

Inheritance diagram for tlm_utils::peq_with_cb_and_phase< OWNER, TYPES >:
Collaboration diagram for tlm_utils::peq_with_cb_and_phase< OWNER, TYPES >:

Public Types

typedef unsigned phase_cb_mask
 

Public Member Functions

 peq_with_cb_and_phase (OWNER *_owner, cb _cb)
 
 peq_with_cb_and_phase (const char *_name, OWNER *_owner, cb _cb)
 
 ~peq_with_cb_and_phase ()
 
void notify (tlm_payload_type &t, const tlm_phase_type &p, const sc_core::sc_time &when)
 
void notify (tlm_payload_type &t, const tlm_phase_type &p)
 
void cancel_all ()
 
const char * name () const
 
const char * basename () const
 
virtual void print (::std::ostream &os=::std::cout) const
 
virtual void dump (::std::ostream &os=::std::cout) const
 
virtual void trace (sc_trace_file *tf) const
 
virtual const char * kind () const
 
sc_simcontextsimcontext () const
 
bool add_attribute (sc_attr_base &)
 
sc_attr_base * get_attribute (const std::string &name_)
 
const sc_attr_base * get_attribute (const std::string &name_) const
 
sc_attr_base * remove_attribute (const std::string &name_)
 
void remove_all_attributes ()
 
int num_attributes () const
 
sc_attr_cltn & attr_cltn ()
 
const sc_attr_cltn & attr_cltn () const
 
virtual const std::vector< sc_event *> & get_child_events () const
 
virtual const std::vector< sc_object *> & get_child_objects () const
 
sc_objectget_parent () const
 
sc_objectget_parent_object () const
 

Protected Member Functions

virtual void add_child_event (sc_event *event_p)
 
virtual void add_child_object (sc_object *object_p)
 
virtual bool remove_child_event (sc_event *event_p)
 
virtual bool remove_child_object (sc_object *object_p)
 
phase_cb_mask register_simulation_phase_callback (phase_cb_mask)
 
phase_cb_mask unregister_simulation_phase_callback (phase_cb_mask)
 

Detailed Description

template<typename OWNER, typename TYPES = tlm::tlm_base_protocol_types>
class tlm_utils::peq_with_cb_and_phase< OWNER, TYPES >

An event queue that can contain any number of pending notifications. Each notification have an associate payload.

Definition at line 151 of file peq_with_cb_and_phase.h.

Constructor & Destructor Documentation

◆ peq_with_cb_and_phase() [1/2]

template<typename OWNER , typename TYPES = tlm::tlm_base_protocol_types>
tlm_utils::peq_with_cb_and_phase< OWNER, TYPES >::peq_with_cb_and_phase ( OWNER *  _owner,
cb  _cb 
)
inline

Definition at line 195 of file peq_with_cb_and_phase.h.

◆ peq_with_cb_and_phase() [2/2]

template<typename OWNER , typename TYPES = tlm::tlm_base_protocol_types>
tlm_utils::peq_with_cb_and_phase< OWNER, TYPES >::peq_with_cb_and_phase ( const char *  _name,
OWNER *  _owner,
cb  _cb 
)
inline

Definition at line 208 of file peq_with_cb_and_phase.h.

◆ ~peq_with_cb_and_phase()

template<typename OWNER , typename TYPES = tlm::tlm_base_protocol_types>
tlm_utils::peq_with_cb_and_phase< OWNER, TYPES >::~peq_with_cb_and_phase ( )
inline

Definition at line 221 of file peq_with_cb_and_phase.h.

Member Function Documentation

◆ cancel_all()

template<typename OWNER , typename TYPES = tlm::tlm_base_protocol_types>
void tlm_utils::peq_with_cb_and_phase< OWNER, TYPES >::cancel_all ( )
inline

Definition at line 244 of file peq_with_cb_and_phase.h.

◆ notify() [1/2]

template<typename OWNER , typename TYPES = tlm::tlm_base_protocol_types>
void tlm_utils::peq_with_cb_and_phase< OWNER, TYPES >::notify ( tlm_payload_type &  t,
const tlm_phase_type &  p,
const sc_core::sc_time when 
)
inline

Definition at line 223 of file peq_with_cb_and_phase.h.

◆ notify() [2/2]

template<typename OWNER , typename TYPES = tlm::tlm_base_protocol_types>
void tlm_utils::peq_with_cb_and_phase< OWNER, TYPES >::notify ( tlm_payload_type &  t,
const tlm_phase_type &  p 
)
inline

Definition at line 238 of file peq_with_cb_and_phase.h.


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