CppParser
Loading...
Searching...
No Matches
CppCommonBlock< _ObjType > Struct Template Reference

Some blocks have common structure like if, while, and do-while. More...

#include <cppast.h>

Inheritance diagram for CppCommonBlock< _ObjType >:
Inheritance graph
Collaboration diagram for CppCommonBlock< _ObjType >:
Collaboration graph

Public Member Functions

 CppCommonBlock (CppObj *cond, CppObj *body)
 
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

CppObjPtr cond_
 
CppObjPtr body_
 
- Public Attributes inherited from CppObj
CppObjType objType_
 
CppAccessType accessType_
 All objects do not need this. More...
 

Static Public Attributes

static constexpr CppObjType kObjectType = _ObjType
 

Detailed Description

template<CppObjType _ObjType>
struct CppCommonBlock< _ObjType >

Some blocks have common structure like if, while, and do-while.

They all contain a body and an expression of condition.

Definition at line 1922 of file cppast.h.

Constructor & Destructor Documentation

◆ CppCommonBlock()

template<CppObjType _ObjType>
CppCommonBlock< _ObjType >::CppCommonBlock ( CppObj cond,
CppObj body 
)
inline

Definition at line 1926 of file cppast.h.

Member Function Documentation

◆ accept()

template<CppObjType _ObjType>
void CppCommonBlock< _ObjType >::accept ( CppVisitorBase v)
inlineoverridevirtual

Implements CppObj.

Definition at line 1936 of file cppast.h.

Here is the call graph for this function:

Member Data Documentation

◆ body_

template<CppObjType _ObjType>
CppObjPtr CppCommonBlock< _ObjType >::body_

Definition at line 1934 of file cppast.h.

◆ cond_

template<CppObjType _ObjType>
CppObjPtr CppCommonBlock< _ObjType >::cond_

Definition at line 1933 of file cppast.h.

◆ kObjectType

template<CppObjType _ObjType>
constexpr CppObjType CppCommonBlock< _ObjType >::kObjectType = _ObjType
staticconstexpr

Definition at line 1924 of file cppast.h.


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