www.cemf.ir
sortedContactList< valueType, executionSpace, idType > Class Template Reference
+ Inheritance diagram for sortedContactList< valueType, executionSpace, idType >:
+ Collaboration diagram for sortedContactList< valueType, executionSpace, idType >:

Classes

class  TagReFillPairs
 

Public Types

using SortedPairs = sortedPairs< executionSpace, idType >
 
using ValueType = valueType
 
using IdType = typename SortedPairs::IdType
 
using ExecutionSpace = typename SortedPairs::ExecutionSpace
 
using memory_space = typename SortedPairs::memory_space
 
using PairType = typename SortedPairs::PairType
 
using ContainerType = typename SortedPairs::ContainerType
 
- Public Types inherited from sortedPairs< executionSpace, idType >
using UnsortedPairs = unsortedPairs< executionSpace, idType >
 
using IdType = typename UnsortedPairs::IdType
 
using ExecutionSpace = typename UnsortedPairs::ExecutionSpace
 
using memory_space = typename ExecutionSpace::memory_space
 
using PairType = typename UnsortedPairs::PairType
 
using ContainerType = typename UnsortedPairs::ContainerType
 
- Public Types inherited from unsortedPairs< executionSpace, idType >
using UnsortedPairs = unsortedPairs< executionSpace, idType >
 
using IdType = idType
 
using ExecutionSpace = executionSpace
 
using memory_space = typename ExecutionSpace::memory_space
 
using PairType = Pair< idType, idType >
 
using ContainerType = unorderedSet< PairType, ExecutionSpace >
 

Public Member Functions

 TypeInfoNV ("sortedContactList")
 
 sortedContactList (uint32 initialSize=1)
 
bool beforeBroadSearch ()
 
bool afterBroadSearch ()
 
INLINE_FUNCTION_HD ValueType getValue (uint32 idx) const
 
INLINE_FUNCTION_HD void setValue (uint32 idx, const ValueType &val) const
 
INLINE_FUNCTION_HD void operator() (TagReFillPairs, uint32 idx) const
 
- Public Member Functions inherited from sortedPairs< executionSpace, idType >
 TypeInfoNV ("sortedPairs")
 
 sortedPairs (uint32 initialSize=1)
 
bool beforeBroadSearch ()
 
bool afterBroadSearch ()
 
INLINE_FUNCTION_HD PairType getPair (uint32 idx) const
 
INLINE_FUNCTION_HD bool getPair (uint32 idx, PairType &p) const
 
INLINE_FUNCTION_HD bool isValid (uint32 idx) const
 
INLINE_FUNCTION_H uint32 size () const
 
uint32 loopCount () const
 
pairAccessor getPairs () const
 
INLINE_FUNCTION_H void clear ()
 
void prepareSorted ()
 
INLINE_FUNCTION_HD void operator() (TagFillFlag, uint32 i) const
 
INLINE_FUNCTION_HD void operator() (TagFillPairs, uint32 i) const
 
- Public Member Functions inherited from unsortedPairs< executionSpace, idType >
 TypeInfoNV ("unsorderedPairs")
 
 unsortedPairs (uint32 capacity=1)
 
bool beforeBroadSearch ()
 
bool afterBroadSearch ()
 
INLINE_FUNCTION_HD uint32 insert (idType i, idType j) const
 
INLINE_FUNCTION_HD uint32 insert (const PairType &p) const
 
INLINE_FUNCTION_HD PairType getPair (uint32 idx) const
 
INLINE_FUNCTION_HD bool getPair (uint32 idx, PairType &p) const
 
INLINE_FUNCTION_HD uint32 find (const PairType &p) const
 
INLINE_FUNCTION_HD bool isValid (uint32 idx) const
 
INLINE_FUNCTION_HD uint32 capacity () const
 
uint32 loopCount () const
 
INLINE_FUNCTION_H uint32 size () const
 
pairAccessor getPairs () const
 
INLINE_FUNCTION_H void increaseCapacityBy (uint32 len)
 increase the capacity of the container by at-least len the content will be erased. More...
 
INLINE_FUNCTION_H void clear ()
 
const ContainerTypecontainer () const
 

Protected Types

using rpReFillPairs = Kokkos::RangePolicy< ExecutionSpace, Kokkos::Schedule< Kokkos::Static >, Kokkos::IndexType< uint32 >, TagReFillPairs >
 
- Protected Types inherited from sortedPairs< executionSpace, idType >
using rpFillFlag = Kokkos::RangePolicy< ExecutionSpace, Kokkos::Schedule< Kokkos::Static >, Kokkos::IndexType< uint32 >, TagFillFlag >
 
using rpFillPairs = Kokkos::RangePolicy< ExecutionSpace, Kokkos::Schedule< Kokkos::Static >, Kokkos::IndexType< uint32 >, TagFillPairs >
 

Protected Member Functions

void adjustCapacity ()
 

Protected Attributes

ViewType1D< ValueType, ExecutionSpacevalues_
 
uint32 size0_ = 0
 
ViewType1D< PairType, ExecutionSpacesortedPairs0_
 
ViewType1D< ValueType, ExecutionSpacevalues0_
 
- Protected Attributes inherited from sortedPairs< executionSpace, idType >
uint32 size_ = 0
 size of pair list More...
 
ViewType1D< uint32, ExecutionSpaceflags_
 
ViewType1D< PairType, ExecutionSpacesortedPairs_
 
- Protected Attributes inherited from unsortedPairs< executionSpace, idType >
ContainerType container_
 

Detailed Description

template<typename valueType, typename executionSpace, typename idType>
class pFlow::sortedContactList< valueType, executionSpace, idType >

Definition at line 30 of file sortedContactList.hpp.

Member Typedef Documentation

◆ SortedPairs

using SortedPairs = sortedPairs<executionSpace, idType>

Definition at line 36 of file sortedContactList.hpp.

◆ ValueType

using ValueType = valueType

Definition at line 38 of file sortedContactList.hpp.

◆ IdType

using IdType = typename SortedPairs::IdType

Definition at line 40 of file sortedContactList.hpp.

◆ ExecutionSpace

Definition at line 42 of file sortedContactList.hpp.

◆ memory_space

Definition at line 44 of file sortedContactList.hpp.

◆ PairType

using PairType = typename SortedPairs::PairType

Definition at line 46 of file sortedContactList.hpp.

◆ ContainerType

Definition at line 48 of file sortedContactList.hpp.

◆ rpReFillPairs

using rpReFillPairs = Kokkos::RangePolicy< ExecutionSpace, Kokkos::Schedule<Kokkos::Static>, Kokkos::IndexType<uint32>, TagReFillPairs>
protected

Definition at line 77 of file sortedContactList.hpp.

Constructor & Destructor Documentation

◆ sortedContactList()

sortedContactList ( uint32  initialSize = 1)
inlineexplicit

Definition at line 84 of file sortedContactList.hpp.

Member Function Documentation

◆ adjustCapacity()

void adjustCapacity ( )
inlineprotected

Definition at line 63 of file sortedContactList.hpp.

References pFlow::reallocNoInit(), sortedPairs< executionSpace, idType >::size(), and sortedContactList< valueType, executionSpace, idType >::values_.

Referenced by sortedContactList< valueType, executionSpace, idType >::afterBroadSearch().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ TypeInfoNV()

TypeInfoNV ( "sortedContactList< valueType, executionSpace, idType >"  )

◆ beforeBroadSearch()

◆ afterBroadSearch()

◆ getValue()

◆ setValue()

INLINE_FUNCTION_HD void setValue ( uint32  idx,
const ValueType val 
) const
inline

◆ operator()()

Member Data Documentation

◆ values_

◆ size0_

uint32 size0_ = 0
protected

◆ sortedPairs0_

◆ values0_


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