1 #ifndef __JLANG__JOBJECTID__
2 #define __JLANG__JOBJECTID__
16 namespace JPP {
using namespace JLANG; }
80 return this->
getID() <
object.getID();
90 inline bool less(
const int id)
const
92 return this->
getID() < id;
102 inline bool more(
const int id)
const
104 return this->
getID() > id;
117 return in >>
object.__id;
130 return out <<
object.__id;
143 return in >>
object.__id;
156 return out <<
object.__id;
Interface for binary output.
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
JObjectID(const int id)
Constructor.
JObjectID()
Default constructor.
int getID() const
Get identifier.
bool more(const int id) const
More than method.
bool less(const JObjectID &object) const
Less than method.
Interface for binary input.
Template definition of auxiliary base class for comparison of data structures.
friend std::istream & operator>>(std::istream &in, JObjectID &object)
Read object identifier from input.
friend JReader & operator>>(JReader &in, JObjectID &object)
Read object identifier from input.
Auxiliary class for object identification.
void setID(const int id)
Set identifier.
const JObjectID & getUndefinedObjectID()
Get undefined object identifier.
friend std::ostream & operator<<(std::ostream &out, const JObjectID &object)
Write object identifier to output.
bool less(const int id) const
Less than method.
friend JWriter & operator<<(JWriter &out, const JObjectID &object)
Write object identifier to output.