Auxiliary class for object identification.
More...
#include <JObjectID.hh>
Auxiliary class for object identification.
Definition at line 27 of file JObjectID.hh.
◆ JObjectID() [1/2]
JLANG::JObjectID::JObjectID |
( |
| ) |
|
|
inline |
◆ JObjectID() [2/2]
JLANG::JObjectID::JObjectID |
( |
const int |
id | ) |
|
|
inline |
◆ getID()
int JLANG::JObjectID::getID |
( |
| ) |
const |
|
inline |
Get identifier.
- Returns
- identifier
Definition at line 55 of file JObjectID.hh.
◆ setID()
void JLANG::JObjectID::setID |
( |
const int |
id | ) |
|
|
inline |
Set identifier.
- Parameters
-
Definition at line 66 of file JObjectID.hh.
◆ less() [1/2]
bool JLANG::JObjectID::less |
( |
const JObjectID & |
object | ) |
const |
|
inline |
Less than method.
- Parameters
-
- Returns
- true if this identifier less than given identifier; else false
Definition at line 78 of file JObjectID.hh.
80 return this->
getID() <
object.getID();
◆ less() [2/2]
bool JLANG::JObjectID::less |
( |
const int |
id | ) |
const |
|
inline |
Less than method.
- Parameters
-
- Returns
- true if this identifier less than given identifier; else false
Definition at line 90 of file JObjectID.hh.
92 return this->
getID() < id;
◆ more()
bool JLANG::JObjectID::more |
( |
const int |
id | ) |
const |
|
inline |
More than method.
- Parameters
-
- Returns
- true if this identifier greater than given identifier; else false
Definition at line 102 of file JObjectID.hh.
104 return this->
getID() > id;
◆ operator>> [1/2]
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
JObjectID & |
object |
|
) |
| |
|
friend |
Read object identifier from input.
- Parameters
-
in | input stream |
object | object identifier |
- Returns
- input stream
Definition at line 115 of file JObjectID.hh.
117 return in >>
object.__id;
◆ operator<< [1/2]
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const JObjectID & |
object |
|
) |
| |
|
friend |
Write object identifier to output.
- Parameters
-
out | output stream |
object | object identifier |
- Returns
- output stream
Definition at line 128 of file JObjectID.hh.
130 return out <<
object.__id;
◆ operator>> [2/2]
Read object identifier from input.
- Parameters
-
in | reader |
object | object identifier |
- Returns
- reader
Definition at line 141 of file JObjectID.hh.
143 return in >>
object.__id;
◆ operator<< [2/2]
Write object identifier to output.
- Parameters
-
out | writer |
object | object identifier |
- Returns
- writer
Definition at line 154 of file JObjectID.hh.
156 return out <<
object.__id;
◆ __id
int JLANG::JObjectID::__id |
|
protected |
The documentation for this class was generated from the following file: