75 const std::type_info&
get()
const
81 {
return m_ti->before(*rhs.m_ti) != 0; }
84 const std::type_info* m_ti;
92 {
return (lhs.
get() == rhs.
get()) != 0; }
99 {
return !(lhs == rhs); }
106 {
return lhs.
before(rhs); }
113 {
return rhs < lhs; }
120 {
return !(lhs > rhs); }
127 {
return !(lhs < rhs); }
131 #endif // PT_TYPEINFO_H
bool operator==(const TypeInfo &lhs, const TypeInfo &rhs)
Equal comparison.
Definition: TypeInfo.h:91
bool operator<=(const TypeInfo &lhs, const TypeInfo &rhs)
Less-than or equal comparison.
Definition: TypeInfo.h:119
bool operator!=(const TypeInfo &lhs, const TypeInfo &rhs)
Inequal comparison.
Definition: TypeInfo.h:98
bool operator<(const TypeInfo &lhs, const TypeInfo &rhs)
Less-than comparison.
Definition: TypeInfo.h:105
TypeInfo()
Construct a void type info.
Definition: TypeInfo.h:61
const std::type_info & get() const
Returns the type info.
Definition: TypeInfo.h:75
bool operator>=(const TypeInfo &lhs, const TypeInfo &rhs)
Greater-than or equal comparison.
Definition: TypeInfo.h:126
bool operator>(const TypeInfo &lhs, const TypeInfo &rhs)
Greater-than comparison.
Definition: TypeInfo.h:112
bool before(const TypeInfo &rhs) const
Determines order of TypeInfo instances.
Definition: TypeInfo.h:80
Extended API for std::type_info.
Definition: TypeInfo.h:56
Void type.
Definition: Void.h:43
TypeInfo(const std::type_info &ti)
Construct from type info.
Definition: TypeInfo.h:69