CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
Demangle Class Reference

#include <ClassName.h>

Public Member Functions

 Demangle (const char *sc)
 
const char * operator() () const
 
 ~Demangle ()
 

Private Attributes

char * demangle
 

Detailed Description

Definition at line 15 of file ClassName.h.

Constructor & Destructor Documentation

Demangle::Demangle ( const char *  sc)

Definition at line 5 of file ClassName.cc.

References demangle, and ntuplemaker::status.

5  : demangle(0) {
6  if (sc==0) return;
7  int status;
8  demangle = abi::__cxa_demangle(sc, 0, 0, &status);
9  if(status == 0) return;
10  demangle = 0;
11  if(status == -1)
12  throw std::bad_alloc();
13  else if(status == -2) {
14  demangle = strdup(sc);
15  }
16 }
char * demangle
Definition: ClassName.h:25
tuple status
Definition: ntuplemaker.py:245
Demangle::~Demangle ( )
inline

Definition at line 21 of file ClassName.h.

References demangle.

21 { if (demangle) free((void*)demangle); }
char * demangle
Definition: ClassName.h:25

Member Function Documentation

const char* Demangle::operator() ( ) const
inline

Definition at line 19 of file ClassName.h.

References demangle.

19 { return demangle;}
char * demangle
Definition: ClassName.h:25

Member Data Documentation

char* Demangle::demangle
private

Definition at line 25 of file ClassName.h.

Referenced by Demangle(), operator()(), and ~Demangle().