23.2.1 ContextListのメソッド
-
このメソッドは,空のContextリストを構築します。
-
const char *ctx);
このメソッドは,指定されたコンテキストをこのオブジェクトのリストに追加します。
-
ctx
リストに追加されるコンテキスト
-
-
char *ctx);
このメソッドは,指定されたコンテキストコードをこのオブジェクトのリストに追加します。引数で指定されたコンテキストの所有権は,このリストによって引き受けられます。このメソッドを呼び出したあとに,コンテキストへアクセスしたり,コンテキストを解放したりすることはできません。
-
ctx
リストに追加されるコンテキスト
-
-
このメソッドは,現在リストに格納されている項目数を返します。
-
CORBA::Long index);
このメソッドは,指定されたインデックスのリストに格納されているコンテキストを指すポインタを返します。そのインデックスが不当な場合,NULLポインタが返されます。返されたコンテキストは解放できません。リストからコンテキストを削除するには,removeメソッドを使用します。
-
index
返されるコンテキストのインデックス。インデックスは0から始まります。
-
-
CORBA::long index);
このメソッドは,指定されたインデックスを持つコンテキストをリストから削除します。インデックスが不当な場合は,削除されません。
-
index
削除されるコンテキストのインデックス。インデックスは0から始まります。
-
-
static CORBA::ContextList_ptr _duplicate(
CORBA::ContextList_ptr ptr);
この静的メソッドは,オブジェクトのリファレンスカウントを増やし,そのオブジェクトを指すポインタを返します。
-
ptr
複製されるオブジェクト
-
-
static CORBA::ContextList_ptr _nil();
この静的メソッドは,初期化の際に使用できるNULLポインタを返します。
-
CORBA::ContextList *ptr);
この静的メソッドは,このオブジェクトのリファレンスカウントを減らします。そのカウントが0になると,オブジェクトによって管理されていたすべてのメモリが解放され,そのオブジェクトが削除されます。
-
ptr
解放されるオブジェクト
-