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

#include <cppast.h>

Inheritance diagram for CppIfBlock:
Inheritance graph
Collaboration diagram for CppIfBlock:
Collaboration graph

Public Member Functions

 CppIfBlock (CppObj *cond, CppObj *body, CppObj *_else=nullptr)
 
CppObjelsePart ()
 
void elsePart (CppObj *_elsePart)
 
void accept (CppVisitorBase *v) override
 
- Public Member Functions inherited from CppCommonBlock< CppObjType::kIfBlock >
 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 ()
 

Private Attributes

CppObjPtr else_
 

Additional Inherited Members

- Public Attributes inherited from CppCommonBlock< CppObjType::kIfBlock >
CppObjPtr cond_
 
CppObjPtr body_
 
- Public Attributes inherited from CppObj
CppObjType objType_
 
CppAccessType accessType_
 All objects do not need this. More...
 
- Static Public Attributes inherited from CppCommonBlock< CppObjType::kIfBlock >
static constexpr CppObjType kObjectType
 

Detailed Description

Definition at line 1946 of file cppast.h.

Constructor & Destructor Documentation

◆ CppIfBlock()

CppIfBlock::CppIfBlock ( CppObj cond,
CppObj body,
CppObj _else = nullptr 
)
inline

Definition at line 1948 of file cppast.h.

Member Function Documentation

◆ accept()

void CppIfBlock::accept ( CppVisitorBase v)
inlineoverridevirtual

Implements CppObj.

Definition at line 1962 of file cppast.h.

Here is the call graph for this function:

◆ elsePart() [1/2]

CppObj * CppIfBlock::elsePart ( )
inline

Definition at line 1953 of file cppast.h.

◆ elsePart() [2/2]

void CppIfBlock::elsePart ( CppObj _elsePart)
inline

Definition at line 1957 of file cppast.h.

Member Data Documentation

◆ else_

CppObjPtr CppIfBlock::else_
private

Definition at line 1974 of file cppast.h.


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