CppParser
Loading...
Searching...
No Matches
CppDefine Struct Reference

#include <cppast.h>

Inheritance diagram for CppDefine:
Inheritance graph
Collaboration diagram for CppDefine:
Collaboration graph

Public Types

enum  DefType {
  kRename , kConstNumDef , kConstStrDef , kConstCharDef ,
  kComplexMacro
}
 

Public Member Functions

 CppDefine (DefType defType, std::string name, std::string defn=std::string())
 
void accept (CppVisitorBase *v) override
 
- Public Member Functions inherited from CppObj
 CppObj (CppObjType type, CppAccessType accessType)
 
CppCompoundowner ()
 
void owner (CppCompound *o)
 
virtual void accept (CppVisitorBase *v)=0
 
virtual ~CppObj ()
 

Public Attributes

DefType defType_
 
std::string name_
 
std::string defn_
 This will contain everything after name. More...
 
- Public Attributes inherited from CppObj
CppObjType objType_
 
CppAccessType accessType_
 All objects do not need this. More...
 

Static Public Attributes

static constexpr CppObjType kObjectType = CppObjType::kHashDefine
 

Detailed Description

Definition at line 180 of file cppast.h.

Member Enumeration Documentation

◆ DefType

Enumerator
kRename 
kConstNumDef 
kConstStrDef 
kConstCharDef 
kComplexMacro 

Definition at line 184 of file cppast.h.

Constructor & Destructor Documentation

◆ CppDefine()

CppDefine::CppDefine ( DefType  defType,
std::string  name,
std::string  defn = std::string() 
)
inline

Definition at line 196 of file cppast.h.

Member Function Documentation

◆ accept()

void CppDefine::accept ( CppVisitorBase v)
inlineoverridevirtual

Implements CppObj.

Definition at line 204 of file cppast.h.

Here is the call graph for this function:

Member Data Documentation

◆ defn_

std::string CppDefine::defn_

This will contain everything after name.

Definition at line 194 of file cppast.h.

◆ defType_

DefType CppDefine::defType_

Definition at line 192 of file cppast.h.

◆ kObjectType

constexpr CppObjType CppDefine::kObjectType = CppObjType::kHashDefine
staticconstexpr

Definition at line 182 of file cppast.h.

◆ name_

std::string CppDefine::name_

Definition at line 193 of file cppast.h.


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