21#include <alien/utils/SafeConstArrayView.h>
39 Item(Int64 uniqueId, Integer owner)
40 : m_unique_id(uniqueId)
44 Int64 uniqueId()
const {
return m_unique_id; }
46 Integer owner()
const {
return m_owner; }
54 IAbstractFamily() =
default;
57 virtual ~IAbstractFamily() =
default;
59 IAbstractFamily(
const IAbstractFamily&) =
delete;
60 IAbstractFamily(IAbstractFamily&&) =
delete;
61 void operator=(
const IAbstractFamily&) =
delete;
62 void operator=(IAbstractFamily&&) =
delete;
64 virtual IAbstractFamily* clone()
const = 0;
73 ArrayView<Integer> localIds, ConstArrayView<Int64> uniqueIds)
const = 0;
virtual SafeConstArrayView< Int32 > allLocalIds() const =0
Local ids of this family members.
virtual void uniqueIdToLocalId(ArrayView< Integer > localIds, ConstArrayView< Int64 > uniqueIds) const =0
virtual SafeConstArrayView< Int64 > uids(ConstArrayView< Integer > localIds) const =0
unique ids of the given local ids.
virtual Int32 maxLocalId() const =0
Max local Id for this family.
virtual SafeConstArrayView< Integer > owners(ConstArrayView< Integer > localIds) const =0
Owners of the given local ids.
virtual Item item(Int32 localId) const =0
Give back an Item from its local id.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --