Struct IDeclarationEntity#

Inheritance Relationships#

Derived Type#

Struct Documentation#

struct IDeclarationEntity#

Declaration entity information interface.

Subclassed by CDeclarationEntity

Public Functions

virtual IInterfaceAccess *GetDeclarationType() const = 0#

Get declaration type.

Returns:

Interface to the declaration type object.

virtual bool IsReadOnly() const = 0#

Is the entity readonly?

Returns:

Returns ‘true’ when the declaration is defined as readonly declaration; otherwise returns ‘false’.

virtual bool IsAnonymous() const = 0#

Is the entity anonymous when used in a struct/union (unnamed and not declared)?

Returns whether the entity is anonymous when used in a struct/union. This allows its members to appear directly as members within the struct.

Returns:

Returns ‘true’ when the declaration is defined as anonymous declaration; otherwise returns ‘false’.

virtual bool HasArray() const = 0#

Has array?

Returns:

Returns ‘true’ when the declaration is part of an array; otherwise returns ‘false’.

virtual sdv::sequence<SArrayDimension> GetArrayDimensions() const = 0#

Get the array dimensions (if there are any).

Returns:

Smart pointer to the sequence of array dimensions.

virtual bool HasAssignment() const = 0#

Has assignment?

Returns:

Returns ‘true’ when the declaration is followed by an assignment; otherwise returns ‘false’.

virtual sdv::u8string GetAssignment() const = 0#

Get assignment string.

The assignment can be an algebraic expression composed from constants and variables. If the assignment is an array, the expression is composed like this: {{expr1},{expr2},{expr…}}

Returns:

Returns the assignment string when available.

IInterfaceAccess GetDeclarationType() const

Get declaration type.

Returns:

Interface to the declaration type object.

boolean IsReadOnly() const

Is the entity readonly?

Returns:

Returns ‘true’ when the declaration is defined as readonly declaration; otherwise returns ‘false’.

boolean IsAnonymous() const

Is the entity anonymous when used in a struct/union (unnamed and not declared)?

Returns whether the entity is anonymous when used in a struct/union. This allows its members to appear directly as members within the struct.

Returns:

Returns ‘true’ when the declaration is defined as anonymous declaration; otherwise returns ‘false’.

boolean HasArray() const

Has array?

Returns:

Returns ‘true’ when the declaration is part of an array; otherwise returns ‘false’.

sequence<SArrayDimension> GetArrayDimensions() const

Get the array dimensions (if there are any).

Returns:

Smart pointer to the sequence of array dimensions.

boolean HasAssignment() const

Has assignment?

Returns:

Returns ‘true’ when the declaration is followed by an assignment; otherwise returns ‘false’.

u8string GetAssignment() const

Get assignment string.

The assignment can be an algebraic expression composed from constants and variables. If the assignment is an array, the expression is composed like this: {{expr1},{expr2},{expr…}}

Returns:

Returns the assignment string when available.

Public Static Attributes

static ::sdv::interface_id _id = 0xE0135FBD85B21E86#

Interface ID.