Jpp  16.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

JROOT::JROOTClassSelector::JROOTClassSelector ( )
inline

Default contructor.

Definition at line 38 of file JROOTClassSelector.hh.

38  :
39  std::string()
40  {}
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  {}
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  {}
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  {}
std::string getClassname(const std::string &type_name)
Get type name, i.e. part after JEEP::TYPENAME_SEPARATOR.
Definition: JeepToolkit.hh:244
const char * getName()
Get ROOT name of given data type.
Definition: JRootToolkit.hh:57

Member Function Documentation

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  }
std::string getClassname(const std::string &type_name)
Get type name, i.e. part after JEEP::TYPENAME_SEPARATOR.
Definition: JeepToolkit.hh:244

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