AnyItem internal family Aggregation of groups to describe variables / partial variables. More...
#include <arcane/core/anyitem/AnyItemFamily.h>
Public Member Functions | |
| FamilyInternal & | operator<< (GroupBuilder builder) |
| Add a group to the family. | |
| bool | contains (const ItemGroup &group) const |
| Returns true if the family contains the group. | |
| bool | isPartial (const ItemGroup &group) const |
| Returns true if the group is associated with a partial variable. | |
| Group | allItems () const |
| Group of all items. | |
| Integer | groupIndex (const ItemGroup &group) const |
| Position of the group in the family. | |
| Integer | firstLocalId (const ItemGroup &group) const |
| Position in the family of the first localId of this group. | |
| template<typename AnyItemT> | |
| Item | item (const AnyItemT &any_item) const |
| Returns the concrete item associated with this AnyItem. | |
| Integer | groupSize () const |
| Size of the family, i.e., number of groups. | |
| Integer | maxLocalId () const |
| Number of items in this family. | |
| ItemGroup | group (Integer i) const |
| Accessor for the i-th group of the family. | |
| void | clear () |
| Clear the family. | |
| void | registerObserver (IFamilyObserver &observer) const |
| Register an observer. | |
| void | removeObserver (IFamilyObserver &observer) const |
| Remove an observer. | |
| const Private::GroupIndexInfo * | findGroupInfo (ItemGroup agroup) |
Private Types | |
| typedef std::set< IFamilyObserver * > | FamilyObservers |
Private Member Functions | |
| void | _notifyFamilyIsInvalidate () |
| void | _notifyFamilyIsIncreased () |
| void | _notifyGroupHasChanged () |
Private Attributes | |
| Private::GroupIndexMapping | m_groups |
| Container of groups. | |
| Integer | m_max_local_id |
| Maximum identifier (equivalent to the size of the family). | |
| FamilyObservers | m_observers |
| So that objects built on the family cannot modify it. | |
AnyItem internal family Aggregation of groups to describe variables / partial variables.
Definition at line 44 of file AnyItemFamily.h.
|
private |
Definition at line 48 of file AnyItemFamily.h.
|
inline |
Definition at line 52 of file AnyItemFamily.h.
|
inline |
Definition at line 55 of file AnyItemFamily.h.
|
inlineprivate |
Definition at line 208 of file AnyItemFamily.h.
|
inlineprivate |
Definition at line 202 of file AnyItemFamily.h.
|
inlineprivate |
Definition at line 214 of file AnyItemFamily.h.
|
inline |
|
inline |
Clear the family.
Definition at line 162 of file AnyItemFamily.h.
References m_groups, and m_max_local_id.
|
inline |
Returns true if the family contains the group.
Definition at line 87 of file AnyItemFamily.h.
References group(), and m_groups.
|
inline |
Definition at line 195 of file AnyItemFamily.h.
Position in the family of the first localId of this group.
Definition at line 118 of file AnyItemFamily.h.
References ARCANE_FATAL, group(), and m_groups.
Accessor for the i-th group of the family.
Definition at line 156 of file AnyItemFamily.h.
References group(), and m_groups.
Referenced by contains(), firstLocalId(), group(), groupIndex(), isPartial(), item(), and operator<<().
Position of the group in the family.
Definition at line 109 of file AnyItemFamily.h.
References group(), and m_groups.
|
inline |
Size of the family, i.e., number of groups.
Definition at line 143 of file AnyItemFamily.h.
References m_groups.
|
inline |
Returns true if the group is associated with a partial variable.
Definition at line 93 of file AnyItemFamily.h.
References group(), and m_groups.
|
inline |
|
inline |
Number of items in this family.
Sum of the size of all groups composing it
Definition at line 150 of file AnyItemFamily.h.
References m_max_local_id.
|
inline |
Add a group to the family.
Definition at line 63 of file AnyItemFamily.h.
References Arcane::ItemGroupImpl::attachObserver(), group(), m_groups, m_max_local_id, and Arcane::newItemGroupObserverT().
|
inline |
|
inline |
|
private |
Container of groups.
Definition at line 222 of file AnyItemFamily.h.
Referenced by allItems(), clear(), contains(), firstLocalId(), group(), groupIndex(), groupSize(), isPartial(), item(), and operator<<().
|
private |
Maximum identifier (equivalent to the size of the family).
Definition at line 225 of file AnyItemFamily.h.
Referenced by clear(), maxLocalId(), and operator<<().
|
mutableprivate |
So that objects built on the family cannot modify it.
Definition at line 228 of file AnyItemFamily.h.
Referenced by registerObserver(), and removeObserver().