ATLAS Offline Software
Loading...
Searching...
No Matches
ClassName< T > Class Template Reference

An interface for getting the name of a class as a string. More...

#include <ClassName.h>

Collaboration diagram for ClassName< T >:

Static Public Member Functions

static std::string name ()
 Return the name of class T as a string.

Detailed Description

template<class T>
class ClassName< T >

An interface for getting the name of a class as a string.

This template class provides an interface for getting the name of a class as a string. By default, it uses typeinfoName from GaudiKernel, but it may be specialized to override the behavior for specific classes.

Definition at line 30 of file AthenaKernel/AthenaKernel/ClassName.h.

Member Function Documentation

◆ name()

template<class T>
const std::string & ClassName< T >::name ( )
static

Return the name of class T as a string.

Return the root name of the expression.

In A::B<C>, the root name is B.

Definition at line 229 of file CxxUtils/Root/ClassName.cxx.

230{
231 return m_name;
232}
An interface for getting the name of a class as a string.

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