Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Detail::TStatusBitsChecker::Registry Class Reference

Definition at line 30 of file TStatusBitsChecker.h.

Classes

struct  Info
 

Public Member Functions

 Registry ()
 Default constructor. Implemented in source file to allow hiding of the Info struct.
 
 ~Registry ()
 Default destructor. Implemented in source file to allow hiding of the Info struct.
 
bool Check (TClass &classRef, bool verbose=false)
 Return false and print error messages if there is any unexpected duplicates BIT constant in the class hierarchy or any of the bits already registered.
 
void RegisterBits (TClass &classRef)
 Add to fRegister the Info about the bits in this class and its base classes.
 

Protected Attributes

std::map< UChar_t, std::list< Info > > fRegister
 ! Register of bits seen so far.
 

#include <TStatusBitsChecker.h>

Constructor & Destructor Documentation

◆ Registry()

ROOT::Detail::TStatusBitsChecker::Registry::Registry ( )
default

Default constructor. Implemented in source file to allow hiding of the Info struct.

◆ ~Registry()

ROOT::Detail::TStatusBitsChecker::Registry::~Registry ( )
default

Default destructor. Implemented in source file to allow hiding of the Info struct.

Member Function Documentation

◆ Check()

bool ROOT::Detail::TStatusBitsChecker::Registry::Check ( TClass classRef,
bool  verbose = false 
)

Return false and print error messages if there is any unexpected duplicates BIT constant in the class hierarchy or any of the bits already registered.

If verbose is true, also print all the bit declare in this class and all its bases.

Definition at line 182 of file TStatusBitsChecker.cxx.

◆ RegisterBits()

void ROOT::Detail::TStatusBitsChecker::Registry::RegisterBits ( TClass classRef)

Add to fRegister the Info about the bits in this class and its base classes.

Definition at line 136 of file TStatusBitsChecker.cxx.

Member Data Documentation

◆ fRegister

std::map<UChar_t, std::list<Info> > ROOT::Detail::TStatusBitsChecker::Registry::fRegister
protected

! Register of bits seen so far.

Definition at line 34 of file TStatusBitsChecker.h.

  • core/meta/inc/TStatusBitsChecker.h
  • core/meta/src/TStatusBitsChecker.cxx