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

#include <cppast.h>

Inheritance diagram for CppVarType:
Inheritance graph
Collaboration diagram for CppVarType:
Collaboration graph

Public Member Functions

 CppVarType (std::string baseType, CppTypeModifier modifier=CppTypeModifier())
 
 CppVarType (CppAccessType accessType, std::string baseType, CppTypeModifier modifier)
 
 CppVarType (CppAccessType accessType, CppCompound *compound, CppTypeModifier modifier)
 
 CppVarType (CppAccessType accessType, CppFunctionPointer *fptr, CppTypeModifier modifier)
 
 CppVarType (CppAccessType accessType, CppEnum *enumObj, CppTypeModifier modifier)
 
 CppVarType (CppVarType &varType)
 
std::string & baseType ()
 
void baseType (std::string _baseType)
 
CppObjcompound ()
 
std::uint32_t typeAttr ()
 
void typeAttr (std::uint32_t attr)
 
void addAttr (std::uint32_t attr)
 
CppTypeModifiertypeModifier ()
 
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 Member Functions inherited from AttribSpecified
AttribSpecifierSequenceattribSpecifierSequence ()
 
void attribSpecifierSequence (AttribSpecifierArray *attribSpecifierArray)
 

Public Attributes

bool paramPack_ {false}
 
- Public Attributes inherited from CppObj
CppObjType objType_
 
CppAccessType accessType_
 All objects do not need this. More...
 

Static Public Attributes

static constexpr CppObjType kObjectType = CppObjType::kVarType
 

Private Member Functions

 CppVarType (CppAccessType accessType, std::string baseType, std::uint32_t typeAttr, CppTypeModifier modifier)
 

Private Attributes

std::string baseType_
 
CppObjPtr compound_
 
CppTypeModifier typeModifier_
 
std::uint32_t typeAttr_ {0}
 

Detailed Description

Definition at line 422 of file cppast.h.

Constructor & Destructor Documentation

◆ CppVarType() [1/7]

CppVarType::CppVarType ( std::string  baseType,
CppTypeModifier  modifier = CppTypeModifier() 
)
inline

Definition at line 2212 of file cppast.h.

◆ CppVarType() [2/7]

CppVarType::CppVarType ( CppAccessType  accessType,
std::string  baseType,
CppTypeModifier  modifier 
)
inline

Definition at line 2217 of file cppast.h.

◆ CppVarType() [3/7]

CppVarType::CppVarType ( CppAccessType  accessType,
CppCompound compound,
CppTypeModifier  modifier 
)
inline

Definition at line 2222 of file cppast.h.

◆ CppVarType() [4/7]

CppVarType::CppVarType ( CppAccessType  accessType,
CppFunctionPointer fptr,
CppTypeModifier  modifier 
)
inline

Definition at line 2229 of file cppast.h.

◆ CppVarType() [5/7]

CppVarType::CppVarType ( CppAccessType  accessType,
CppEnum enumObj,
CppTypeModifier  modifier 
)
inline

Definition at line 2236 of file cppast.h.

◆ CppVarType() [6/7]

CppVarType::CppVarType ( CppVarType varType)
inline

Definition at line 2243 of file cppast.h.

◆ CppVarType() [7/7]

CppVarType::CppVarType ( CppAccessType  accessType,
std::string  baseType,
std::uint32_t  typeAttr,
CppTypeModifier  modifier 
)
inlineprivate

Definition at line 476 of file cppast.h.

Member Function Documentation

◆ accept()

void CppVarType::accept ( CppVisitorBase v)
inlineoverridevirtual

Implements CppObj.

Definition at line 468 of file cppast.h.

Here is the call graph for this function:

◆ addAttr()

void CppVarType::addAttr ( std::uint32_t  attr)
inline

Definition at line 455 of file cppast.h.

◆ baseType() [1/2]

std::string & CppVarType::baseType ( )
inline

Definition at line 435 of file cppast.h.

Here is the caller graph for this function:

◆ baseType() [2/2]

void CppVarType::baseType ( std::string  _baseType)
inline

Definition at line 439 of file cppast.h.

◆ compound()

CppObj * CppVarType::compound ( )
inline

Definition at line 443 of file cppast.h.

Here is the caller graph for this function:

◆ typeAttr() [1/2]

std::uint32_t CppVarType::typeAttr ( )
inline

Definition at line 447 of file cppast.h.

Here is the caller graph for this function:

◆ typeAttr() [2/2]

void CppVarType::typeAttr ( std::uint32_t  attr)
inline

Definition at line 451 of file cppast.h.

◆ typeModifier()

CppTypeModifier & CppVarType::typeModifier ( )
inline

Definition at line 463 of file cppast.h.

Here is the caller graph for this function:

Member Data Documentation

◆ baseType_

std::string CppVarType::baseType_
private

Definition at line 485 of file cppast.h.

◆ compound_

CppObjPtr CppVarType::compound_
private

Definition at line 486 of file cppast.h.

◆ kObjectType

constexpr CppObjType CppVarType::kObjectType = CppObjType::kVarType
staticconstexpr

Definition at line 424 of file cppast.h.

◆ paramPack_

bool CppVarType::paramPack_ {false}

Definition at line 426 of file cppast.h.

◆ typeAttr_

std::uint32_t CppVarType::typeAttr_ {0}
private

Definition at line 488 of file cppast.h.

◆ typeModifier_

CppTypeModifier CppVarType::typeModifier_
private

Definition at line 487 of file cppast.h.


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