23.1.2 Anyのメソッド
-
これは,空のAnyオブジェクトを生成するデフォルトのコンストラクタです。
-
CORBA::Any(
const CORBA::Any& val);
これは,指定されたターゲットのコピーであるAnyオブジェクトを生成するコピーコンストラクタです。
-
val
コピーされるオブジェクト
-
-
CORBA::Any(
CORBA::TypeCode_ptr tc, void *value,
CORBA::Boolean release = 0);
このコンストラクタは,指定された値,およびTypeCodeで初期化されたAnyオブジェクトを生成します。
-
tc
このAnyに含まれる値のTypeCode
-
value
このAnyに含まれる値
-
release
TRUEを設定した場合,このAnyオブジェクトがデストラクトされた際に,Anyオブジェクトの値に対応するメモリが解放されます。
-
-
static CORBA::Any_ptr _duplicate(
CORBA::Any_ptr ptr);
この静的メソッドは,指定されたオブジェクトのリファレンスカウントを増やし,そのポインタを返します。
-
ptr
複製されるAny
-
-
この静的メソッドは,初期化の際に使用できるNULLポインタを返します。
-
CORBA::Any_ptr ptr);
この静的メソッドは,指定されたオブジェクトのリファレンスカウントを減らします。カウントが0になった場合,そのオブジェクトによって管理されていたすべてのメモリが解放され,そのオブジェクトは削除されます。
-
ptr
解放されるAny
-