LuciadCPillar C# 2023.1.04
Luciad.Expressions.ExpressionValue Class Reference

Value object to store the value of an Expression and its DataType. More...

Inheritance diagram for Luciad.Expressions.ExpressionValue:

Public Member Functions

 ExpressionValue (bool value)
 Constructs the value object for a boolean value. More...
 
 ExpressionValue (double value)
 Constructs the value object for a number value. More...
 
 ExpressionValue (float value)
 Constructs the value object for a number value. More...
 
 ExpressionValue (int value)
 Constructs the value object for an integer value. More...
 
 ExpressionValue (long value)
 Constructs the value object for a long integer (64 bit) value. More...
 
 ExpressionValue (Luciad.Expressions.ExpressionValue other)
 
 ExpressionValue (Luciad.Geometries.Geometry value)
 Constructs the value object for a Geometry value. More...
 
 ExpressionValue (string value)
 Constructs the value object for a text value. More...
 
double? AsDouble ()
 Returns the double value, if the value object can be converted to a double. More...
 
void Dispose ()
 
override bool Equals (object other)
 
override int GetHashCode ()
 

Properties

bool BoolValue [get]
 
Luciad.Datamodels.DataType DataType [get]
 
double DoubleValue [get]
 
float FloatValue [get]
 
Luciad.Geometries.Geometry GeometryValue [get]
 
int IntValue [get]
 
long LongValue [get]
 
string StringValue [get]
 

Detailed Description

Value object to store the value of an Expression and its DataType.

Users of this value object always must check the type of value stored and then call the appropriate method to retrieve the actual value.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::ExpressionValue.

Constructor & Destructor Documentation

◆ ExpressionValue() [1/8]

Luciad.Expressions.ExpressionValue.ExpressionValue ( float  value)
inline

Constructs the value object for a number value.

The type of the value is luciad::DataType::getFloatType().

value

the number.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::ExpressionValue::ExpressionValue.

◆ ExpressionValue() [2/8]

Luciad.Expressions.ExpressionValue.ExpressionValue ( double  value)
inline

Constructs the value object for a number value.

The type of the value is luciad::DataType::getDoubleType().

value

the number.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::ExpressionValue::ExpressionValue.

◆ ExpressionValue() [3/8]

Luciad.Expressions.ExpressionValue.ExpressionValue ( int  value)
inline

Constructs the value object for an integer value.

The type of the value is luciad::DataType::getIntType().

value

the number.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::ExpressionValue::ExpressionValue.

◆ ExpressionValue() [4/8]

Luciad.Expressions.ExpressionValue.ExpressionValue ( long  value)
inline

Constructs the value object for a long integer (64 bit) value.

The type of the value is luciad::DataType::getLongType().

value

the number.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::ExpressionValue::ExpressionValue.

◆ ExpressionValue() [5/8]

Luciad.Expressions.ExpressionValue.ExpressionValue ( bool  value)
inline

Constructs the value object for a boolean value.

The type of the value is luciad::DataType::getBooleanType().

value

the boolean.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::ExpressionValue::ExpressionValue.

◆ ExpressionValue() [6/8]

Luciad.Expressions.ExpressionValue.ExpressionValue ( Luciad.Expressions.ExpressionValue  other)
inline

◆ ExpressionValue() [7/8]

Luciad.Expressions.ExpressionValue.ExpressionValue ( string  value)
inline

Constructs the value object for a text value.

The type of the value is luciad::DataType::getStringType().

value

the text.

Enables the instantiation with the string literals like ExpressionValue{"My string"}.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::ExpressionValue::ExpressionValue.

The type of the value is luciad::DataType::getStringType().

value

the text.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::ExpressionValue::ExpressionValue.

◆ ExpressionValue() [8/8]

Luciad.Expressions.ExpressionValue.ExpressionValue ( Luciad.Geometries.Geometry  value)
inline

Constructs the value object for a Geometry value.

The type of the value is luciad::DataType::getGeometryType().

value

Geometry, cannot be nullptr.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::ExpressionValue::ExpressionValue.

Member Function Documentation

◆ AsDouble()

double Luciad.Expressions.ExpressionValue.AsDouble ( )
inline

Returns the double value, if the value object can be converted to a double.

the double value, if the value object can be converted to a double.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::ExpressionValue::asDouble.

◆ Dispose()

void Luciad.Expressions.ExpressionValue.Dispose ( )
inline

◆ Equals()

override bool Luciad.Expressions.ExpressionValue.Equals ( object  other)
inline

◆ GetHashCode()

override int Luciad.Expressions.ExpressionValue.GetHashCode ( )
inline

Property Documentation

◆ BoolValue

bool Luciad.Expressions.ExpressionValue.BoolValue
get

◆ DataType

Luciad.Datamodels.DataType Luciad.Expressions.ExpressionValue.DataType
get

◆ DoubleValue

double Luciad.Expressions.ExpressionValue.DoubleValue
get

◆ FloatValue

float Luciad.Expressions.ExpressionValue.FloatValue
get

◆ GeometryValue

Luciad.Geometries.Geometry Luciad.Expressions.ExpressionValue.GeometryValue
get

◆ IntValue

int Luciad.Expressions.ExpressionValue.IntValue
get

◆ LongValue

long Luciad.Expressions.ExpressionValue.LongValue
get

◆ StringValue

string Luciad.Expressions.ExpressionValue.StringValue
get