Protected Member Functions | List of all members
anab::FVectorWrapperBase Class Reference

Helper functions for MVAReader/Writer and FVecReader/Writer wrappers. More...

#include <MVAWrapperBase.h>

Inheritance diagram for anab::FVectorWrapperBase:
anab::FVectorReader< T, N > anab::FVectorWriter< N > anab::FVectorWriter< 4 > anab::MVAReader< T, N > anab::MVAWriter< N > anab::MVAWriter< 2 > anab::MVAWriter< 3 > anab::MVAWriter< 4 >

Protected Member Functions

std::string getProductName (std::type_info const &ti) const
 
size_t getProductHash (std::type_info const &ti) const
 

Detailed Description

Helper functions for MVAReader/Writer and FVecReader/Writer wrappers.

Definition at line 25 of file MVAWrapperBase.h.

Member Function Documentation

size_t anab::FVectorWrapperBase::getProductHash ( std::type_info const &  ti) const
inlineprotected

Definition at line 31 of file MVAWrapperBase.h.

31 { return ti.hash_code(); }
std::string anab::FVectorWrapperBase::getProductName ( std::type_info const &  ti) const
protected

Definition at line 17 of file MVAWrapperBase.cxx.

18 {
19  char* realname;
20  int status;
21 
22  realname = abi::__cxa_demangle(ti.name(), 0, 0, &status);
23  std::string pname(realname);
24  free(realname);
25 
26  pname.erase( std::remove(pname.begin(), pname.end(), ' '), pname.end() );
27  pname.erase( std::remove(pname.begin(), pname.end(), ':'), pname.end() );
28 
29  return pname;
30 }
std::string string
Definition: nybbler.cc:12

The documentation for this class was generated from the following files: