File Information
Library: CppParser
Package: SymbolTable
Header: Poco/CppParser/Variable.h
Description
This class represents (member) variable declaration.
Inheritance
Direct Base Classes: Decl
Member Summary
Member Functions: declType, flags, isConst, isPointer, isStatic, kind
Inherited Functions: addDocumentation, attrs, declaration, extractName, fullName, getAccess, getAttributeList, getAttributes, getDocumentation, getFile, getLibrary, getLineNumber, getOrder, getPackage, hasAttr, id, isIdent, isPrivate, isProtected, isPublic, kind, name, nameSpace, setAccess, setAttributeList, setAttributes, setDocumentation, setFile, setLibrary, setLineNumber, setOrder, setPackage, toString
Enumerations
Flags
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.
Constructors
Variable
Variable(
const std::string & decl,
NameSpace * pNameSpace
);
Creates the Variable.
Destructor
~Variable
~Variable();
Destroys the Variable.
Member Functions
declType
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
flags
int flags() const;
Returns the variable's flags.
isConst
bool isConst() const;
Returns true iff the variable is const.
isPointer
bool isPointer() const;
Returns true iff the variable holds a pointer.
isStatic
bool isStatic() const;
Returns true iff the variable is static.
kind
Symbol::Kind kind() const;