20 #ifndef TLM_CORE_TLM2_TLM_PHASE_H_INCLUDED_ 21 #define TLM_CORE_TLM2_TLM_PHASE_H_INCLUDED_ 49 tlm_phase& operator=(tlm_phase_enum standard);
51 operator unsigned int()
const {
return m_id; }
52 const char* get_name()
const;
56 tlm_phase(
const std::type_info & type,
const char* name );
86 #define TLM_DECLARE_EXTENDED_PHASE(name_arg) \ 87 static class SC_CONCAT_HELPER_(tlm_phase_, name_arg) \ 88 : public ::tlm::tlm_phase \ 90 typedef SC_CONCAT_HELPER_(tlm_phase_, name_arg) this_type; \ 92 SC_CONCAT_HELPER_(tlm_phase_, name_arg)() \ 93 : ::tlm::tlm_phase( typeid(*this), SC_STRINGIFY_HELPER_(name_arg) ) \ 96 static const this_type& get_phase() \ 97 { static this_type this_; return this_; } \ 102 #define DECLARE_EXTENDED_PHASE( NameArg ) \ 103 TLM_DECLARE_EXTENDED_PHASE( NameArg )
const char * get_name() const
tlm_phase & operator=(tlm_phase_enum standard)
std::ostream & operator<<(std::ostream &s, const tlm_phase &p)