Library: CppParser
Package: SymbolTable
Header: Poco/CppParser/Variable.h
This class represents (member) variable declaration.
Direct Base Classes: Decl
All Base Classes: Decl, Symbol
Member Functions: declType, flags, isPointer, kind
Inherited Functions: addDocumentation, attrs, declaration, extractName, fullName, getAccess, getAttributes, getDocumentation, getFile, getLibrary, getLineNumber, getPackage, hasAttr, id, isIdent, isPrivate, isProtected, isPublic, kind, name, nameSpace, setAccess, setAttributes, setDocumentation, setFile, setLibrary, setLineNumber, setPackage, toString
VAR_STATIC = 1
The variable is static.
VAR_MUTABLE = 2
The variable is mutable.
VAR_VOLATILE = 4
The variable is volatile.
VAR_CONST = 8
The variable is const.
Variable(
const std::string & decl,
NameSpace * pNameSpace
);
Creates the Variable.
~Variable();
Destroys the Variable.
const std::string & declType() const;
Returns the type of the parameter without const and & if present.
Example: a type const std::string& -> std::string, a type const std::string* returns std::string
int flags() const;
Returns the variable's flags.
bool isPointer() const;
Returns true if and only if the variable holds a pointer.
Symbol::Kind kind() const;