|
SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
|
Identifier used to set and retrieve properties. More...
#include <PropertyId.h>

Public Member Functions | |
| bool | operator== (PropertyId other) const |
| Equality operator is needed to be use PropertyId as key in unordered_map. | |
| bool | operator< (PropertyId other) const |
| Less than operator needed to use PropertyId as key in a std::map. | |
| std::type_index | getTypeId () const |
| unsigned int | getIndex () const |
| std::string | getString () const |
Static Public Member Functions | |
| template<typename T > | |
| static PropertyId | create (unsigned int index=0) |
Private Member Functions | |
| PropertyId (std::type_index type_id, unsigned int index) | |
Private Attributes | |
| std::type_index | m_type_id |
| unsigned int | m_index |
Friends | |
| struct | std::hash< SourceXtractor::PropertyId > |
Identifier used to set and retrieve properties.
Definition at line 40 of file PropertyId.h.
|
inlineprivate |
Definition at line 77 of file PropertyId.h.
Referenced by create().
|
inlinestatic |
Templated factory method used to create a PropertyId based on the type of a property. An optional index parameter is used to make the distinction between several properties of the same type.
Definition at line 45 of file PropertyId.h.
References PropertyId().

Definition at line 70 of file PropertyId.h.
References m_index.
| std::string SourceXtractor::PropertyId::getString | ( | ) | const |
Definition at line 36 of file PropertyId.cpp.
References m_index, m_type_id, and std::type_index::name().

|
inline |
Definition at line 66 of file PropertyId.h.
References m_type_id.
|
inline |
Less than operator needed to use PropertyId as key in a std::map.
Definition at line 56 of file PropertyId.h.
|
inline |
Equality operator is needed to be use PropertyId as key in unordered_map.
Definition at line 50 of file PropertyId.h.
|
friend |
Definition at line 80 of file PropertyId.h.
Definition at line 80 of file PropertyId.h.
Referenced by getIndex(), getString(), operator<(), and operator==().
|
private |
Definition at line 79 of file PropertyId.h.
Referenced by getString(), getTypeId(), operator<(), and operator==().