1#ifndef __JLANG__JOBJECTID__
2#define __JLANG__JOBJECTID__
15namespace JPP {
using namespace JLANG; }
44 _id_(getUndefinedObjectID())
99 return this->
getID() <
object.getID();
109 inline bool less(
const int id)
const
111 return this->
getID() < id;
121 inline bool more(
const int id)
const
123 return this->
getID() > id;
136 return in >>
object._id_;
149 return out <<
object._id_;
Auxiliary base class for object identification.
int getID() const
Get identifier.
JObjectID(const int id)
Constructor.
bool less(const int id) const
Less than method.
int & getID()
Get identifier.
bool less(const JObjectID &object) const
Less than method.
bool more(const int id) const
More than method.
friend std::istream & operator>>(std::istream &in, JObjectID &object)
Read object identifier from input.
JObjectID()
Default constructor.
void setID(const int id)
Set identifier.
friend std::ostream & operator<<(std::ostream &out, const JObjectID &object)
Write object identifier to output.
Auxiliary classes and methods for language specific functionality.
int getUndefinedObjectID()
Get undefined object identifier.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Template definition of auxiliary base class for comparison of data structures.