Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TClassEdit::AtomicTypeNameHandlerRAII Class Reference

A RAII helper to remove and readd enclosing _Atomic() It expects no spaces at the beginning or end of the string.

Definition at line 159 of file TClassEdit.h.

Public Types

enum class  EBehavior : short { kDetectStripReadd , kDetectStrip , kReadd , kNoOp }
 

Public Member Functions

 AtomicTypeNameHandlerRAII (std::string &typeName, EBehavior behavior=EBehavior::kDetectStripReadd)
 
 ~AtomicTypeNameHandlerRAII ()
 
bool IsAtomic ()
 

Private Attributes

EBehavior fBehavior
 
const char * fgPrefix = "_Atomic("
 
bool fIsAtomic = false
 
std::string & fTypeName
 

#include <TClassEdit.h>

Member Enumeration Documentation

◆ EBehavior

Enumerator
kDetectStripReadd 
kDetectStrip 
kReadd 
kNoOp 

Definition at line 161 of file TClassEdit.h.

Constructor & Destructor Documentation

◆ AtomicTypeNameHandlerRAII()

TClassEdit::AtomicTypeNameHandlerRAII::AtomicTypeNameHandlerRAII ( std::string & typeName,
EBehavior behavior = EBehavior::kDetectStripReadd )
inline

Definition at line 175 of file TClassEdit.h.

◆ ~AtomicTypeNameHandlerRAII()

TClassEdit::AtomicTypeNameHandlerRAII::~AtomicTypeNameHandlerRAII ( )
inline

Definition at line 194 of file TClassEdit.h.

Member Function Documentation

◆ IsAtomic()

bool TClassEdit::AtomicTypeNameHandlerRAII::IsAtomic ( )
inline

Definition at line 192 of file TClassEdit.h.

Member Data Documentation

◆ fBehavior

EBehavior TClassEdit::AtomicTypeNameHandlerRAII::fBehavior
private

Definition at line 171 of file TClassEdit.h.

◆ fgPrefix

const char* TClassEdit::AtomicTypeNameHandlerRAII::fgPrefix = "_Atomic("
private

Definition at line 172 of file TClassEdit.h.

◆ fIsAtomic

bool TClassEdit::AtomicTypeNameHandlerRAII::fIsAtomic = false
private

Definition at line 170 of file TClassEdit.h.

◆ fTypeName

std::string& TClassEdit::AtomicTypeNameHandlerRAII::fTypeName
private

Definition at line 169 of file TClassEdit.h.

  • core/foundation/inc/TClassEdit.h