C# Class Baku.LibqiDotNet.QiValue

Qiの一般的な値を表します。
Afficher le fichier Open project: malaybaku/BakuLibQiDotNet Class Usage Examples

Private Properties

Свойство Type Description
GetValue long
GetValue ulong
QiValue System

Méthodes publiques

Méthode Description
AddElement ( QiValue value ) : bool

リストに要素を追加します。

Copy ( ) : QiValue

値をコピーします。

Create ( string sig ) : QiValue

シグネチャを指定して値を初期化します。

Destroy ( ) : void

インスタンスを破棄します。

Dump ( int indentStep = 2, int indentStart ) : string

文字列データとしてオブジェクトの階層構造を出力します。

GetContentQiType ( ) : QiType

型情報を取得しますが、動的型の場合中身の型情報を取得します。

GetContentSignature ( bool resolveDynamics = false ) : string

値のシグネチャを取得しますが、動的型の場合中身のシグネチャを取得します。

GetCopy ( QiValue src ) : QiValue

値のコピーを生成します。

GetDynamic ( ) : QiValue

この変数がダイナミック型であると想定し、内側に格納している値を取り出します。

GetKeys ( ) : QiValue

連想配列のキー一覧を取得します。

GetObject ( ) : QiObject

この変数がオブジェクト型であると想定して値を取得します。

GetQiType ( ) : QiType

型情報を取得します。

GetSignature ( bool resolveDynamics = false ) : string

値のシグネチャを取得します。

Reset ( string signature ) : void

(動作未確認)値を規定値に戻します。

SetValue ( QiObject obj ) : bool

この変数がオブジェクト型であると想定し、値を設定します。

SetValue ( QiValue v ) : bool

この変数が動的型であると想定し、値を設定します。

SetValue ( byte data ) : bool

Rawデータ型の変数にバイナリを設定します。

SetValue ( double v ) : bool

この変数が倍精度小数型であると想定し、値を設定します。

SetValue ( float v ) : bool

この変数が単精度小数型であると想定し、値を設定します。

SetValue ( long v ) : bool

この変数が符号あり整数型であると想定し、値を設定します。

SetValue ( string v ) : bool

この変数が文字列型であると想定し、値を設定します。

SetValue ( ulong v ) : bool

この変数が符号なし整数型であると想定し、値を設定します。

Swap ( QiValue v1, QiValue v2 ) : void

指定した2つの値を入れ替えます。

ToBool ( ) : bool

格納されているはずのbool値を取得します。

ToByte ( ) : byte

この変数が符号なし1バイト整数型であると想定して値を取得します。

ToBytes ( ) : byte[]

この変数がバイナリデータ型であると想定して値を取得します。

ToDouble ( ) : double

この変数が倍精度小数型であると想定して値を取得します。

ToFloat ( ) : float

この変数が単精度小数型であると想定して値を取得します。

ToInt16 ( ) : short

この変数が符号あり2バイト整数型であると想定して値を取得します。

ToInt32 ( ) : int

この変数が符号あり4バイト整数型であると想定して値を取得します。

ToInt64 ( ) : long

この変数が符号あり8バイト整数型であると想定して値を取得します。

ToSByte ( ) : sbyte

この変数が符号あり1バイト整数型であると想定して値を取得します。

ToString ( ) : string

この変数が文字列型である場合はその値、そうでない場合は保持している値の型を表す文字列を取得します。

ToUInt16 ( ) : ushort

この変数が符号なし2バイト整数型であると想定して値を取得します。

ToUInt32 ( ) : uint

この変数が符号なし4バイト整数型であると想定して値を取得します。

ToUInt64 ( ) : ulong

この変数が符号なし8バイト整数型であると想定して値を取得します。

this ( QiValue key ) : QiValue

連想配列にキー要素でアクセスします。キーが連想配列に含まれるかどうかはチェックされません。

this ( int index ) : QiValue

リストまたはタプルにインデクスでアクセスします。境界チェックは行われません。

Private Methods

Méthode Description
GetValue ( long defaultValue ) : long

この変数が符号あり整数型であると想定し、失敗時のデフォルト値を指定して値を取得します。

GetValue ( ulong defaultValue ) : ulong

この変数が符号なし整数型であると想定し、失敗時のデフォルト値を指定して値を取得します。

QiValue ( IntPtr handle ) : System

Method Details

AddElement() public méthode

リストに要素を追加します。
public AddElement ( QiValue value ) : bool
value QiValue 追加する値
Résultat bool

Copy() public méthode

値をコピーします。
public Copy ( ) : QiValue
Résultat QiValue

Create() public static méthode

シグネチャを指定して値を初期化します。
public static Create ( string sig ) : QiValue
sig string 値のシグネチャを表す文字列
Résultat QiValue

Destroy() public méthode

インスタンスを破棄します。
public Destroy ( ) : void
Résultat void

Dump() public méthode

文字列データとしてオブジェクトの階層構造を出力します。
public Dump ( int indentStep = 2, int indentStart ) : string
indentStep int
indentStart int
Résultat string

GetContentQiType() public méthode

型情報を取得しますが、動的型の場合中身の型情報を取得します。
public GetContentQiType ( ) : QiType
Résultat QiType

GetContentSignature() public méthode

値のシグネチャを取得しますが、動的型の場合中身のシグネチャを取得します。
public GetContentSignature ( bool resolveDynamics = false ) : string
resolveDynamics bool シグネチャの解決法フラグ(サンプル見た限り既定値以外を使うように見えない)
Résultat string

GetCopy() public static méthode

値のコピーを生成します。
public static GetCopy ( QiValue src ) : QiValue
src QiValue 生成元の値
Résultat QiValue

GetDynamic() public méthode

この変数がダイナミック型であると想定し、内側に格納している値を取り出します。
public GetDynamic ( ) : QiValue
Résultat QiValue

GetKeys() public méthode

連想配列のキー一覧を取得します。
public GetKeys ( ) : QiValue
Résultat QiValue

GetObject() public méthode

この変数がオブジェクト型であると想定して値を取得します。
public GetObject ( ) : QiObject
Résultat QiObject

GetQiType() public méthode

型情報を取得します。
public GetQiType ( ) : QiType
Résultat QiType

GetSignature() public méthode

値のシグネチャを取得します。
public GetSignature ( bool resolveDynamics = false ) : string
resolveDynamics bool シグネチャの解決法フラグ(サンプル見た限り既定値以外を使うように見えない)
Résultat string

Reset() public méthode

(動作未確認)値を規定値に戻します。
public Reset ( string signature ) : void
signature string
Résultat void

SetValue() public méthode

この変数がオブジェクト型であると想定し、値を設定します。
public SetValue ( QiObject obj ) : bool
obj QiObject 設定する値
Résultat bool

SetValue() public méthode

この変数が動的型であると想定し、値を設定します。
public SetValue ( QiValue v ) : bool
v QiValue 設定する値
Résultat bool

SetValue() public méthode

Rawデータ型の変数にバイナリを設定します。
public SetValue ( byte data ) : bool
data byte 設定するバイナリデータ
Résultat bool

SetValue() public méthode

この変数が倍精度小数型であると想定し、値を設定します。
public SetValue ( double v ) : bool
v double 設定する値
Résultat bool

SetValue() public méthode

この変数が単精度小数型であると想定し、値を設定します。
public SetValue ( float v ) : bool
v float 設定する値
Résultat bool

SetValue() public méthode

この変数が符号あり整数型であると想定し、値を設定します。
public SetValue ( long v ) : bool
v long 設定する値
Résultat bool

SetValue() public méthode

この変数が文字列型であると想定し、値を設定します。
public SetValue ( string v ) : bool
v string 設定する値
Résultat bool

SetValue() public méthode

この変数が符号なし整数型であると想定し、値を設定します。
public SetValue ( ulong v ) : bool
v ulong 設定する値
Résultat bool

Swap() public static méthode

指定した2つの値を入れ替えます。
public static Swap ( QiValue v1, QiValue v2 ) : void
v1 QiValue
v2 QiValue
Résultat void

ToBool() public méthode

格納されているはずのbool値を取得します。
public ToBool ( ) : bool
Résultat bool

ToByte() public méthode

この変数が符号なし1バイト整数型であると想定して値を取得します。
public ToByte ( ) : byte
Résultat byte

ToBytes() public méthode

この変数がバイナリデータ型であると想定して値を取得します。
public ToBytes ( ) : byte[]
Résultat byte[]

ToDouble() public méthode

この変数が倍精度小数型であると想定して値を取得します。
public ToDouble ( ) : double
Résultat double

ToFloat() public méthode

この変数が単精度小数型であると想定して値を取得します。
public ToFloat ( ) : float
Résultat float

ToInt16() public méthode

この変数が符号あり2バイト整数型であると想定して値を取得します。
public ToInt16 ( ) : short
Résultat short

ToInt32() public méthode

この変数が符号あり4バイト整数型であると想定して値を取得します。
public ToInt32 ( ) : int
Résultat int

ToInt64() public méthode

この変数が符号あり8バイト整数型であると想定して値を取得します。
public ToInt64 ( ) : long
Résultat long

ToSByte() public méthode

この変数が符号あり1バイト整数型であると想定して値を取得します。
public ToSByte ( ) : sbyte
Résultat sbyte

ToString() public méthode

この変数が文字列型である場合はその値、そうでない場合は保持している値の型を表す文字列を取得します。
public ToString ( ) : string
Résultat string

ToUInt16() public méthode

この変数が符号なし2バイト整数型であると想定して値を取得します。
public ToUInt16 ( ) : ushort
Résultat ushort

ToUInt32() public méthode

この変数が符号なし4バイト整数型であると想定して値を取得します。
public ToUInt32 ( ) : uint
Résultat uint

ToUInt64() public méthode

この変数が符号なし8バイト整数型であると想定して値を取得します。
public ToUInt64 ( ) : ulong
Résultat ulong

this() public méthode

連想配列にキー要素でアクセスします。キーが連想配列に含まれるかどうかはチェックされません。
public this ( QiValue key ) : QiValue
key QiValue
Résultat QiValue

this() public méthode

リストまたはタプルにインデクスでアクセスします。境界チェックは行われません。
public this ( int index ) : QiValue
index int
Résultat QiValue