Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::ItemPairGroupBuilder Class Reference

Construction of the entity lists for the ItemPairGroup. More...

#include <arcane/core/ItemPairGroupBuilder.h>

Collaboration diagram for Arcane::ItemPairGroupBuilder:

Public Member Functions

 ItemPairGroupBuilder (const ItemPairGroup &group)
const ItemPairGroupgroup ()
 Associated group.
void addNextItem (Int32ConstArrayView sub_items)
 Adds the entities sub_items to.

Private Attributes

ItemPairGroup m_group
Int64 m_index = 0
Array< Int64 > & m_unguarded_indexes
Array< Int32 > & m_unguarded_local_ids

Detailed Description

Construction of the entity lists for the ItemPairGroup.

This class is used when recalculating the entities of an ItemPairGroup.

The user code must call the addNextItem() method for each entity of group().itemGroup() by specifying the localId() of the added entities. For example:

void functor(ItemPairGroupBuilder& builder)
{
Int32Array local_ids;
ENUMERATE_ITEM(iitem.builder.group().itemGroup()){
local_ids.clear();
// Calculates the entities connected to \a iitem and adds them to \a local_ids.
...
builder.addNextItem(local_ids);
}
}
#define ENUMERATE_ITEM(name, group)
Generic enumerator for a node group.
void clear()
Removes the elements from the array.
ItemPairGroupBuilder(const ItemPairGroup &group)
void addNextItem(Int32ConstArrayView sub_items)
Adds the entities sub_items to.
Array< Int32 > Int32Array
Dynamic one-dimensional array of 32-bit integers.
Definition UtilsTypes.h:127

For a more complete usage example, refer to the ItemPairGroup documentation.

Definition at line 52 of file ItemPairGroupBuilder.h.

Constructor & Destructor Documentation

◆ ItemPairGroupBuilder()

Arcane::ItemPairGroupBuilder::ItemPairGroupBuilder ( const ItemPairGroup & group)
explicit

Definition at line 27 of file ItemPairGroupBuilder.cc.

References group().

Here is the call graph for this function:

◆ ~ItemPairGroupBuilder()

Arcane::ItemPairGroupBuilder::~ItemPairGroupBuilder ( )

Definition at line 42 of file ItemPairGroupBuilder.cc.

Member Function Documentation

◆ addNextItem()

void Arcane::ItemPairGroupBuilder::addNextItem ( Int32ConstArrayView sub_items)

Adds the entities sub_items to.

Definition at line 50 of file ItemPairGroupBuilder.cc.

◆ group()

const ItemPairGroup & Arcane::ItemPairGroupBuilder::group ( )
inline

Associated group.

Definition at line 63 of file ItemPairGroupBuilder.h.

Referenced by ItemPairGroupBuilder().

Here is the caller graph for this function:

Member Data Documentation

◆ m_group

ItemPairGroup Arcane::ItemPairGroupBuilder::m_group
private

Definition at line 69 of file ItemPairGroupBuilder.h.

◆ m_index

Int64 Arcane::ItemPairGroupBuilder::m_index = 0
private

Definition at line 70 of file ItemPairGroupBuilder.h.

◆ m_unguarded_indexes

Array<Int64>& Arcane::ItemPairGroupBuilder::m_unguarded_indexes
private

Definition at line 71 of file ItemPairGroupBuilder.h.

◆ m_unguarded_local_ids

Array<Int32>& Arcane::ItemPairGroupBuilder::m_unguarded_local_ids
private

Definition at line 72 of file ItemPairGroupBuilder.h.


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