Jpp
 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 31 of file JROOTClassSelector.hh.

Constructor & Destructor Documentation

JROOT::JROOTClassSelector::JROOTClassSelector ( )
inline

Default contructor.

Definition at line 37 of file JROOTClassSelector.hh.

37  :
38  std::string()
39  {}
JROOT::JROOTClassSelector::JROOTClassSelector ( const char *  type_name)
inline

Contructor.

Parameters
type_nametype_name

Definition at line 47 of file JROOTClassSelector.hh.

47  :
48  std::string(type_name)
49  {}
JROOT::JROOTClassSelector::JROOTClassSelector ( const std::string &  type_name)
inline

Contructor.

Parameters
type_nametype_name

Definition at line 57 of file JROOTClassSelector.hh.

57  :
58  std::string(type_name)
59  {}
template<class T >
JROOT::JROOTClassSelector::JROOTClassSelector ( const JType< T > &  type)
inline

Contructor.

Parameters
typedata type

Definition at line 68 of file JROOTClassSelector.hh.

68  :
69  std::string(getClassname(T::Class_Name()))
70  {}
std::string getClassname(const std::string &type_name)
Get type name, i.e.
Definition: JeepToolkit.hh:226

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 80 of file JROOTClassSelector.hh.

81  {
82  return *this == getClassname(T::Class_Name());
83  }
std::string getClassname(const std::string &type_name)
Get type name, i.e.
Definition: JeepToolkit.hh:226

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