Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::ListImplT< T > Class Template Reference

#include </__w/arcaneframework.github.io/arcaneframework.github.io/framework/arccore/src/common/arccore/common/List.h>

Inheritance diagram for Arcane::ListImplT< T >:
Collaboration diagram for Arcane::ListImplT< T >:

Public Types

typedef ListImplBase< T > BaseClass
Public Types inherited from Arcane::ListImplBase< T >
typedef CollectionImplT< T > BaseClass
typedef const T & ObjectRef
typedef T value_type
 Type of array elements.
typedef value_typeiterator
 Type of iterator over an array element.
typedef const value_typeconst_iterator
 Type of constant iterator over an array element.
typedef value_typepointer
 Type pointer of an array element.
typedef const value_typeconst_pointer
 Type constant pointer of an array element.
typedef value_typereference
 Type reference of an array element.
typedef const value_typeconst_reference
 Type constant reference of an array element.
typedef IterT< ListImplBase< T > > iter
 Type of an iterator over the entire array.
typedef ConstIterT< ListImplBase< T > > const_iter
 Type of a constant iterator over the entire array.
Public Types inherited from Arcane::CollectionImplT< T >
typedef const T & ObjectRef
typedef T * ObjectIterator
typedef const T * ConstObjectIterator
Public Types inherited from Arcane::CollectionImplBase
typedef Integer size_type
 Type indexing the array.
typedef ptrdiff_t difference_type
 Type of a distance between array iterator elements.

Public Member Functions

 ListImplT (const ConstArrayView< T > &array)
 ListImplT (const ArrayView< T > &array)
 ListImplT (const ListImplT< T > &array)
 ListImplT (const Collection< T > &array)
 ListImplT (const EnumeratorT< T > &enumerator)
void assign (const Collection< T > &array)
void assign (const EnumeratorT< T > &enumerator)
Public Member Functions inherited from Arcane::ListImplBase< T >
 ListImplBase ()=default
 Constructs an empty array.
void assign (const ListImplBase< T > &s)
 Copies the array from s.
void assign (const ConstArrayView< T > &s)
 Copies the array from s.
void assign (const ArrayView< T > &s)
 Copies the array from s.
T & operator[] (Integer i)
 i-th element of the array.
const T & operator[] (Integer i) const
 i-th element of the array.
iterator begin () override
 Returns an iterator to the first element of the array.
iterator end () override
 Returns an iterator to the first element after the end of the array.
const_iterator begin () const override
 Returns a constant iterator to the first element of the array.
const_iterator end () const override
 Returns a constant iterator to the first element after the end of the array.
T * begin2 () const override
 Returns a pointer to the first element of the array.
T * end2 () const override
 Returns a pointer to the first element after the end of the array.
template<class Function>
Function each (Function f)
 Applies the functor f to all elements of the array.
void reserve (Integer new_capacity)
 Signals that memory should be reserved for new_capacity elements This is just an indication. The derived class is free not to take it into account.
Integer capacity () const
 Returns the number of allocated elements in the array.
void clear () override
 Removes all elements from the collection.
void add (ObjectRef elem) override
 Adds element elem to the end of the array.
bool remove (ObjectRef element) override
void removeAt (Integer index) override
const_iterator find (ObjectRef element) const
bool contains (ObjectRef element) const override
EnumeratorImplBaseenumerator () const override
 Returns a generic enumerator for the collection.
void resize (Integer new_size)
 Changes the size of the array. new_size is the new number of elements in the array.
Public Member Functions inherited from Arcane::CollectionImplT< T >
template<class Function>
Function each (Function f)
 Applies the functor f to all elements of the collection.
Public Member Functions inherited from Arcane::CollectionImplBase
 CollectionImplBase ()=default
 Constructs an empty collection.
 CollectionImplBase (Integer acount)
 Constructs a collection with acount elements.
 CollectionImplBase (const CollectionImplBase &from)=delete
 Copy constructor. event handlers are not copied.
Integer count () const
 Returns the number of elements in the collection.
virtual void onClear ()
 Event sent before removing all elements.
virtual void onClearComplete ()
 Event sent when all elements have been removed.
virtual void onInsert ()
 Event sent before inserting an element.
virtual void onInsertComplete (void *object, Integer position)
 Event sent after inserting an element.
virtual void onRemove ()
 Event sent before removing an element.
virtual void onRemoveComplete (void *object, Integer position)
 Event sent after removing an element.
virtual void onSet ()
virtual void onSetComplete (void *object, Integer position)
virtual void onValidate ()
CollectionChangeEventHandler & change ()
Public Member Functions inherited from Arcane::ObjectImpl
 ObjectImpl (const ObjectImpl &rhs)=delete
ObjectImpl & operator= (const ObjectImpl &rhs)=delete
void addRef ()
 Increments the reference counter.
void removeRef ()
 Decrements the reference counter.
Int32 refCount () const
 Returns the value of the reference counter.
virtual void deleteMe ()
 Destroys this object.

Additional Inherited Members

Protected Member Functions inherited from Arcane::ListImplBase< T >
void _removeAt (Integer index)
Integer _capacity () const
void _arrayCopy (const ListImplBase< T > &array)
void _arrayCopy (const ConstArrayView< T > &array)
void _arrayCopy (const ArrayView< T > &array)
void _arrayCopy (const T *from_ptr, Integer from_size)
T * _ptr ()
 Returns a pointer to the array.
const T * _ptr () const
Protected Member Functions inherited from Arcane::CollectionImplBase
void _setCount (Integer acount)

Detailed Description

template<class T>
class Arcane::ListImplT< T >

Definition at line 329 of file arccore/src/common/arccore/common/List.h.

Member Typedef Documentation

◆ BaseClass

template<class T>
typedef ListImplBase<T> Arcane::ListImplT< T >::BaseClass

Definition at line 334 of file arccore/src/common/arccore/common/List.h.

Constructor & Destructor Documentation

◆ ListImplT() [1/6]

template<class T>
Arcane::ListImplT< T >::ListImplT ( )
inline

Definition at line 338 of file arccore/src/common/arccore/common/List.h.

◆ ListImplT() [2/6]

template<class T>
Arcane::ListImplT< T >::ListImplT ( const ConstArrayView< T > & array)
inlineexplicit

Definition at line 339 of file arccore/src/common/arccore/common/List.h.

◆ ListImplT() [3/6]

template<class T>
Arcane::ListImplT< T >::ListImplT ( const ArrayView< T > & array)
inlineexplicit

Definition at line 343 of file arccore/src/common/arccore/common/List.h.

◆ ListImplT() [4/6]

template<class T>
Arcane::ListImplT< T >::ListImplT ( const ListImplT< T > & array)
inline

Definition at line 347 of file arccore/src/common/arccore/common/List.h.

◆ ListImplT() [5/6]

template<class T>
Arcane::ListImplT< T >::ListImplT ( const Collection< T > & array)
inlineexplicit

Definition at line 352 of file arccore/src/common/arccore/common/List.h.

◆ ListImplT() [6/6]

template<class T>
Arcane::ListImplT< T >::ListImplT ( const EnumeratorT< T > & enumerator)
inlineexplicit

Definition at line 359 of file arccore/src/common/arccore/common/List.h.

Member Function Documentation

◆ assign() [1/2]

template<class T>
void Arcane::ListImplT< T >::assign ( const Collection< T > & array)
inline

Definition at line 367 of file arccore/src/common/arccore/common/List.h.

◆ assign() [2/2]

template<class T>
void Arcane::ListImplT< T >::assign ( const EnumeratorT< T > & enumerator)
inline

Definition at line 374 of file arccore/src/common/arccore/common/List.h.


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