Jpp  master_rocky
the software that should make you happy
Public Member Functions | Public Attributes | List of all members
JAANET::muon_desc_file Struct Reference

Muon descriptor file. More...

#include <JHead.hh>

Inheritance diagram for JAANET::muon_desc_file:
JAANET::String

Public Member Functions

 ClassDefNV (muon_desc_file, 1)
 
bool match (const String &object) const
 Test match. More...
 
bool less (const String &object) const
 Comparison. More...
 
 ClassDefNV (String, 1)
 

Public Attributes

std::string buffer
 General purpose name. More...
 

Detailed Description

Muon descriptor file.

Definition at line 288 of file JHead.hh.

Member Function Documentation

◆ ClassDefNV() [1/2]

JAANET::muon_desc_file::ClassDefNV ( muon_desc_file  ,
 
)

◆ match()

bool JAANET::String::match ( const String object) const
inlineinherited

Test match.

Parameters
objectstring
Returns
true if matches; else false

Definition at line 166 of file JHead.hh.

167  {
168  return !(*this).less(object) && !(object).less(*this);
169  }
bool less(const String &object) const
Comparison.
Definition: JHead.hh:177

◆ less()

bool JAANET::String::less ( const String object) const
inlineinherited

Comparison.

Parameters
objectstring
Returns
true if this string less than given string; else false

Definition at line 177 of file JHead.hh.

178  {
179  using namespace std;
180 
181  istringstream i0(this ->buffer);
182  istringstream i1(object.buffer);
183 
184  vector<string> v0;
185  vector<string> v1;
186 
187  copy(istream_iterator<string>(i0), istream_iterator<string>(), back_inserter(v0));
188  copy(istream_iterator<string>(i1), istream_iterator<string>(), back_inserter(v1));
189 
190  return v0 < v1;
191  }
void copy(const Head &from, JHead &to)
Copy header from from to to.
Definition: JHead.cc:162
Definition: JSTDTypes.hh:14
std::string buffer
General purpose name.
Definition: JHead.hh:217

◆ ClassDefNV() [2/2]

JAANET::String::ClassDefNV ( String  ,
 
)
inherited

Member Data Documentation

◆ buffer

std::string JAANET::String::buffer
inherited

General purpose name.

Definition at line 217 of file JHead.hh.


The documentation for this struct was generated from the following file: