Go to the documentation of this file.
21 #ifndef __unsortedPairs_hpp__
22 #define __unsortedPairs_hpp__
31 template<
typename executionSpace,
typename idType>
110 return insertResult.index();
117 if(
auto insertResult =
container_.insert(p); insertResult.failed())
120 return insertResult.index();
154 idx != Kokkos::UnorderedMapInvalidIndex )
197 container_.rehash(newCap);
216 #endif //__unsortedPairs_hpp__
INLINE_FUNCTION_HD int32 size() const
INLINE_FUNCTION_HD bool getPair(int32 idx, PairType &p) const
INLINE_FUNCTION_H int32 size() const
typename ExecutionSpace::memory_space memory_space
kPair< idType, idType > PairType
INLINE_FUNCTION_HD int32 capacity() const
INLINE_FUNCTION_HD PairType getPair(int idx) const
INLINE_FUNCTION_HD bool getPair(int32 idx, PairType &pair) const
INLINE_FUNCTION_HD PairType getPair(int32 idx) const
INLINE_FUNCTION_HD bool isValid(int32 idx) const
INLINE_FUNCTION_HD int32 insert(const PairType &p) const
INLINE_FUNCTION_HD int32 loopCount() const
TypeInfoNV("unsorderedPairs")
INLINE_FUNCTION_HD bool isValid(int32 idx) const
Kokkos::UnorderedMap< Key, void, properties... > unorderedSet
#define INLINE_FUNCTION_H
INLINE_FUNCTION_HD int32 insert(idType i, idType j) const
INLINE_FUNCTION_H void clear()
pairAccessor getPairs() const
unorderedSet< PairType, ExecutionSpace > ContainerType
unsortedPairs(int32 capacity=1)
INLINE_FUNCTION_HD int32 find(const PairType &p) const
INLINE_FUNCTION_H void increaseCapacityBy(int32 len)
increase the capacity of the container by at-least len the content will be erased.
const ContainerType & container() const
#define INLINE_FUNCTION_HD
executionSpace ExecutionSpace
typename UnsortedPairs::PairType PairType
Kokkos::pair< T1, T2 > kPair