Class CPPAstInterface#

Inheritance Relationships#

Base Type#

Class Documentation#

class CPPAstInterface : public AstInterface#

Public Functions

inline CPPAstInterface(AstInterfaceImpl *_impl)#
inline CPPAstInterface(AstInterface &fa)#
bool IsMemberAccess(const AstNodePtr &n, AstNodePtr *obj = 0, std::string *fieldname = 0)#

Check if $n$ is a data member access operator; If yes, grab the object and the field name.

bool IsMemberFunctionCall(const AstNodePtr &n, AstNodePtr *obj = 0, std::string *funcname = 0, AstNodePtr *access = 0, AstInterface::AstNodeList *args = 0)#
AstNodePtr CreateFieldRef(std::string classname, std::string fieldname)#
AstNodePtr CreateMethodRef(std::string classname, std::string methodname, bool addIfNotFound)#
AstNodePtr CreateFunctionCall(const AstNodePtr &func, const AstInterface::AstNodeList &args)#
bool IsPointerVariable(const AstNodePtr &n)#

Check whether $n$ is a pointer or reference variable reference.

AstNodePtr GetVarScope(const AstNodePtr &n)#
bool IsPlusPlus(const AstNodePtr &s, AstNodePtr *opd = 0)#