C# Класс YAMP.Physics.UnitValue

Scalar value with unit string.
Наследование: YAMP.ScalarValue
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Clear ( ) : void

Clears the content.

Clone ( ) : ScalarValue

Clones the value.

Deserialize ( Byte content ) : Value

Transforms a binary representation into a new instance.

Serialize ( ) : Byte[]

Transforms the instance into a binary representation.

ToString ( ParseContext context ) : String

Stringifies the content.

UnitValue ( ) : System

Creates a new unit value.

UnitValue ( Double value ) : System

Creates a new unit value.

UnitValue ( Double value, String unit ) : System

Creates a new unit value.

UnitValue ( ScalarValue value, String unit ) : System

Creates a new unit value.

UnitValue ( ScalarValue value, StringValue unit ) : System

Creates a new unit value.

UnitValue ( String unit ) : System

Creates a new unit value.

UnitValue ( UnitValue value ) : System

Creates a new unit value.

Защищенные методы

Метод Описание
RegisterOperators ( ) : void

Registers the operators.

Приватные методы

Метод Описание
AddUU ( Value a, Value b ) : UnitValue
DivSU ( Value a, Value b ) : UnitValue
DivUS ( Value a, Value b ) : UnitValue
DivUU ( Value a, Value b ) : UnitValue
MulSU ( Value a, Value b ) : UnitValue
MulUS ( Value a, Value b ) : UnitValue
MulUU ( Value a, Value b ) : UnitValue
PowUS ( Value a, Value b ) : UnitValue
SubUU ( Value a, Value b ) : UnitValue

Описание методов

Clear() публичный Метод

Clears the content.
public Clear ( ) : void
Результат void

Clone() публичный Метод

Clones the value.
public Clone ( ) : ScalarValue
Результат YAMP.ScalarValue

Deserialize() публичный Метод

Transforms a binary representation into a new instance.
public Deserialize ( Byte content ) : Value
content Byte The binary data.
Результат YAMP.Value

RegisterOperators() защищенный Метод

Registers the operators.
protected RegisterOperators ( ) : void
Результат void

Serialize() публичный Метод

Transforms the instance into a binary representation.
public Serialize ( ) : Byte[]
Результат Byte[]

ToString() публичный Метод

Stringifies the content.
public ToString ( ParseContext context ) : String
context YAMP.ParseContext The context to use.
Результат String

UnitValue() публичный Метод

Creates a new unit value.
public UnitValue ( ) : System
Результат System

UnitValue() публичный Метод

Creates a new unit value.
public UnitValue ( Double value ) : System
value Double The value to represent.
Результат System

UnitValue() публичный Метод

Creates a new unit value.
public UnitValue ( Double value, String unit ) : System
value Double The value to represent.
unit String The unit to hold.
Результат System

UnitValue() публичный Метод

Creates a new unit value.
public UnitValue ( ScalarValue value, String unit ) : System
value YAMP.ScalarValue The value to represent.
unit String The unit to hold.
Результат System

UnitValue() публичный Метод

Creates a new unit value.
public UnitValue ( ScalarValue value, StringValue unit ) : System
value YAMP.ScalarValue The value to represent.
unit YAMP.StringValue The unit to hold.
Результат System

UnitValue() публичный Метод

Creates a new unit value.
public UnitValue ( String unit ) : System
unit String The unit to hold.
Результат System

UnitValue() публичный Метод

Creates a new unit value.
public UnitValue ( UnitValue value ) : System
value UnitValue The unit to copy.
Результат System