CppParser
Loading...
Searching...
No Matches
cppcompound-info-accessor.h File Reference
#include "cppast.h"
#include "cppconst.h"
#include "cpputil.h"
#include "cppobj-info-accessor.h"
#include <functional>
Include dependency graph for cppcompound-info-accessor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool forEachMember (CppCompoundEPtr compound, std::function< bool(CppObj *)> visitor)
 
bool forEachMember (CppCompoundEPtr compound, CppAccessType memAccessType, std::function< bool(CppObj *)> visitor)
 
bool isNamespace (CppCompoundEPtr compound)
 
bool isClass (CppCompoundEPtr compound)
 
bool isStruct (CppCompoundEPtr compound)
 
bool isUnion (CppCompoundEPtr compound)
 
bool isCppFile (CppCompoundEPtr compound)
 
bool isBlock (CppCompoundEPtr compound)
 
std::string fullName (CppCompoundEPtr compound)
 
bool traverse (CppCompoundEPtr compound, std::function< bool(CppObj *)> visitor)
 
bool traversePreorder (CppCompoundEPtr compound, std::function< bool(CppObj *)> visitor)
 

Function Documentation

◆ forEachMember() [1/2]

bool forEachMember ( CppCompoundEPtr  compound,
CppAccessType  memAccessType,
std::function< bool(CppObj *)>  visitor 
)
inline

Definition at line 45 of file cppcompound-info-accessor.h.

Here is the call graph for this function:

◆ forEachMember() [2/2]

bool forEachMember ( CppCompoundEPtr  compound,
std::function< bool(CppObj *)>  visitor 
)
inline

Definition at line 34 of file cppcompound-info-accessor.h.

Here is the caller graph for this function:

◆ fullName()

std::string fullName ( CppCompoundEPtr  compound)
inline
Returns
full name of compound type.

Definition at line 84 of file cppcompound-info-accessor.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isBlock()

bool isBlock ( CppCompoundEPtr  compound)
inline

Definition at line 78 of file cppcompound-info-accessor.h.

◆ isClass()

bool isClass ( CppCompoundEPtr  compound)
inline

Definition at line 62 of file cppcompound-info-accessor.h.

◆ isCppFile()

bool isCppFile ( CppCompoundEPtr  compound)
inline

Definition at line 74 of file cppcompound-info-accessor.h.

Here is the caller graph for this function:

◆ isNamespace()

bool isNamespace ( CppCompoundEPtr  compound)
inline

Definition at line 58 of file cppcompound-info-accessor.h.

◆ isStruct()

bool isStruct ( CppCompoundEPtr  compound)
inline

Definition at line 66 of file cppcompound-info-accessor.h.

◆ isUnion()

bool isUnion ( CppCompoundEPtr  compound)
inline

Definition at line 70 of file cppcompound-info-accessor.h.

◆ traverse()

bool traverse ( CppCompoundEPtr  compound,
std::function< bool(CppObj *)>  visitor 
)
inline

Definition at line 94 of file cppcompound-info-accessor.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ traversePreorder()

bool traversePreorder ( CppCompoundEPtr  compound,
std::function< bool(CppObj *)>  visitor 
)
inline

Definition at line 108 of file cppcompound-info-accessor.h.

Here is the call graph for this function: