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

#include <arcane/core/ItemCompare.h>

Collaboration diagram for Arcane::CompareItemIdsByLevel:

Public Member Functions

bool operator() (const Cell &item1, const Cell &item2) const
bool operator() (const ItemInternal *item1, const ItemInternal *item2) const

Detailed Description

Specific order for Item* to be used in a set. We use the ID, but the primary sort is by level. This ensures, when traversing the set from beginning to end, that lower level elements (parents) are encountered first.

Definition at line 52 of file ItemCompare.h.

Member Function Documentation

◆ operator()() [1/2]

bool Arcane::CompareItemIdsByLevel::operator() ( const Cell & item1,
const Cell & item2 ) const
inline

Definition at line 56 of file ItemCompare.h.

◆ operator()() [2/2]

bool Arcane::CompareItemIdsByLevel::operator() ( const ItemInternal * item1,
const ItemInternal * item2 ) const
inline

Definition at line 65 of file ItemCompare.h.


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