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

#include <cppast.h>

Inheritance diagram for CppConstructor:
Inheritance graph
Collaboration diagram for CppConstructor:
Collaboration graph

Public Member Functions

 CppConstructor (CppAccessType accessType, std::string name, CppParamVector *params, CppMemInits memInitList, std::uint32_t attr)
 
 ~CppConstructor () override
 
bool isCopyConstructor ()
 
bool isMoveConstructor ()
 
void accept (CppVisitorBase *v) override
 
- Public Member Functions inherited from CppFuncCtorBase
bool hasParams ()
 
CppParamVectorparams ()
 
- Public Member Functions inherited from CppFunctionBase
std::uint32_t attr ()
 
void addAttr (std::uint32_t _attr)
 
bool hasAttr (std::uint32_t _attr)
 
std::string & decor1 ()
 
void decor1 (std::string _decor)
 
std::string & decor2 ()
 
void decor2 (std::string _decor)
 
CppTemplateParamListtemplateParamList ()
 
void templateParamList (CppTemplateParamList *templParamList)
 
- Public Member Functions inherited from CppFuncLikeBase
CppFuncThrowSpecthrowSpec ()
 
void throwSpec (CppFuncThrowSpec *_throwSpec)
 
CppCompounddefn ()
 
void defn (CppCompound *_defn)
 
- 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

CppMemInits memInits_
 
- Public Attributes inherited from CppFunctionBase
std::string name_
 
- Public Attributes inherited from CppObj
CppObjType objType_
 
CppAccessType accessType_
 All objects do not need this. More...
 

Static Public Attributes

static constexpr CppObjType kObjectType = CppObjType::kConstructor
 

Private Attributes

TriStateBool isCopyConstructor_ = TriStateBool::Unknown
 
TriStateBool isMoveConstructor_ = TriStateBool::Unknown
 

Additional Inherited Members

- Protected Member Functions inherited from CppFuncCtorBase
 CppFuncCtorBase (CppObjType type, CppAccessType accessType, std::string name, CppParamVector *params, std::uint32_t attr)
 
- Protected Member Functions inherited from CppFunctionBase
 CppFunctionBase (CppObjType type, CppAccessType accessType, std::string name, std::uint32_t attr)
 
- Protected Member Functions inherited from CppFuncLikeBase
 CppFuncLikeBase (CppObjType type, CppAccessType accessType)
 
- Protected Attributes inherited from CppFuncCtorBase
CppParamVectorPtr params_
 

Detailed Description

Definition at line 1462 of file cppast.h.

Constructor & Destructor Documentation

◆ CppConstructor()

CppConstructor::CppConstructor ( CppAccessType  accessType,
std::string  name,
CppParamVector params,
CppMemInits  memInitList,
std::uint32_t  attr 
)
inline

Definition at line 1468 of file cppast.h.

◆ ~CppConstructor()

CppConstructor::~CppConstructor ( )
inlineoverride

Definition at line 1478 of file cppast.h.

Member Function Documentation

◆ accept()

void CppConstructor::accept ( CppVisitorBase v)
inlineoverridevirtual

Implements CppObj.

Definition at line 1489 of file cppast.h.

Here is the call graph for this function:

◆ isCopyConstructor()

bool CppConstructor::isCopyConstructor ( )

Definition at line 32 of file cppast.cpp.

Here is the call graph for this function:

◆ isMoveConstructor()

bool CppConstructor::isMoveConstructor ( )

Definition at line 66 of file cppast.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ isCopyConstructor_

TriStateBool CppConstructor::isCopyConstructor_ = TriStateBool::Unknown
mutableprivate

Definition at line 1502 of file cppast.h.

◆ isMoveConstructor_

TriStateBool CppConstructor::isMoveConstructor_ = TriStateBool::Unknown
mutableprivate

Definition at line 1503 of file cppast.h.

◆ kObjectType

constexpr CppObjType CppConstructor::kObjectType = CppObjType::kConstructor
staticconstexpr

Definition at line 1464 of file cppast.h.

◆ memInits_

CppMemInits CppConstructor::memInits_

Definition at line 1466 of file cppast.h.


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