C# 클래스 YAMP.Physics.UnitValue

Scalar value with unit string.
상속: YAMP.ScalarValue
파일 보기 프로젝트 열기: FlorianRappl/YAMP 1 사용 예제들

공개 메소드들

메소드 설명
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