Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TClingDeclInfo.h
Go to the documentation of this file.
1/// \file TClingDeclInfo.h
2///
3/// \brief The file contains a base class of TCling*Info classes.
4///
5/// \author Vassil Vassilev <vvasilev@cern.ch>
6///
7/// \date March, 2019
8///
9/*************************************************************************
10 * Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. *
11 * All rights reserved. *
12 * *
13 * For the licensing terms see $ROOTSYS/LICENSE. *
14 * For the list of contributors see $ROOTSYS/README/CREDITS. *
15 *************************************************************************/
16
17#ifndef ROOT_TClingDeclInfo
18#define ROOT_TClingDeclInfo
19
20#include <clang/AST/Type.h>
21
22#include <string>
23
24namespace clang {
25 class Decl;
26}
27
29protected:
30 const clang::Decl* fDecl = nullptr;
31 mutable std::string fNameCache;
32 long Property(long property, clang::QualType &qt) const;
33public:
34 TClingDeclInfo() = default;
35 TClingDeclInfo(const clang::Decl* D) : fDecl(D) {}
36 virtual ~TClingDeclInfo();
37
38 virtual const clang::Decl* GetDecl() const { return fDecl; }
39 clang::Decl* GetDecl() {
40 return const_cast<clang::Decl*>(const_cast<const TClingDeclInfo*>(this)->GetDecl());
41 }
42 virtual bool IsValid() const { return GetDecl(); }
43 virtual const char* Name() const;
44};
45
46#endif // ROOT_TClingDeclInfo
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t property
clang::Decl * GetDecl()
const clang::Decl * fDecl
virtual ~TClingDeclInfo()
TClingDeclInfo(const clang::Decl *D)
virtual const char * Name() const
virtual bool IsValid() const
long Property(long property, clang::QualType &qt) const
std::string fNameCache
TClingDeclInfo()=default
virtual const clang::Decl * GetDecl() const