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

#include <cppast.h>

Inheritance diagram for CppVarDecl:
Inheritance graph
Collaboration diagram for CppVarDecl:
Collaboration graph

Public Member Functions

 CppVarDecl (std::string name)
 
 CppVarDecl (std::string name, CppExpr *assign, AssignType assignType=AssignType::kNone)
 
std::string & name ()
 
void name (std::string _name)
 
CppExprassignValue ()
 
AssignType assignType ()
 
void assign (CppExpr *assignVal, AssignType assignType)
 
CppExprbitField ()
 
void bitField (CppExpr *_bitField)
 
CppArraySizesarraySizes ()
 
void addArraySize (CppExpr *arraySize)
 

Private Attributes

std::string name_
 
CppExprPtr assignValue_
 
AssignType assignType_ {AssignType::kNone}
 
CppExprPtr bitField_
 
CppArraySizes arraySizes_
 

Detailed Description

Definition at line 494 of file cppast.h.

Constructor & Destructor Documentation

◆ CppVarDecl() [1/2]

CppVarDecl::CppVarDecl ( std::string  name)
inline

Definition at line 496 of file cppast.h.

◆ CppVarDecl() [2/2]

CppVarDecl::CppVarDecl ( std::string  name,
CppExpr assign,
AssignType  assignType = AssignType::kNone 
)
inline

Definition at line 2205 of file cppast.h.

Member Function Documentation

◆ addArraySize()

void CppVarDecl::addArraySize ( CppExpr arraySize)
inline

Definition at line 540 of file cppast.h.

Here is the caller graph for this function:

◆ arraySizes()

CppArraySizes & CppVarDecl::arraySizes ( )
inline

Definition at line 536 of file cppast.h.

Here is the caller graph for this function:

◆ assign()

void CppVarDecl::assign ( CppExpr assignVal,
AssignType  assignType 
)
inline

Definition at line 520 of file cppast.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ assignType()

AssignType CppVarDecl::assignType ( )
inline

Definition at line 516 of file cppast.h.

Here is the caller graph for this function:

◆ assignValue()

CppExpr * CppVarDecl::assignValue ( )
inline

Definition at line 512 of file cppast.h.

Here is the caller graph for this function:

◆ bitField() [1/2]

CppExpr * CppVarDecl::bitField ( )
inline

Definition at line 527 of file cppast.h.

Here is the caller graph for this function:

◆ bitField() [2/2]

void CppVarDecl::bitField ( CppExpr _bitField)
inline

Definition at line 531 of file cppast.h.

◆ name() [1/2]

std::string & CppVarDecl::name ( )
inline

Definition at line 503 of file cppast.h.

Here is the caller graph for this function:

◆ name() [2/2]

void CppVarDecl::name ( std::string  _name)
inline

Definition at line 507 of file cppast.h.

Member Data Documentation

◆ arraySizes_

CppArraySizes CppVarDecl::arraySizes_
private

Definition at line 550 of file cppast.h.

◆ assignType_

AssignType CppVarDecl::assignType_ {AssignType::kNone}
private

Definition at line 548 of file cppast.h.

◆ assignValue_

CppExprPtr CppVarDecl::assignValue_
private

Definition at line 547 of file cppast.h.

◆ bitField_

CppExprPtr CppVarDecl::bitField_
private

Definition at line 549 of file cppast.h.

◆ name_

std::string CppVarDecl::name_
private

Definition at line 546 of file cppast.h.


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