AnyItem family (flyweight pattern) Aggregation of groups to describe variables / partial variables Copy by reference. More...
#include <arcane/core/anyitem/AnyItemFamily.h>
Public Member Functions | |
| Family (const Family &f) | |
| bool | operator== (const Family &f) const |
| Comparisons. | |
| bool | operator!= (const Family &f) const |
| Family & | operator= (const Family &f) |
| Family & | 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 () |
| 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. | |
| FamilyInternal * | internal () const |
Private Attributes | |
| SharedPtrT< FamilyInternal > | m_internal |
| Internal family. | |
AnyItem family (flyweight pattern) Aggregation of groups to describe variables / partial variables Copy by reference.
Definition at line 239 of file AnyItemFamily.h.
|
inline |
Definition at line 243 of file AnyItemFamily.h.
|
inline |
Definition at line 246 of file AnyItemFamily.h.
|
inline |
Definition at line 249 of file AnyItemFamily.h.
|
inline |
|
inline |
|
inline |
Returns true if the family contains the group.
Definition at line 271 of file AnyItemFamily.h.
References group(), and m_internal.
Position in the family of the first localId of this group.
Definition at line 295 of file AnyItemFamily.h.
References group(), and m_internal.
Accessor for the i-th group of the family.
Definition at line 321 of file AnyItemFamily.h.
References m_internal.
Referenced by contains(), firstLocalId(), groupIndex(), and isPartial().
Position of the group in the family.
Definition at line 289 of file AnyItemFamily.h.
References group(), and m_internal.
|
inline |
Size of the family, i.e., number of groups.
Definition at line 308 of file AnyItemFamily.h.
References m_internal.
|
inline |
Definition at line 344 of file AnyItemFamily.h.
|
inline |
Returns true if the group is associated with a partial variable.
Definition at line 277 of file AnyItemFamily.h.
References group(), and m_internal.
|
inline |
Returns the concrete item associated with this AnyItem.
Definition at line 302 of file AnyItemFamily.h.
References m_internal.
|
inline |
Number of items in this family.
Sum of the size of all groups composing it
Definition at line 315 of file AnyItemFamily.h.
References m_internal.
|
inline |
Definition at line 255 of file AnyItemFamily.h.
|
inline |
|
inline |
Definition at line 257 of file AnyItemFamily.h.
|
inline |
|
inline |
|
inline |
|
private |
Internal family.
Definition at line 352 of file AnyItemFamily.h.
Referenced by allItems(), clear(), contains(), firstLocalId(), group(), groupIndex(), groupSize(), isPartial(), item(), maxLocalId(), operator<<(), operator==(), registerObserver(), and removeObserver().