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

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

#include <arcane/core/ItemPairGroupBuilder.h>

Public Member Functions

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

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.
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.

◆ ~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.


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