CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/Utilities/General/interface/ClassName.h File Reference

#include <typeinfo>
#include <string>
#include <cstdlib>

Go to the source code of this file.

Classes

class  ClassName< T >
class  Demangle

Functions

template<class T >
std::string className (const T &t)
std::string firstNonNumeric (const char *sc)

Function Documentation

template<class T >
std::string className ( const T t) [inline]

Definition at line 30 of file ClassName.h.

References mergeVDriftHistosByStation::name.

Referenced by edm::EventContentAnalyzer::analyze(), AlignmentStats::analyze(), ora::ContainerSchema::create(), AttachSD::create(), ora::MappingGenerator::createNewDependentMapping(), ora::MappingGenerator::createNewMapping(), ora::ContainerSchema::evolve(), ora::ContainerSchema::extend(), fftjetcms::fftjet_ScaleSet_parser(), ora::MappingDatabase::getBaseMappingForContainer(), edm::RootAutoLibraryLoader::GetClass(), ora::PoolContainerHeaderTable::getContainerData(), ora::OraMappingSchema::getDependentClassesInContainerMapping(), ora::MappingDatabase::getMappingForContainer(), stor::detail::ChainData::hltClassName(), ora::DatabaseUtilitySession::importContainerSchema(), ora::MappingDatabase::insertClassVersion(), ora::ContainerSchema::loadMappingForDependentClass(), main(), HCAL_HLX::ROOTFileWriter::MakeBranch(), ora::ContainerSchema::mappingForDependentClass(), ora::Database::nameForContainer(), ora::MappingRules::newMappingVersionForDependentClass(), TkTransientTrackingRecHitBuilder::oldbuild(), ora::ContainerHeaderData::operator=(), ora::MappingTree::override(), ora::ArrayMapping::process(), ora::OraReferenceMapping::process(), ora::BlobMapping::process(), ora::ObjectMapping::process(), ora::CArrayMapping::process(), ora::processBaseClasses(), TkAlCaOverlapTagger::produce(), ora::UniqueRefReader::read(), ElectronLikelihood::result(), ElectronLikelihood::resultLog(), HIPAlignmentAlgorithm::run(), ora::MappingRules::sequenceNameForDependentClass(), edm::SetCustomStreamer(), ora::MappingDatabase::setMappingVersionForClass(), edm::SetTransientStreamer(), ora::throwException(), pat::DiObjectProxy::tryGet_(), pat::DiObjectProxy::tryGetOne_(), fwlite::RecordWriter::update(), ora::MappingDatabase::versionOfClass(), edm::wrappedClassName(), and ora::UniqueRefWriter::write().

                                       { 
  return std::string(Demangle(typeid(t).name())());
}
std::string firstNonNumeric ( const char *  sc) [inline]

Definition at line 8 of file ClassName.h.

References pos, and asciidump::s.

                                                  {
  std::string s(sc);
  size_t  pos = s.find_first_not_of("0123456789");
  s.erase(0,pos);
  return s;
}