Base class for a strongly typed collection. More...
#include <arccore/common/Collection.h>
Public Types | |
| typedef const T & | ObjectRef |
| typedef T & | Ref |
| typedef T * | Iterator |
| typedef EnumeratorT< T > | Enumerator |
| Type of an iterator over the entire collection. | |
Public Member Functions | |
| Collection ()=default | |
| Creates a null collection. | |
| Enumerator | enumerator () const |
| Iterator | begin () |
| Iterator | end () |
| Ref | front () |
| bool | remove (ObjectRef value) |
| void | removeAt (Integer index) |
| void | add (ObjectRef value) |
| bool | contains (ObjectRef value) const |
| template<class Function> | |
| Function | each (Function f) |
| Applies the functor f to all elements of the collection. | |
| Public Member Functions inherited from Arcane::CollectionBase | |
| CollectionBase (const CollectionBase &rhs) | |
| CollectionBase ()=default | |
| Creates a null collection. | |
| CollectionBase & | operator= (const CollectionBase &rhs) |
| void | clear () |
| Removes all elements from the collection. | |
| Integer | count () const |
| Number of elements in the collection. | |
| bool | empty () const |
| True if the collection is empty. | |
| CollectionChangeEventHandler & | change () |
| Event invoked when the collection changes. | |
Protected Member Functions | |
| Collection (Impl *vb) | |
| Protected Member Functions inherited from Arcane::CollectionBase | |
| CollectionBase (Impl *vb) | |
| Impl * | _ref () |
| const Impl * | _ref () const |
| Impl * | _noNullRef () |
| const Impl * | _noNullRef () const |
| void | _setRef (Impl *new_impl) |
Related Symbols | |
(Note that these are not member symbols.) | |
| typedef EventObservable< const CollectionEventArgs & > | CollectionChangeEventHandler |
| Events sent by a Collection. | |
Base class for a strongly typed collection.
Definition at line 558 of file arccore/src/common/arccore/common/Collection.h.
| typedef EnumeratorT<T> Arcane::Collection< T >::Enumerator |
Type of an iterator over the entire collection.
Definition at line 574 of file arccore/src/common/arccore/common/Collection.h.
| typedef T* Arcane::Collection< T >::Iterator |
Definition at line 569 of file arccore/src/common/arccore/common/Collection.h.
| typedef const T& Arcane::Collection< T >::ObjectRef |
Definition at line 567 of file arccore/src/common/arccore/common/Collection.h.
| typedef T& Arcane::Collection< T >::Ref |
Definition at line 568 of file arccore/src/common/arccore/common/Collection.h.
|
default |
Creates a null collection.
The instance is not usable until it has been assigned to a non-null collection.
|
inlineexplicitprotected |
Definition at line 588 of file arccore/src/common/arccore/common/Collection.h.
|
inline |
Definition at line 607 of file arccore/src/common/arccore/common/Collection.h.
|
inline |
Definition at line 599 of file arccore/src/common/arccore/common/Collection.h.
|
inline |
Definition at line 608 of file arccore/src/common/arccore/common/Collection.h.
|
inline |
Applies the functor f to all elements of the collection.
Definition at line 614 of file arccore/src/common/arccore/common/Collection.h.
|
inline |
Definition at line 600 of file arccore/src/common/arccore/common/Collection.h.
|
inline |
Definition at line 594 of file arccore/src/common/arccore/common/Collection.h.
|
inline |
Definition at line 601 of file arccore/src/common/arccore/common/Collection.h.
|
inline |
Definition at line 605 of file arccore/src/common/arccore/common/Collection.h.
|
inline |
Definition at line 606 of file arccore/src/common/arccore/common/Collection.h.
|
Events sent by a Collection.
Definition at line 299 of file arccore/src/common/arccore/common/Collection.h.