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

List of variables declared in a line without repeating its type, e.g. More...

#include <cppast.h>

Inheritance diagram for CppVarList:
Inheritance graph
Collaboration diagram for CppVarList:
Collaboration graph

Public Member Functions

 CppVarList (CppVar *firstVar, CppVarDeclInList varDecl)
 
void addVarDecl (CppVarDeclInList varDecl)
 
CppVarPtrfirstVar ()
 
CppVarDeclListvarDeclList ()
 
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

CppVarPtr firstVar_
 
- Public Attributes inherited from CppObj
CppObjType objType_
 
CppAccessType accessType_
 All objects do not need this. More...
 

Static Public Attributes

static constexpr CppObjType kObjectType = CppObjType::kVarList
 

Private Attributes

CppVarDeclList varDeclList_
 

Detailed Description

List of variables declared in a line without repeating its type, e.g.

int i, j; is a var-list.

Definition at line 698 of file cppast.h.

Constructor & Destructor Documentation

◆ CppVarList()

CppVarList::CppVarList ( CppVar firstVar,
CppVarDeclInList  varDecl 
)
inline

Definition at line 704 of file cppast.h.

Here is the call graph for this function:

Member Function Documentation

◆ accept()

void CppVarList::accept ( CppVisitorBase v)
inlineoverridevirtual

Implements CppObj.

Definition at line 723 of file cppast.h.

Here is the call graph for this function:

◆ addVarDecl()

void CppVarList::addVarDecl ( CppVarDeclInList  varDecl)
inline

Definition at line 710 of file cppast.h.

Here is the caller graph for this function:

◆ firstVar()

CppVarPtr & CppVarList::firstVar ( )
inline

Definition at line 714 of file cppast.h.

Here is the caller graph for this function:

◆ varDeclList()

CppVarDeclList & CppVarList::varDeclList ( )
inline

Definition at line 718 of file cppast.h.

Here is the caller graph for this function:

Member Data Documentation

◆ firstVar_

CppVarPtr CppVarList::firstVar_

Definition at line 702 of file cppast.h.

◆ kObjectType

constexpr CppObjType CppVarList::kObjectType = CppObjType::kVarList
staticconstexpr

Definition at line 700 of file cppast.h.

◆ varDeclList_

CppVarDeclList CppVarList::varDeclList_
private

Definition at line 732 of file cppast.h.


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