Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::ItemVectorViewT< ItemType > Class Template Reference

View on a typed array of entities. More...

#include <arcane/core/ItemVectorView.h>

Public Types

using const_iterator = ItemVectorViewConstIteratorT<ItemType>
using difference_type = std::ptrdiff_t
using value_type = ItemType
using reference_type = ItemType&
using const_reference_type = const ItemType&
using SentinelType = const_iterator
Public Types inherited from Arcane::ItemVectorView
using const_iterator = ItemVectorViewConstIterator
using difference_type = std::ptrdiff_t
using value_type = Item
using reference_type = Item&
using const_reference_type = const Item&
using SentinelType = const_iterator

Public Member Functions

 ItemVectorViewT (const ItemInternalArrayView &aitems, const Int32ConstArrayView &local_ids)
 ItemVectorViewT (ItemInternalArrayView aitems, ItemIndexArrayView indexes)
 ItemVectorViewT (const ItemVectorView &rhs)
 ItemVectorViewT (const ItemVectorT< ItemType > &rhs)
 ItemVectorViewT (const ItemInternalVectorView &rhs)
 ItemVectorViewT (const impl::ItemIndexedListView< DynExtent > &rhs)
 ItemVectorViewT (ItemInfoListView item_info_list_view, ConstArrayView< Int32 > local_ids)
 ItemVectorViewT (ItemInfoListView item_info_list_view, ItemIndexArrayView indexes)
 ItemVectorViewT (IItemFamily *family, ConstArrayView< Int32 > local_ids)
 ItemVectorViewT (IItemFamily *family, ItemIndexArrayView indexes)
 ItemVectorViewT (const ItemConnectedListViewT< ItemType > &v)
ItemType operator[] (Integer index) const
ItemEnumeratorT< ItemType > enumerator () const
const_iterator begin () const
SentinelType end () const
const_iterator endIterator () const
Public Member Functions inherited from Arcane::ItemVectorView
 ItemVectorView (const ItemInternalArrayView &aitems, const Int32ConstArrayView &local_ids)
 ItemVectorView (ItemInternalArrayView aitems, ItemIndexArrayView indexes)
 ItemVectorView (const ItemInternalVectorView &view)
 ItemVectorView (ItemInfoListView item_info_list_view, ConstArrayView< Int32 > local_ids)
 ItemVectorView (ItemInfoListView item_info_list_view, ItemIndexArrayView indexes)
 ItemVectorView (IItemFamily *family, ConstArrayView< Int32 > local_ids)
 ItemVectorView (IItemFamily *family, ItemIndexArrayView indexes)
 ItemVectorView (const impl::ItemIndexedListView< DynExtent > &view)
 ItemVectorView (const ItemConnectedListView< DynExtent > &v)
 operator ItemInternalVectorView () const
Item operator[] (Integer index) const
 Access the i-th element of the vector.
Int32 size () const
 Number of elements in the vector.
ItemInternalArrayView items () const
 Array of entities.
Int32ConstArrayView localIds () const
 Array of local IDs of entities.
void fillLocalIds (Array< Int32 > &ids) const
 Adds the list of localIds() of the vector to ids.
ItemVectorView subView (Integer abegin, Integer asize) const
 Sub-view starting from element abegin and containing asize elements.
const_iterator begin () const
SentinelType end () const
const_iterator endIterator () const
ItemIndexArrayView indexes () const
 View on the array of indices.
ItemEnumerator enumerator () const
void _internalSwigSet (ItemVectorViewPOD *vpod)

Protected Member Functions

 ItemVectorViewT (ItemSharedInfo *shared_info, ConstArrayView< Int32 > local_ids, Int32 local_id_offset)
Protected Member Functions inherited from Arcane::ItemVectorView
 ItemVectorView (ItemSharedInfo *shared_info, const impl::ItemLocalIdListContainerView &local_ids)
 ItemVectorView (ItemSharedInfo *shared_info, ConstArrayView< Int32 > local_ids, Int32 local_id_offset)
 ItemVectorView (const ItemInternalArrayView &aitems, const Int32ConstArrayView &local_ids, bool)
 ItemVectorView (ItemInternalArrayView aitems, ItemIndexArrayView indexes, bool)
const Int32_localIdsData () const
Int32 _localIdOffset () const

Friends

class ItemVectorT< ItemType >
class ItemConnectedListViewT< ItemType >

Additional Inherited Members

Protected Attributes inherited from Arcane::ItemVectorView
ItemIndexArrayView m_index_view
ItemSharedInfom_shared_info = ItemSharedInfo::nullInstance()

Detailed Description

template<typename ItemType>
class Arcane::ItemVectorViewT< ItemType >

View on a typed array of entities.

Definition at line 418 of file ItemVectorView.h.

Member Typedef Documentation

◆ const_iterator

template<typename ItemType>
using Arcane::ItemVectorViewT< ItemType >::const_iterator = ItemVectorViewConstIteratorT<ItemType>

Definition at line 426 of file ItemVectorView.h.

◆ const_reference_type

template<typename ItemType>
using Arcane::ItemVectorViewT< ItemType >::const_reference_type = const ItemType&

Definition at line 432 of file ItemVectorView.h.

◆ difference_type

template<typename ItemType>
using Arcane::ItemVectorViewT< ItemType >::difference_type = std::ptrdiff_t

Definition at line 427 of file ItemVectorView.h.

◆ reference_type

template<typename ItemType>
using Arcane::ItemVectorViewT< ItemType >::reference_type = ItemType&

Definition at line 430 of file ItemVectorView.h.

◆ SentinelType

template<typename ItemType>
using Arcane::ItemVectorViewT< ItemType >::SentinelType = const_iterator

Definition at line 434 of file ItemVectorView.h.

◆ value_type

template<typename ItemType>
using Arcane::ItemVectorViewT< ItemType >::value_type = ItemType

Definition at line 428 of file ItemVectorView.h.

Constructor & Destructor Documentation

◆ ItemVectorViewT() [1/12]

template<typename ItemType>
Arcane::ItemVectorViewT< ItemType >::ItemVectorViewT ( const ItemInternalArrayView & aitems,
const Int32ConstArrayView & local_ids )
inline

Definition at line 439 of file ItemVectorView.h.

◆ ItemVectorViewT() [2/12]

template<typename ItemType>
Arcane::ItemVectorViewT< ItemType >::ItemVectorViewT ( ItemInternalArrayView aitems,
ItemIndexArrayView indexes )
inline

Definition at line 444 of file ItemVectorView.h.

◆ ItemVectorViewT() [3/12]

template<typename ItemType>
Arcane::ItemVectorViewT< ItemType >::ItemVectorViewT ( const ItemVectorView & rhs)
inline

Definition at line 451 of file ItemVectorView.h.

◆ ItemVectorViewT() [4/12]

template<typename ItemType>
Arcane::ItemVectorViewT< ItemType >::ItemVectorViewT ( const ItemVectorT< ItemType > & rhs)
inline

Definition at line 233 of file ItemVector.h.

◆ ItemVectorViewT() [5/12]

template<typename ItemType>
Arcane::ItemVectorViewT< ItemType >::ItemVectorViewT ( const ItemInternalVectorView & rhs)
inline

Definition at line 455 of file ItemVectorView.h.

◆ ItemVectorViewT() [6/12]

template<typename ItemType>
Arcane::ItemVectorViewT< ItemType >::ItemVectorViewT ( const impl::ItemIndexedListView< DynExtent > & rhs)
inline

Definition at line 458 of file ItemVectorView.h.

◆ ItemVectorViewT() [7/12]

template<typename ItemType>
Arcane::ItemVectorViewT< ItemType >::ItemVectorViewT ( ItemInfoListView item_info_list_view,
ConstArrayView< Int32 > local_ids )
inline

Definition at line 461 of file ItemVectorView.h.

◆ ItemVectorViewT() [8/12]

template<typename ItemType>
Arcane::ItemVectorViewT< ItemType >::ItemVectorViewT ( ItemInfoListView item_info_list_view,
ItemIndexArrayView indexes )
inline

Definition at line 464 of file ItemVectorView.h.

◆ ItemVectorViewT() [9/12]

template<typename ItemType>
Arcane::ItemVectorViewT< ItemType >::ItemVectorViewT ( IItemFamily * family,
ConstArrayView< Int32 > local_ids )
inline

Definition at line 467 of file ItemVectorView.h.

◆ ItemVectorViewT() [10/12]

template<typename ItemType>
Arcane::ItemVectorViewT< ItemType >::ItemVectorViewT ( IItemFamily * family,
ItemIndexArrayView indexes )
inline

Definition at line 470 of file ItemVectorView.h.

◆ ItemVectorViewT() [11/12]

template<typename ItemType>
Arcane::ItemVectorViewT< ItemType >::ItemVectorViewT ( const ItemConnectedListViewT< ItemType > & v)
inline

Definition at line 475 of file ItemVectorView.h.

◆ ItemVectorViewT() [12/12]

template<typename ItemType>
Arcane::ItemVectorViewT< ItemType >::ItemVectorViewT ( ItemSharedInfo * shared_info,
ConstArrayView< Int32 > local_ids,
Int32 local_id_offset )
inlineprotected

Definition at line 481 of file ItemVectorView.h.

Member Function Documentation

◆ begin()

template<typename ItemType>
const_iterator Arcane::ItemVectorViewT< ItemType >::begin ( ) const
inline

Definition at line 498 of file ItemVectorView.h.

◆ end()

template<typename ItemType>
SentinelType Arcane::ItemVectorViewT< ItemType >::end ( ) const
inline

Definition at line 502 of file ItemVectorView.h.

◆ endIterator()

template<typename ItemType>
const_iterator Arcane::ItemVectorViewT< ItemType >::endIterator ( ) const
inline

Definition at line 506 of file ItemVectorView.h.

◆ enumerator()

template<typename ItemType>
ItemEnumeratorT< ItemType > Arcane::ItemVectorViewT< ItemType >::enumerator ( ) const
inline

Definition at line 494 of file ItemVectorView.h.

◆ operator[]()

template<typename ItemType>
ItemType Arcane::ItemVectorViewT< ItemType >::operator[] ( Integer index) const
inline

Definition at line 487 of file ItemVectorView.h.

◆ ItemConnectedListViewT< ItemType >

template<typename ItemType>
friend class ItemConnectedListViewT< ItemType >
friend

Definition at line 408 of file ItemVectorView.h.

◆ ItemVectorT< ItemType >

template<typename ItemType>
friend class ItemVectorT< ItemType >
friend

Definition at line 408 of file ItemVectorView.h.


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