Alien  1.3.0
Developer documentation
Loading...
Searching...
No Matches
Alien::DefaultAbstractFamily Class Reference

#include <core/alien/index_manager/functional/DefaultAbstractFamily.h>

Inheritance diagram for Alien::DefaultAbstractFamily:
Collaboration diagram for Alien::DefaultAbstractFamily:

Public Member Functions

 DefaultAbstractFamily (const DefaultAbstractFamily &family)
 DefaultAbstractFamily (ConstArrayView< Int64 > uniqueIds, ConstArrayView< Integer > owners, IMessagePassingMng *parallel_mng)
 DefaultAbstractFamily (ConstArrayView< Int64 > uniqueIds, IMessagePassingMng *parallel_mng)
IAbstractFamily * clone () const override
Int32 maxLocalId () const override
 Max local Id for this family.
void uniqueIdToLocalId (ArrayView< Int32 > localIds, ConstArrayView< Int64 > uniqueIds) const override
IAbstractFamily::Item item (Int32 localId) const override
 Give back an Item from its local id.
SafeConstArrayView< Integer > owners (ConstArrayView< Int32 > localIds) const override
SafeConstArrayView< Int64 > uids (ConstArrayView< Int32 > localIds) const override
SafeConstArrayView< Int32 > allLocalIds () const override
 Local ids of this family members.
Public Member Functions inherited from Alien::IAbstractFamily
 IAbstractFamily (const IAbstractFamily &)=delete
 IAbstractFamily (IAbstractFamily &&)=delete
void operator= (const IAbstractFamily &)=delete
void operator= (IAbstractFamily &&)=delete
virtual void uniqueIdToLocalId (ArrayView< Integer > localIds, ConstArrayView< Int64 > uniqueIds) const =0
virtual SafeConstArrayView< Integer > owners (ConstArrayView< Integer > localIds) const =0
 Owners of the given local ids.
virtual SafeConstArrayView< Int64 > uids (ConstArrayView< Integer > localIds) const =0
 unique ids of the given local ids.

Private Attributes

IMessagePassingMng * m_parallel_mng
UniqueArray< Int64 > m_unique_ids
UniqueArray< Integer > m_owners

Detailed Description

This module relies on the fact that local_id of the item i is also i.

Definition at line 34 of file DefaultAbstractFamily.h.

Constructor & Destructor Documentation

◆ DefaultAbstractFamily() [1/3]

Alien::DefaultAbstractFamily::DefaultAbstractFamily ( const DefaultAbstractFamily & family)

Definition at line 34 of file DefaultAbstractFamily.cc.

◆ DefaultAbstractFamily() [2/3]

Alien::DefaultAbstractFamily::DefaultAbstractFamily ( ConstArrayView< Int64 > uniqueIds,
ConstArrayView< Integer > owners,
IMessagePassingMng * parallel_mng )

Build a family for locally known unique ids.

Parameters
uniqueIdsArray of locally known uniqueIds.
ownersArray of item owners
parallel_mngParallel Manager.

Definition at line 42 of file DefaultAbstractFamily.cc.

◆ DefaultAbstractFamily() [3/3]

Alien::DefaultAbstractFamily::DefaultAbstractFamily ( ConstArrayView< Int64 > uniqueIds,
IMessagePassingMng * parallel_mng )

Build a family for locally owned unique ids.

Parameters
uniqueIdsArray of locally owned uniqueIds.
parallel_mngParallel Manager.

Definition at line 53 of file DefaultAbstractFamily.cc.

Member Function Documentation

◆ allLocalIds()

SafeConstArrayView< Int32 > Alien::DefaultAbstractFamily::allLocalIds ( ) const
overridevirtual

Local ids of this family members.

Implements Alien::IAbstractFamily.

Definition at line 153 of file DefaultAbstractFamily.cc.

◆ clone()

IAbstractFamily * Alien::DefaultAbstractFamily::clone ( ) const
inlineoverridevirtual

Implements Alien::IAbstractFamily.

Definition at line 60 of file DefaultAbstractFamily.h.

◆ item()

IAbstractFamily::Item Alien::DefaultAbstractFamily::item ( Int32 localId) const
overridevirtual

Give back an Item from its local id.

Implements Alien::IAbstractFamily.

Definition at line 119 of file DefaultAbstractFamily.cc.

◆ maxLocalId()

Int32 Alien::DefaultAbstractFamily::maxLocalId ( ) const
inlineoverridevirtual

Max local Id for this family.

Implements Alien::IAbstractFamily.

Definition at line 63 of file DefaultAbstractFamily.h.

◆ owners()

SafeConstArrayView< Integer > Alien::DefaultAbstractFamily::owners ( ConstArrayView< Int32 > localIds) const
override

Definition at line 127 of file DefaultAbstractFamily.cc.

◆ uids()

SafeConstArrayView< Int64 > Alien::DefaultAbstractFamily::uids ( ConstArrayView< Int32 > localIds) const
override

Definition at line 140 of file DefaultAbstractFamily.cc.

◆ uniqueIdToLocalId()

void Alien::DefaultAbstractFamily::uniqueIdToLocalId ( ArrayView< Int32 > localIds,
ConstArrayView< Int64 > uniqueIds ) const
override

Definition at line 100 of file DefaultAbstractFamily.cc.

Member Data Documentation

◆ m_owners

UniqueArray<Integer> Alien::DefaultAbstractFamily::m_owners
private

Definition at line 79 of file DefaultAbstractFamily.h.

◆ m_parallel_mng

IMessagePassingMng* Alien::DefaultAbstractFamily::m_parallel_mng
private

Definition at line 77 of file DefaultAbstractFamily.h.

◆ m_unique_ids

UniqueArray<Int64> Alien::DefaultAbstractFamily::m_unique_ids
private

Definition at line 78 of file DefaultAbstractFamily.h.


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