Jpp
Public Member Functions | Public Attributes | Protected Attributes | List of all members
JDETECTOR::JMonteCarloDetector::LCM_logic Class Reference

Auxiliary class for LCM logic parameters. More...

Inheritance diagram for JDETECTOR::JMonteCarloDetector::LCM_logic:
JLANG::JObjectID std::vector< int > JLANG::JComparable< JObjectID > JLANG::JComparable< JObjectID, int >

Public Member Functions

 LCM_logic (std::istream &in)
 Constructor. More...
 
int getID () const
 Get identifier. More...
 
void setID (const int id)
 Set identifier. More...
 
bool less (const JObjectID &object) const
 Less than method. More...
 
bool less (const int id) const
 Less than method. More...
 
bool more (const int id) const
 More than method. More...
 

Public Attributes

int string_id
 string identifier More...
 
int lcm_id
 LCM identifier. More...
 

Protected Attributes

int __id
 

Detailed Description

Auxiliary class for LCM logic parameters.

Definition at line 185 of file JMonteCarloDetector.hh.

Constructor & Destructor Documentation

◆ LCM_logic()

JDETECTOR::JMonteCarloDetector::LCM_logic::LCM_logic ( std::istream &  in)
inline

Constructor.

Parameters
ininput stream

Definition at line 195 of file JMonteCarloDetector.hh.

196  {
197  int n;
198 
199  in >> static_cast<JObjectID&>(*this) >> string_id >> lcm_id >> n;
200 
201  this->resize(n);
202 
203  iterator p = this->begin();
204 
205  for ( ; n != 0; --n, ++p)
206  in >> *p;
207  }

Member Function Documentation

◆ getID()

int JLANG::JObjectID::getID ( ) const
inlineinherited

Get identifier.

Returns
identifier

Definition at line 55 of file JObjectID.hh.

56  {
57  return __id;
58  }

◆ setID()

void JLANG::JObjectID::setID ( const int  id)
inlineinherited

Set identifier.

Parameters
ididentifier

Definition at line 66 of file JObjectID.hh.

67  {
68  this->__id = id;
69  }

◆ less() [1/2]

bool JLANG::JObjectID::less ( const JObjectID object) const
inlineinherited

Less than method.

Parameters
objectobject identifier
Returns
true if this identifier less than given identifier; else false

Definition at line 78 of file JObjectID.hh.

79  {
80  return this->getID() < object.getID();
81  }

◆ less() [2/2]

bool JLANG::JObjectID::less ( const int  id) const
inlineinherited

Less than method.

Parameters
ididentifier
Returns
true if this identifier less than given identifier; else false

Definition at line 90 of file JObjectID.hh.

91  {
92  return this->getID() < id;
93  }

◆ more()

bool JLANG::JObjectID::more ( const int  id) const
inlineinherited

More than method.

Parameters
ididentifier
Returns
true if this identifier greater than given identifier; else false

Definition at line 102 of file JObjectID.hh.

103  {
104  return this->getID() > id;
105  }

Member Data Documentation

◆ string_id

int JDETECTOR::JMonteCarloDetector::LCM_logic::string_id

string identifier

Definition at line 209 of file JMonteCarloDetector.hh.

◆ lcm_id

int JDETECTOR::JMonteCarloDetector::LCM_logic::lcm_id

LCM identifier.

Definition at line 210 of file JMonteCarloDetector.hh.

◆ __id

int JLANG::JObjectID::__id
protectedinherited

Definition at line 160 of file JObjectID.hh.


The documentation for this class was generated from the following file:
JDETECTOR::JMonteCarloDetector::LCM_logic::string_id
int string_id
string identifier
Definition: JMonteCarloDetector.hh:209
std::iterator
Definition: JSTDTypes.hh:18
JTOOLS::n
const int n
Definition: JPolint.hh:628
JDETECTOR::JMonteCarloDetector::LCM_logic::lcm_id
int lcm_id
LCM identifier.
Definition: JMonteCarloDetector.hh:210
JLANG::JObjectID::getID
int getID() const
Get identifier.
Definition: JObjectID.hh:55
JLANG::JObjectID::__id
int __id
Definition: JObjectID.hh:160