Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TClassEdit::TSplitType Struct Reference

Definition at line 138 of file TClassEdit.h.

Public Member Functions

 TSplitType (const char *type2split, EModType mode=TClassEdit::kNone)
 default constructor
 
ROOT::ESTLType IsInSTL () const
 type : type name: vector<list<classA,allocator>,allocator>[::iterator] result: 0 : not stl container and not declared inside an stl container.
 
int IsSTLCont (int testAlloc=0) const
 type : type name: vector<list<classA,allocator>,allocator> testAlloc: if true, we test allocator, if it is not default result is negative result: 0 : not stl container abs(result): code of container 1=vector,2=list,3=deque,4=map 5=multimap,6=set,7=multiset positive val: we have a vector or list with default allocator to any depth like vector<list<vector<int>>> negative val: STL container other than vector or list, or non default allocator For example: vector<deque<int>> has answer -1
 
bool IsTemplate ()
 Check if the type is a template.
 
void ShortType (std::string &answer, int mode)
 Return the absolute type of typeDesc into the string answ.
 

Public Attributes

std::vector< std::string > fElements
 
const char * fName
 
int fNestedLocation
 

Private Member Functions

 TSplitType (const TSplitType &)=delete
 
TSplitTypeoperator= (const TSplitType &)=delete
 

#include <TClassEdit.h>

Constructor & Destructor Documentation

◆ TSplitType() [1/2]

TClassEdit::TSplitType::TSplitType ( const char *  type2split,
EModType  mode = TClassEdit::kNone 
)

default constructor

Definition at line 180 of file TClassEdit.cxx.

◆ TSplitType() [2/2]

TClassEdit::TSplitType::TSplitType ( const TSplitType )
privatedelete

Member Function Documentation

◆ IsInSTL()

ROOT::ESTLType TClassEdit::TSplitType::IsInSTL ( ) const

type : type name: vector<list<classA,allocator>,allocator>[::iterator] result: 0 : not stl container and not declared inside an stl container.

result: code of container that the type or is the scope of the type

Definition at line 190 of file TClassEdit.cxx.

◆ IsSTLCont()

int TClassEdit::TSplitType::IsSTLCont ( int  testAlloc = 0) const

type : type name: vector<list<classA,allocator>,allocator> testAlloc: if true, we test allocator, if it is not default result is negative result: 0 : not stl container abs(result): code of container 1=vector,2=list,3=deque,4=map 5=multimap,6=set,7=multiset positive val: we have a vector or list with default allocator to any depth like vector<list<vector<int>>> negative val: STL container other than vector or list, or non default allocator For example: vector<deque<int>> has answer -1

Definition at line 207 of file TClassEdit.cxx.

◆ IsTemplate()

bool TClassEdit::TSplitType::IsTemplate ( )

Check if the type is a template.

Definition at line 520 of file TClassEdit.cxx.

◆ operator=()

TSplitType & TClassEdit::TSplitType::operator= ( const TSplitType )
privatedelete

◆ ShortType()

void TClassEdit::TSplitType::ShortType ( std::string &  answer,
int  mode 
)

Return the absolute type of typeDesc into the string answ.

Definition at line 251 of file TClassEdit.cxx.

Member Data Documentation

◆ fElements

std::vector<std::string> TClassEdit::TSplitType::fElements

Definition at line 141 of file TClassEdit.h.

◆ fName

const char* TClassEdit::TSplitType::fName

Definition at line 140 of file TClassEdit.h.

◆ fNestedLocation

int TClassEdit::TSplitType::fNestedLocation

Definition at line 142 of file TClassEdit.h.

Collaboration diagram for TClassEdit::TSplitType:
[legend]

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