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

#include <cppast.h>

Inheritance diagram for CppTryBlock:
Inheritance graph
Collaboration diagram for CppTryBlock:
Collaboration graph

Public Member Functions

 CppTryBlock (CppCompound *tryStmt, CppCatchBlock *firstCatchBlock)
 
void addCatchBlock (CppCatchBlock *catchBlock)
 
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

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

Static Public Attributes

static constexpr CppObjType kObjectType = CppObjType::kTryBlock
 

Private Attributes

CppCatchBlocks catchBlocks_
 

Detailed Description

Definition at line 2104 of file cppast.h.

Constructor & Destructor Documentation

◆ CppTryBlock()

CppTryBlock::CppTryBlock ( CppCompound tryStmt,
CppCatchBlock firstCatchBlock 
)
inline

Definition at line 2109 of file cppast.h.

Member Function Documentation

◆ accept()

void CppTryBlock::accept ( CppVisitorBase v)
inlineoverridevirtual

Implements CppObj.

Definition at line 2121 of file cppast.h.

Here is the call graph for this function:

◆ addCatchBlock()

void CppTryBlock::addCatchBlock ( CppCatchBlock catchBlock)
inline

Definition at line 2116 of file cppast.h.

Member Data Documentation

◆ catchBlocks_

CppCatchBlocks CppTryBlock::catchBlocks_
private

Definition at line 2137 of file cppast.h.

◆ kObjectType

constexpr CppObjType CppTryBlock::kObjectType = CppObjType::kTryBlock
staticconstexpr

Definition at line 2106 of file cppast.h.

◆ tryStmt_

CppCompoundPtr CppTryBlock::tryStmt_

Definition at line 2107 of file cppast.h.


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