Auxiliary class for object identification.
More...
#include <JObjectID.hh>
Auxiliary class for object identification.
Definition at line 27 of file JObjectID.hh.
JLANG::JObjectID::JObjectID |
( |
| ) |
|
|
inline |
JLANG::JObjectID::JObjectID |
( |
const int |
id | ) |
|
|
inline |
int JLANG::JObjectID::getID |
( |
| ) |
const |
|
inline |
Get identifier.
- Returns
- identifier
Definition at line 54 of file JObjectID.hh.
void JLANG::JObjectID::setID |
( |
const int |
id | ) |
|
|
inline |
Set identifier.
- Parameters
-
Definition at line 65 of file JObjectID.hh.
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 77 of file JObjectID.hh.
79 return this->
getID() <
object.getID();
int getID() const
Get identifier.
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 89 of file JObjectID.hh.
91 return this->
getID() < id;
int getID() const
Get identifier.
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 101 of file JObjectID.hh.
103 return this->
getID() > id;
int getID() const
Get identifier.
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 114 of file JObjectID.hh.
116 return in >>
object.__id;
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 127 of file JObjectID.hh.
129 return out <<
object.__id;
Read object identifier from input.
- Parameters
-
in | reader |
object | object identifier |
- Returns
- reader
Definition at line 140 of file JObjectID.hh.
142 return in >>
object.__id;
Write object identifier to output.
- Parameters
-
out | writer |
object | object identifier |
- Returns
- writer
Definition at line 153 of file JObjectID.hh.
155 return out <<
object.__id;
int JLANG::JObjectID::__id |
|
protected |
The documentation for this class was generated from the following file: