Poco::CppParser

class Variable

File Information

Library: CppParser
Package: SymbolTable
Header: Poco/CppParser/Variable.h

Description

This class represents (member) variable declaration.

Inheritance

Direct Base Classes: Decl

All Base Classes: Decl, Symbol

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 virtual

~Variable();

Destroys the Variable.

Member Functions

declType inline

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 inline

int flags() const;

Returns the variable's flags.

isConst inline

bool isConst() const;

Returns true iff the variable is const.

isPointer inline

bool isPointer() const;

Returns true iff the variable holds a pointer.

isStatic inline

bool isStatic() const;

Returns true iff the variable is static.

kind

Symbol::Kind kind() const;