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

Implementation of a collection of elements in vector form. More...

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

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

Public Types

typedef Collection< T > BaseClass
typedef Impl Vec
typedef Vec::value_type value_type
typedef Vec::iterator iterator
typedef Vec::const_iterator const_iterator
typedef Vec::pointer pointer
typedef Vec::const_pointer const_pointer
typedef Vec::reference reference
typedef Vec::const_reference const_reference
typedef ListEnumeratorT< T > Enumerator
 Type of a constant iterator over the entire array.
typedef ConstIterT< List< T > > const_iter
Public Types inherited from Arcane::Collection< T >
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

 List (const ConstArrayView< T > &from)
 List (const ArrayView< T > &from)
 List (const EnumeratorT< T > &from)
void resize (Integer new_size)
T & operator[] (Integer i)
const T & operator[] (Integer i) const
void clone (const Collection< T > &base)
 Clone the collection base.
List< T > clone () const
 Clone the collection.
const_iterator begin () const
const_iterator end () const
iterator begin ()
iterator end ()
T * begin2 () const
T * end2 () const
template<typename Function>
Function each (Function f)
 Apply the functor f to all elements of the array.
template<typename Function>
iterator find_if (Function f)
template<typename Function>
const_iterator find_if (Function f) const
Public Member Functions inherited from Arcane::Collection< T >
 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

 List (Impl *from)
Protected Member Functions inherited from Arcane::Collection< T >
 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)

Private Types

typedef ListImplT< T > Impl

Private Member Functions

Impl & _cast ()
const Impl & _cast () const

Additional Inherited Members

Detailed Description

template<typename T>
class Arcane::List< T >

Implementation of a collection of elements in vector form.

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

Member Typedef Documentation

◆ BaseClass

template<typename T>
typedef Collection<T> Arcane::List< T >::BaseClass

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

◆ const_iter

template<typename T>
typedef ConstIterT<List<T> > Arcane::List< T >::const_iter

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

◆ const_iterator

template<typename T>
typedef Vec::const_iterator Arcane::List< T >::const_iterator

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

◆ const_pointer

template<typename T>
typedef Vec::const_pointer Arcane::List< T >::const_pointer

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

◆ const_reference

template<typename T>
typedef Vec::const_reference Arcane::List< T >::const_reference

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

◆ Enumerator

template<typename T>
typedef ListEnumeratorT<T> Arcane::List< T >::Enumerator

Type of a constant iterator over the entire array.

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

◆ Impl

template<typename T>
typedef ListImplT<T> Arcane::List< T >::Impl
private

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

◆ iterator

template<typename T>
typedef Vec::iterator Arcane::List< T >::iterator

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

◆ pointer

template<typename T>
typedef Vec::pointer Arcane::List< T >::pointer

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

◆ reference

template<typename T>
typedef Vec::reference Arcane::List< T >::reference

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

◆ value_type

template<typename T>
typedef Vec::value_type Arcane::List< T >::value_type

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

◆ Vec

template<typename T>
typedef Impl Arcane::List< T >::Vec

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

Constructor & Destructor Documentation

◆ List() [1/5]

template<typename T>
Arcane::List< T >::List ( )
inline

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

◆ List() [2/5]

template<typename T>
Arcane::List< T >::List ( const ConstArrayView< T > & from)
inline

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

◆ List() [3/5]

template<typename T>
Arcane::List< T >::List ( const ArrayView< T > & from)
inline

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

◆ List() [4/5]

template<typename T>
Arcane::List< T >::List ( const EnumeratorT< T > & from)
inlineexplicit

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

◆ List() [5/5]

template<typename T>
Arcane::List< T >::List ( Impl * from)
inlineprotected

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

Member Function Documentation

◆ _cast() [1/2]

template<typename T>
Impl & Arcane::List< T >::_cast ( )
inlineprivate

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

◆ _cast() [2/2]

template<typename T>
const Impl & Arcane::List< T >::_cast ( ) const
inlineprivate

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

◆ begin() [1/2]

template<typename T>
iterator Arcane::List< T >::begin ( )
inline

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

◆ begin() [2/2]

template<typename T>
const_iterator Arcane::List< T >::begin ( ) const
inline

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

◆ begin2()

template<typename T>
T * Arcane::List< T >::begin2 ( ) const
inline

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

◆ clone() [1/2]

template<typename T>
List< T > Arcane::List< T >::clone ( ) const
inline

Clone the collection.

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

◆ clone() [2/2]

template<typename T>
void Arcane::List< T >::clone ( const Collection< T > & base)
inline

Clone the collection base.

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

Referenced by Arcane::DumpWEnsight7::beginWrite(), Arcane::TimeLoopReader::readTimeLoops(), and Arcane::TimeLoop::setEntryPoints().

Here is the caller graph for this function:

◆ each()

template<typename T>
template<typename Function>
Function Arcane::List< T >::each ( Function f)
inline

Apply the functor f to all elements of the array.

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

◆ end() [1/2]

template<typename T>
iterator Arcane::List< T >::end ( )
inline

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

◆ end() [2/2]

template<typename T>
const_iterator Arcane::List< T >::end ( ) const
inline

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

◆ end2()

template<typename T>
T * Arcane::List< T >::end2 ( ) const
inline

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

◆ find_if() [1/2]

template<typename T>
template<typename Function>
iterator Arcane::List< T >::find_if ( Function f)
inline

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

◆ find_if() [2/2]

template<typename T>
template<typename Function>
const_iterator Arcane::List< T >::find_if ( Function f) const
inline

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

◆ operator[]() [1/2]

template<typename T>
T & Arcane::List< T >::operator[] ( Integer i)
inline

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

◆ operator[]() [2/2]

template<typename T>
const T & Arcane::List< T >::operator[] ( Integer i) const
inline

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

◆ resize()

template<typename T>
void Arcane::List< T >::resize ( Integer new_size)
inline

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


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