Auxiliary class for ROOT class selection.  
 More...
#include <JROOTClassSelector.hh>
Auxiliary class for ROOT class selection. 
Definition at line 90 of file JROOTClassSelector.hh.
  
  | 
        
          | JROOT::JROOTClassSelection::JROOTClassSelection | ( |  | ) |  |  | inline | 
 
 
template<class T > 
  
  | 
        
          | JROOT::JROOTClassSelection::JROOTClassSelection | ( | const JType< T > & | typelist | ) |  |  | inline | 
 
Contructor. 
- Parameters
- 
  
  
Definition at line 116 of file JROOTClassSelector.hh.
JObject_t & for_each(JObject_t &object, JType< JTypeList< JHead_t, JTail_t > > typelist)
For each data type method. 
 
 
 
template<class T > 
  
  | 
        
          | void JROOT::JROOTClassSelection::operator() | ( | const JType< T > & | type | ) |  |  | inline | 
 
Virtual destructor. 
Add data type.
- Parameters
- 
  
  
Definition at line 136 of file JROOTClassSelector.hh.
Auxiliary class to select ROOT class based on class name. 
 
 
 
template<class T > 
  
  | 
        
          | bool JROOT::JROOTClassSelection::operator() | ( | const JType< T > & | type | ) | const |  | inline | 
 
Get status of given data type. 
- Parameters
- 
  
  
- Returns
- true if valid class name; else false 
Definition at line 149 of file JROOTClassSelector.hh.
  151       return this->find(
getClassname(T::Class_Name())) != this->end();
 
std::string getClassname(const std::string &type_name)
Get type name, i.e. 
 
 
 
Read ROOT class selection from input. 
Note that if the first character of the read class name is:
- '+' the remainder of the class name is added; or
- '-' the remainder of the class name is removed; otherwise
- the complete class name is added.
- Parameters
- 
  
    | in | input stream |  | object | ROOT class selection |  
 
- Returns
- input stream 
Definition at line 167 of file JROOTClassSelector.hh.
  169       for (std::string buffer; in >> buffer; ) {
 
  171         const TRegexp regexp(buffer.substr(1).c_str());
 
  177           for (JROOTClassSelection::iterator i = 
object.begin(); i != 
object.end(); ) {
 
  179             if (TString(i->c_str()).Index(regexp) != -1)
 
  189           object.insert(buffer.substr(1));
 
  194           object.insert(buffer);
 
 
 
 
Write ROOT class selection to output. 
- Parameters
- 
  
    | out | output stream |  | object | ROOT class selection |  
 
- Returns
- output stream 
Definition at line 210 of file JROOTClassSelector.hh.
  212       for (const_iterator i = 
object.begin(); i != 
object.end(); ++i) {
 
  213         out << *i << std::endl;
 
 
 
 
The documentation for this struct was generated from the following file: