IExpression Interface

Represents an evaluated expression in a structured way exactly as displayed by Visual Studio in the Watch window.

Definition

Namespace: VisualGDBExpressions
Assembly: VisualGDBExpressions (in VisualGDBExpressions.dll) Version: 5.6.109.1 (5.6.109.4849)
C#
public interface IExpression

Properties

AccessType Specifies the private/protected/public modifier of the expression. This affects the icon displayed by Visual Studio.
Children Returns an object providing various information about the children of the expression (e.g. fields of a C++ object).
DataOrCode Specifies whether the expression represents an executable function or a data object. This affects the color of the icon used by Visual Studio.
FullNameForEvaluator Specifies the internal GDB expression name (returned by -var-info-path-expression) that can be specified to reevaluate a derived expression with IExpressionEvaluator.EvaluateExpression. The expression filters should use it when querying derived expression values.
HasRawStringValue If true, the expression has a corresponding "raw value". Visual Studio will show the magnifying glass icon near the expression value allowing the user to view the value.
IsArray Specifies whether the expression represents an array. VisualGDB uses it to derive full name correctly.
IsCharacterArray Specifies whether the expression represents a pointer to a null-terminated string. VisualGDB uses it to display the string value correctly.
IsPointer Specifies whether the expression represents a pointer. VisualGDB uses it to derive full name correctly.
ShortName Specifies the short name displayed in the 'Name' column of the Watch window.
Size Specifies the size in bytes of the object represented by the expression.
Type Specifies the type displayed in the 'Type' column of the Watch window.
Value Specifies the value of the object.

Methods

GetRawStringValue Returns the long string value displayed when the user clicks at the magnifying glass icon on the expression.
TryGetFullName Returns the C++ expression that can be used to re-evaluate the expression (e.g. when it is dragged to the Memory window). If null, VisualGDB will construct it automatically based on the parent expression and the IsArray/IsPointer properties.
TrySetValue Tries to modify the value of the expression.

See Also