前のページ次のページ上に戻るホーム SophiaFramework 2.2
SFUCollection
すべてのコレクション クラスの基底となる抽象クラスです。
#include <SFUCollection.hpp>
class SFUCollection;
typedef SFUCollection&          SFUCollectionRef;
typedef SFUCollection*          SFUCollectionPtr;
typedef SFUCollection**         SFUCollectionHandle;
typedef const SFUCollection     ConstSFUCollection;
typedef const SFUCollection&    ConstSFUCollectionRef;
typedef const SFUCollection*    ConstSFUCollectionPtr;
typedef const SFUCollection**   ConstSFUCollectionHandle;
typedef Bool   (*EqualSPP)(ConstVoidPtr,ConstVoidPtr);

継承図

SFUCollection クラスの継承図

解説

SFUCollection はすべてのコレクションの基底となる抽象クラスです。

EqualSPP 型は、コレクション内の要素を比較する関数を表します。

メンバ

コンストラクタ/デストラクタ
public
SFUCollection SFUCollection クラスのコンストラクタです。
public
~SFUCollection SFUCollection のデストラクタです。
パブリック関数
public
Clear コレクションの要素をすべて削除します。
public
Empty コレクションが空であるか判定します。
public
GetSize コレクションの要素数を返します。
public
SetSize コレクションの要素数を設定します。
プロテクト関数
protected
static
Equal
EqualSPP コレクションの要素を比較する関数です。

SFUCollection::SFUCollection
SFUCollection クラスのコンストラクタです。
[ public ]
SFUCollection(Void);

解説

SFUCollection は抽象クラスですので、 コンストラクタはほとんど有意義な動作を行いません。


SFUCollection::~SFUCollection
SFUCollection のデストラクタです。
[ public, virtual ]
~SFUCollection(Void);

SFUCollection::Clear
コレクションの要素をすべて削除します。
[ public ]
Void Clear(Void);

解説

コレクションの要素をすべて削除し、 サイズを 0 に設定します。

参照

SFUCollection::SetSize


SFUCollection::Empty
コレクションが空であるか判定します。
[ public, const ]
Bool Empty(Void);

戻り値

コレクションの要素数が 0 であれば TRUE を返します。 0 でなければ FALSE を返します。

参照

SFUCollection::GetSize


SFUCollection::Equal
[ protected, static ]
Bool Equal(
    ConstVoidPtr    // 
    ConstVoidPtr    // 
);

引数

... の説明 ...

... の説明 ...

戻り値

*** 戻り値の説明 ***

解説

*** 解説 ***

使用例

*** 使用例 ***


参照

*** 主に xref リンクを書きます ***


SFUCollection::GetSize
コレクションの要素数を返します。
[ public, pure-virtual, const ]
UIntN GetSize(Void);

参照

SFUCollection::SetSize


SFUCollection::SetSize
コレクションの要素数を設定します。
[ public, pure-virtual ]
Bool SetSize(
    UIntN size   // 設定する要素数
);

戻り値

要素数の設定に成功すると TRUE を返します。

解説

コレクションの要素数を設定します。 この関数は純粋仮想関数であり、派生クラスにより実装されます。

参照

SFUCollection::GetSize


SFUCollection::EqualSPP
コレクションの要素を比較する関数です。
typedef Bool(* SFUCollection::EqualSPP)(ConstVoidPtr,ConstVoidPtr);

参照

SFUList::IndexOf | SFUList::LastIndexOf