Poco::CppParser

class Variable

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, 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

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.

isPointer inline

bool isPointer() const;

Returns true if and only if the variable holds a pointer.

kind

Symbol::Kind kind() const;

Securely control IoT edge devices from anywhere   Connect a Device