Lumino
ln::ComponentList Class Reference

ComponentList. More...

#include <WorldObject.hpp>

Inheritance diagram for ln::ComponentList:
ln::Collection< Ref< Component > >

Additional Inherited Members

- Public Member Functions inherited from ln::Collection< Ref< Component > >
bool isEmpty () const LN_NOEXCEPT
 配列が空であるかを確認します。
 
int size () const LN_NOEXCEPT
 格納されている要素の数を取得します。
 
const_reference at (int index) const
 指定したインデックスにある要素への参照を取得します。
 
void setAt (int index, const value_type &item)
 指定したインデックスへ要素を設定します。
 
void add (const value_type &item)
 末尾に要素を追加します。
 
void clear ()
 全ての要素を削除します。
 
bool remove (const value_type &item)
 item に一致する最初の要素を削除します。(正常に削除された場合は true を返す。要素が見つからなければ false を返す)
 
bool contains (const value_type &item) const
 指定した要素がこの配列内に存在するかどうかを判断します。
 
Optional< Ref< Component > > findIf (TPred pred) const
 指定した条件と一致する最初の要素を検索し、その要素を指す Optional を返します。見つからなければ値を保持していません。
 
iterator begin () LN_NOEXCEPT
 先頭要素を指すイテレータを取得します。
 
const_iterator begin () const LN_NOEXCEPT
 先頭要素を指すイテレータを取得します。
 
iterator end () LN_NOEXCEPT
 末尾の次を指すイテレータを取得します。
 
const_iterator end () const LN_NOEXCEPT
 末尾の次を指すイテレータを取得します。
 
const_iterator cbegin () const LN_NOEXCEPT
 先頭要素を指す読み取り専用イテレータを取得します。
 
const_iterator cend () const LN_NOEXCEPT
 末尾の次を指す読み取り専用イテレータを取得します。
 
int getLength () const
 
const_reference getItem (int index) const
 
- Protected Member Functions inherited from ln::Collection< Ref< Component > >
virtual void insertAt (int index, const value_type &item)
 指定したインデックスの位置に要素を挿入します。
 
virtual void clearItems ()
 全ての要素を削除します。
 
virtual void removeAt (int index)
 指定したインデックスにある要素を削除します。
 
virtual void setItem (int index, const value_type &item)
 指定したインデックス位置にある要素を置き換えます。
 
virtual void moveItem (int oldIndex, int newIndex)
 要素を移動します。
 

Detailed Description


The documentation for this class was generated from the following file: