Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
ItemConnectedEnumerator.h File Reference

Types and macros for iterating over mesh entities connected to another entity. More...

#include "arcane/core/Item.h"
#include "arcane/core/ItemConnectedEnumeratorBase.h"
Include dependency graph for ItemConnectedEnumerator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Arcane::ItemConnectedEnumerator
 Enumerator over a list of entities connected to another. More...
class  Arcane::ItemConnectedEnumeratorT< ItemType >
 Enumerator over a typed list of connected entities of type ItemType. More...

Namespaces

namespace  Arcane
 -- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --

Macros

#define ENUMERATE_CONNECTED_(type, iterator_name, item, connectivity_func)
 Macro to iterate over a list of entities connected to another entity.

Detailed Description

Types and macros for iterating over mesh entities connected to another entity.

Definition in file ItemConnectedEnumerator.h.

Macro Definition Documentation

◆ ENUMERATE_CONNECTED_

#define ENUMERATE_CONNECTED_ ( type,
iterator_name,
item,
connectivity_func )
Value:
for (::Arcane::ItemEnumeratorT<type> iterator_name((item).connectivity_func); iterator_name.hasNext(); ++iterator_name)
constexpr bool hasNext()
True if the end of the enumerator has not been reached (index()<count()).
Enumerator over a typed list of entities of type ItemType.

Macro to iterate over a list of entities connected to another entity.

Warning
Experimental API. Do not use outside of Arcane.
Parameters
typetype of the connected entity (Node, Face, Cell, Edge, Particle, DoF )
iterator_namename of the enumerator
itemname of the entity whose connectivities are desired
connectivity_funcmethod of item to retrieve the connectivity.

Example for iterating over the cell nodes:

Arcane::Cell cell = ...;
ENUMERATE_CONNECTED_(Node,inode,cell,nodes()){
Arcane::Node node(*inode);
info() << "Node local_id=" << node.localId()
}
#define ENUMERATE_CONNECTED_(type, iterator_name, item, connectivity_func)
Macro to iterate over a list of entities connected to another entity.
Cell of a mesh.
Definition Item.h:1300
Node of a mesh.
Definition Item.h:598

Definition at line 154 of file ItemConnectedEnumerator.h.