Jpp
Public Member Functions | List of all members
JROOT::JROOTClassSelector Struct Reference

Auxiliary class to select ROOT class based on class name. More...

#include <JROOTClassSelector.hh>

Inheritance diagram for JROOT::JROOTClassSelector:

Public Member Functions

 JROOTClassSelector ()
 Default contructor. More...
 
 JROOTClassSelector (const char *type_name)
 Contructor. More...
 
 JROOTClassSelector (const std::string &type_name)
 Contructor. More...
 
template<class T >
 JROOTClassSelector (const JType< T > &type)
 Contructor. More...
 
template<class T >
bool operator() (const JType< T > &type) const
 Get status of given data type. More...
 

Detailed Description

Auxiliary class to select ROOT class based on class name.

Definition at line 32 of file JROOTClassSelector.hh.

Constructor & Destructor Documentation

◆ JROOTClassSelector() [1/4]

JROOT::JROOTClassSelector::JROOTClassSelector ( )
inline

Default contructor.

Definition at line 38 of file JROOTClassSelector.hh.

38  :
39  std::string()
40  {}

◆ JROOTClassSelector() [2/4]

JROOT::JROOTClassSelector::JROOTClassSelector ( const char *  type_name)
inline

Contructor.

Parameters
type_nametype_name

Definition at line 48 of file JROOTClassSelector.hh.

48  :
49  std::string(type_name)
50  {}

◆ JROOTClassSelector() [3/4]

JROOT::JROOTClassSelector::JROOTClassSelector ( const std::string &  type_name)
inline

Contructor.

Parameters
type_nametype_name

Definition at line 58 of file JROOTClassSelector.hh.

58  :
59  std::string(type_name)
60  {}

◆ JROOTClassSelector() [4/4]

template<class T >
JROOT::JROOTClassSelector::JROOTClassSelector ( const JType< T > &  type)
inline

Contructor.

Parameters
typedata type

Definition at line 69 of file JROOTClassSelector.hh.

69  :
70  std::string(getClassname(getName(type)))
71  {}

Member Function Documentation

◆ operator()()

template<class T >
bool JROOT::JROOTClassSelector::operator() ( const JType< T > &  type) const
inline

Get status of given data type.

Parameters
typedata type
Returns
true if valid class name; else false

Definition at line 81 of file JROOTClassSelector.hh.

82  {
83  return *this == getClassname(T::Class_Name());
84  }

The documentation for this struct was generated from the following file:
JROOT::getName
const char * getName()
Get ROOT name of given data type.
Definition: JRootToolkit.hh:45
JEEP::getClassname
std::string getClassname(const std::string &type_name)
Get type name, i.e.
Definition: JeepToolkit.hh:242