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

An individual expression. More...

#include <cppast.h>

Collaboration diagram for CppExprAtom:
Collaboration graph

Public Types

enum  {
  kInvalid , kAtom , kExpr , kLambda ,
  kVarType
}
 

Public Member Functions

bool isExpr ()
 
 CppExprAtom (char *sz, size_t l)
 
 CppExprAtom (char *sz)
 
 CppExprAtom (std::string tok)
 
 CppExprAtom (CppExpr *e)
 
 CppExprAtom (CppLambda *l)
 
 CppExprAtom (CppVarType *vType)
 
 CppExprAtom ()
 
void destroy ()
 It is expected to be called explicitly to destroy an CppExprAtom object. More...
 

Public Attributes

union {
   std::string *   atom
 
   CppExpr *   expr
 
   CppLambda *   lambda
 
   CppVarType *   varType
 For type cast, and sizeof expression. More...
 
}; 
 
enum CppExprAtom:: { ... }  type
 

Detailed Description

An individual expression.

Definition at line 1670 of file cppast.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kInvalid 
kAtom 
kExpr 
kLambda 
kVarType 

Definition at line 1680 of file cppast.h.

Constructor & Destructor Documentation

◆ CppExprAtom() [1/7]

CppExprAtom::CppExprAtom ( char *  sz,
size_t  l 
)
inline

Definition at line 1694 of file cppast.h.

◆ CppExprAtom() [2/7]

CppExprAtom::CppExprAtom ( char *  sz)
inline

Definition at line 1699 of file cppast.h.

◆ CppExprAtom() [3/7]

CppExprAtom::CppExprAtom ( std::string  tok)
inline

Definition at line 1704 of file cppast.h.

◆ CppExprAtom() [4/7]

CppExprAtom::CppExprAtom ( CppExpr e)
inline

Definition at line 1709 of file cppast.h.

◆ CppExprAtom() [5/7]

CppExprAtom::CppExprAtom ( CppLambda l)
inline

Definition at line 1714 of file cppast.h.

◆ CppExprAtom() [6/7]

CppExprAtom::CppExprAtom ( CppVarType vType)
inline

Definition at line 1719 of file cppast.h.

◆ CppExprAtom() [7/7]

CppExprAtom::CppExprAtom ( )
inline

Definition at line 1724 of file cppast.h.

Member Function Documentation

◆ destroy()

void CppExprAtom::destroy ( )
inline

It is expected to be called explicitly to destroy an CppExprAtom object.

Definition at line 2163 of file cppast.h.

Here is the caller graph for this function:

◆ isExpr()

bool CppExprAtom::isExpr ( )
inline

Definition at line 1689 of file cppast.h.

Member Data Documentation

◆ 

union { ... } CppExprAtom::@3

◆ atom

std::string* CppExprAtom::atom

Definition at line 1674 of file cppast.h.

◆ expr

CppExpr* CppExprAtom::expr

Definition at line 1675 of file cppast.h.

◆ lambda

CppLambda* CppExprAtom::lambda

Definition at line 1676 of file cppast.h.

◆ 

enum { ... } CppExprAtom::type

◆ varType

CppVarType* CppExprAtom::varType

For type cast, and sizeof expression.

Definition at line 1677 of file cppast.h.


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