Implementation of an array of lists of entities. More...
#include <arcane/core/ItemPairGroupImpl.h>
Public Member Functions | |
| ItemPairGroupImpl (const ItemGroup &group, const ItemGroup &sub_group) | |
| ~ItemPairGroupImpl () override | |
| Releases resources. | |
| virtual ISharedReference & | sharedReference () |
| const String & | name () const |
| Group name. | |
| virtual Integer | nbRef () const |
| Number of references on the group. | |
| bool | null () const |
| Returns true if the group is null. | |
| IMesh * | mesh () const |
| Mesh to which the group belongs (0 for the null group). | |
| eItemKind | itemKind () const |
| Group kind. This is the kind of its elements. | |
| eItemKind | subItemKind () const |
| Group kind. This is the kind of its elements. | |
| IItemFamily * | itemFamily () const |
| Family to which the group belongs (or 0 if none). | |
| IItemFamily * | subItemFamily () const |
| Family to which the group belongs (or 0 if none). | |
| const ItemGroup & | itemGroup () const |
| Group of entities. | |
| const ItemGroup & | subItemGroup () const |
| Group of sub-entities. | |
| Integer | size () const |
| Number of entities in the group. | |
| void | invalidate (bool force_recompute) |
| Invalidates the group. | |
| void | checkValid () |
| Checks that the group is valid. | |
| bool | checkNeedUpdate () |
| Updates the group if necessary. | |
| void | changeIds (IntegerConstArrayView old_to_new_ids) |
| Changes the indices of the group's entities. | |
| Array< Int64 > & | unguardedIndexes () const |
| Array< Int32 > & | unguardedLocalIds () const |
| void | setComputeFunctor (IFunctor *functor) |
| Int64ArrayView | indexes () |
| Span< const Int32 > | subItemsLocalId () |
| void | addRef () override |
| Increments the reference counter. | |
| void | removeRef () override |
| Decrements the reference counter. | |
| Public Member Functions inherited from Arcane::SharedReference | |
| void | addRef () override |
| Increments the reference counter. | |
| void | removeRef () override |
| Decrements the reference counter. | |
| Int32 | refCount () const override |
| Returns the value of the reference counter. | |
| Public Member Functions inherited from Arcane::ISharedReference | |
| virtual | ~ISharedReference ()=default |
| Releases resources. | |
Static Public Member Functions | |
| static ItemPairGroupImpl * | checkSharedNull () |
Static Public Attributes | |
| static ItemPairGroupImpl * | shared_null = 0 |
Private Member Functions | |
| void | deleteMe () override |
Private Attributes | |
| ItemPairGroupImplPrivate * | m_p = nullptr |
| Group implementation. | |
Implementation of an array of lists of entities.
Definition at line 34 of file ItemPairGroupImpl.h.
| Arcane::ItemPairGroupImpl::ItemPairGroupImpl | ( | ) |
Definition at line 189 of file ItemPairGroupImpl.cc.
| Arcane::ItemPairGroupImpl::ItemPairGroupImpl | ( | const ItemGroup & | group, |
| const ItemGroup & | sub_group ) |
Definition at line 178 of file ItemPairGroupImpl.cc.
|
override |
|
overridevirtual |
Increments the reference counter.
Implements Arcane::ISharedReference.
Definition at line 221 of file ItemPairGroupImpl.cc.
References Arcane::SharedReference::addRef().
| bool Arcane::ItemPairGroupImpl::checkNeedUpdate | ( | ) |
Updates the group if necessary.
A group must be updated when it becomes invalid, for example following a call to invalidate().
| true | if the group was updated, |
| false | otherwise. |
Definition at line 330 of file ItemPairGroupImpl.cc.
References m_p.
Referenced by invalidate(), and size().
|
static |
Definition at line 165 of file ItemPairGroupImpl.cc.
| void Arcane::ItemPairGroupImpl::checkValid | ( | ) |
Checks that the group is valid.
Definition at line 311 of file ItemPairGroupImpl.cc.
Referenced by size().
|
overrideprivatevirtual |
Implements Arcane::SharedReference.
Definition at line 212 of file ItemPairGroupImpl.cc.
Definition at line 363 of file ItemPairGroupImpl.cc.
| void Arcane::ItemPairGroupImpl::invalidate | ( | bool | force_recompute | ) |
Invalidates the group.
Definition at line 319 of file ItemPairGroupImpl.cc.
References checkNeedUpdate(), and m_p.
Referenced by size().
| IItemFamily * Arcane::ItemPairGroupImpl::itemFamily | ( | ) | const |
Family to which the group belongs (or 0 if none).
Definition at line 248 of file ItemPairGroupImpl.cc.
References m_p.
| const ItemGroup & Arcane::ItemPairGroupImpl::itemGroup | ( | ) | const |
| eItemKind Arcane::ItemPairGroupImpl::itemKind | ( | ) | const |
Group kind. This is the kind of its elements.
Definition at line 275 of file ItemPairGroupImpl.cc.
References m_p.
| IMesh * Arcane::ItemPairGroupImpl::mesh | ( | ) | const |
Mesh to which the group belongs (0 for the null group).
Definition at line 239 of file ItemPairGroupImpl.cc.
References m_p.
|
inlinevirtual |
Number of references on the group.
Definition at line 58 of file ItemPairGroupImpl.h.
References Arcane::SharedReference::refCount().
| bool Arcane::ItemPairGroupImpl::null | ( | ) | const |
Returns true if the group is null.
Definition at line 266 of file ItemPairGroupImpl.cc.
References m_p.
|
overridevirtual |
Decrements the reference counter.
Implements Arcane::ISharedReference.
Definition at line 230 of file ItemPairGroupImpl.cc.
References Arcane::SharedReference::removeRef().
| void Arcane::ItemPairGroupImpl::setComputeFunctor | ( | IFunctor * | functor | ) |
Definition at line 383 of file ItemPairGroupImpl.cc.
References m_p.
Referenced by changeIds().
|
inlinevirtual |
Definition at line 50 of file ItemPairGroupImpl.h.
| IItemFamily * Arcane::ItemPairGroupImpl::subItemFamily | ( | ) | const |
Family to which the group belongs (or 0 if none).
Definition at line 257 of file ItemPairGroupImpl.cc.
References m_p.
| const ItemGroup & Arcane::ItemPairGroupImpl::subItemGroup | ( | ) | const |
| eItemKind Arcane::ItemPairGroupImpl::subItemKind | ( | ) | const |
Group kind. This is the kind of its elements.
Definition at line 284 of file ItemPairGroupImpl.cc.
References m_p.
Definition at line 373 of file ItemPairGroupImpl.cc.
Definition at line 345 of file ItemPairGroupImpl.cc.
References m_p.
Referenced by changeIds().
Definition at line 354 of file ItemPairGroupImpl.cc.
References m_p.
Referenced by changeIds().
|
private |
Group implementation.
Definition at line 127 of file ItemPairGroupImpl.h.
Referenced by checkNeedUpdate(), invalidate(), itemFamily(), itemGroup(), itemKind(), mesh(), null(), setComputeFunctor(), subItemFamily(), subItemGroup(), subItemKind(), unguardedIndexes(), unguardedLocalIds(), and ~ItemPairGroupImpl().
|
static |
Definition at line 45 of file ItemPairGroupImpl.h.