An Identifier is a reference to a string (IdentifierData) that only contains alpha-numeric characters and underscores.
More...
#include <Identifier.hh>
An Identifier is a reference to a string (IdentifierData) that only contains alpha-numeric characters and underscores.
Definition at line 133 of file Identifier.hh.
◆ ConstIterator
◆ ConstReverseIterator
◆ Exception
◆ Identifier() [1/5]
Diades::Utils::Identifier::Identifier |
( |
| ) |
|
|
inline |
◆ Identifier() [2/5]
◆ Identifier() [3/5]
Diades::Utils::Identifier::Identifier |
( |
const char * |
cString | ) |
|
Param Constructor
- Parameters
-
cString | a string to associate |
Create an Identifier refering 'cString'.
- Note
- Note that IdentifierData associated to cString might be already created In this case, it won't be duplicated
◆ Identifier() [4/5]
Diades::Utils::Identifier::Identifier |
( |
const string & |
str | ) |
|
Param Constructor
- Parameters
-
Create an Identifier refering 'cString'.
- Note
- Note that IdentifierData associated to cString might be already created In this case, it won't be duplicated
◆ Identifier() [5/5]
Diades::Utils::Identifier::Identifier |
( |
const Identifier & |
identifier | ) |
|
|
inline |
Copy constructor (reference copy, no string duplications)
- Parameters
-
Definition at line 202 of file Identifier.hh.
◆ begin()
◆ c_str()
const char* Diades::Utils::Identifier::c_str |
( |
| ) |
const |
|
inline |
◆ end()
◆ id()
unsigned Diades::Utils::Identifier::id |
( |
| ) |
const |
|
inline |
◆ length()
size_t Diades::Utils::Identifier::length |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool Diades::Utils::Identifier::operator!= |
( |
const Identifier & |
identifier | ) |
const |
|
inline |
Difference operator (reference equality)
- Parameters
-
- Returns
- true if the current Identifier is not the same as 'identifier'
Definition at line 463 of file Identifier.hh.
◆ operator+=() [1/4]
- Parameters
-
- Returns
- An Identifier that results from the appending of the current one and 'id'
◆ operator+=() [2/4]
Identifier& Diades::Utils::Identifier::operator+= |
( |
const string & |
str | ) |
|
- Parameters
-
- Returns
- an Identifier that results from the appending of the current one and 'str'
◆ operator+=() [3/4]
Identifier& Diades::Utils::Identifier::operator+= |
( |
const char * |
s | ) |
|
- Parameters
-
- Returns
- an Identifier that results from the appending of the current one and 's'
◆ operator+=() [4/4]
Identifier& Diades::Utils::Identifier::operator+= |
( |
char |
c | ) |
|
- Parameters
-
c | the character to append to the current Identifier |
- Returns
- an Identifier that results from the appending of the current one and 'c'
◆ operator<()
bool Diades::Utils::Identifier::operator< |
( |
const Identifier & |
identifier | ) |
const |
Comparison operator (lexicographic order)
- Parameters
-
- Returns
- true if the current Identifier is smaller than 'identifier'
◆ operator=()
Assignation operator (reference assignation, not a copy)
- Parameters
-
identifier | the identifier to assign |
- Returns
- the current assigned Identifier
Definition at line 224 of file Identifier.hh.
References _data.
◆ operator==()
bool Diades::Utils::Identifier::operator== |
( |
const Identifier & |
identifier | ) |
const |
|
inline |
Equality operator (reference equality)
- Parameters
-
- Returns
- true if the current Identifier is the same as 'identifier'
Definition at line 451 of file Identifier.hh.
References _data.
◆ operator[]()
const char& Diades::Utils::Identifier::operator[] |
( |
size_t |
pos | ) |
const |
|
inline |
◆ rank()
double Diades::Utils::Identifier::rank |
( |
| ) |
const |
|
inline |
◆ rbegin()
◆ rend()
◆ size()
size_t Diades::Utils::Identifier::size |
( |
| ) |
const |
|
inline |
◆ str()
const string& Diades::Utils::Identifier::str |
( |
| ) |
const |
|
inline |
◆ typeName()
static string Diades::Utils::Identifier::typeName |
( |
| ) |
|
|
inlinestatic |
◆ valid()
bool Diades::Utils::Identifier::valid |
( |
| ) |
const |
|
inline |
◆ IdentifierFactory
◆ operator>>
istream& operator>> |
( |
istream & |
is, |
|
|
Identifier & |
identifier |
|
) |
| |
|
friend |
Input Stream operator
- Parameters
-
- Returns
- the input stream after reading the identifier. 'identifier' contains the identifier contained in the input stream
◆ _data
The documentation for this class was generated from the following file:
- /home/yannick/laas/redmine/tools/diades/include/diades/utils/Identifier.hh