35 #ifndef SYSC_UTILS_SC_TYPEINDEX_H_INCLUDED_ 36 #define SYSC_UTILS_SC_TYPEINDEX_H_INCLUDED_ 42 #if SC_CPLUSPLUS >= 201103L 46 typedef std::type_index sc_type_index;
49 #else // C++03 implementation 61 {
return *info_ == *rhs.info_; }
64 {
return *info_ != *rhs.info_; }
67 {
return info_->before( *rhs.info_ ); }
70 {
return !(*
this > rhs); }
73 {
return rhs.info_->before( *info_ ); }
76 {
return !(*
this < rhs); }
79 {
return info_->name(); }
82 std::type_info
const* info_;
88 #endif // SC_CPLUSPLUS < 201103L 89 #endif // SYSC_UTILS_SC_TYPEINDEX_H_INCLUDED_ bool operator!=(const sc_type_index &rhs) const
bool operator<=(const sc_type_index &rhs) const
bool operator==(const sc_type_index &rhs) const
bool operator>=(const sc_type_index &rhs) const
bool operator<(const sc_type_index &rhs) const
const char * name() const
sc_type_index(const std::type_info &ti)
bool operator>(const sc_type_index &rhs) const