Jpp  15.0.5
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
JAANET::XSecFile Struct Reference

Neutrino cross section file. More...

#include <JHead.hh>

Inheritance diagram for JAANET::XSecFile:
JAANET::String

Public Member Functions

 ClassDefNV (XSecFile, 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

Neutrino cross section file.

Definition at line 278 of file JHead.hh.

Member Function Documentation

JAANET::XSecFile::ClassDefNV ( XSecFile  ,
 
)
bool JAANET::String::match ( const String object) const
inlineinherited

Test match.

Parameters
objectstring
Returns
true if matches; else false

Definition at line 136 of file JHead.hh.

137  {
138  return !(*this).less(object) && !(object).less(*this);
139  }
bool less(const String &object) const
Comparison.
Definition: JHead.hh:147
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 147 of file JHead.hh.

148  {
149  using namespace std;
150 
151  istringstream i0(this ->buffer);
152  istringstream i1(object.buffer);
153 
154  vector<string> v0;
155  vector<string> v1;
156 
157  copy(istream_iterator<string>(i0), istream_iterator<string>(), back_inserter(v0));
158  copy(istream_iterator<string>(i1), istream_iterator<string>(), back_inserter(v1));
159 
160  return v0 < v1;
161  }
std::string buffer
General purpose name.
Definition: JHead.hh:187
void copy(const Head &from, JHead &to)
Copy header from from to to.
Definition: JHead.cc:139
JAANET::String::ClassDefNV ( String  ,
 
)
inherited

Member Data Documentation

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

General purpose name.

Definition at line 187 of file JHead.hh.


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