unsortedContactList< valueType, executionSpace, idType > Class Template Reference
+ Inheritance diagram for unsortedContactList< valueType, executionSpace, idType >:
+ Collaboration diagram for unsortedContactList< valueType, executionSpace, idType >:

Classes

class  TagReFillPairs
 

Public Types

using ValueType = valueType
 
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 = kPair< idType, idType >
 
using ContainerType = unorderedSet< PairType, ExecutionSpace >
 

Public Member Functions

 TypeInfoNV ("unsortedContactList")
 
 unsortedContactList (int32 capacity=1)
 
bool beforeBroadSearch ()
 
bool afterBroadSearch ()
 
INLINE_FUNCTION_HD ValueType getValue (int32 idx) const
 
INLINE_FUNCTION_HD bool getValue (const PairType &p, ValueType &val) const
 
INLINE_FUNCTION_HD void setValue (int32 idx, const ValueType &val) const
 
INLINE_FUNCTION_HD bool setValue (const PairType &p, const ValueType &val) const
 
INLINE_FUNCTION_HD void operator() (TagReFillPairs, int32 idx) const
 
- Public Member Functions inherited from unsortedPairs< executionSpace, idType >
 TypeInfoNV ("unsorderedPairs")
 
 unsortedPairs (int32 capacity=1)
 
bool beforeBroadSearch ()
 
bool afterBroadSearch ()
 
INLINE_FUNCTION_HD int32 insert (idType i, idType j) const
 
INLINE_FUNCTION_HD int32 insert (const PairType &p) const
 
INLINE_FUNCTION_HD PairType getPair (int32 idx) const
 
INLINE_FUNCTION_HD bool getPair (int32 idx, PairType &p) const
 
INLINE_FUNCTION_HD int32 find (const PairType &p) const
 
INLINE_FUNCTION_HD bool isValid (int32 idx) const
 
INLINE_FUNCTION_HD int32 capacity () const
 
int32 loopCount () const
 
INLINE_FUNCTION_H int32 size () const
 
pairAccessor getPairs () const
 
INLINE_FUNCTION_H void increaseCapacityBy (int32 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 rpFillPairs = Kokkos::RangePolicy< ExecutionSpace, Kokkos::Schedule< Kokkos::Static >, Kokkos::IndexType< int32 >, TagReFillPairs >
 

Protected Member Functions

void adjustCapacity ()
 

Protected Attributes

ViewType1D< ValueType, ExecutionSpacevalues_
 storage for keeping the values of the current list More...
 
ContainerType container0_
 storage for keeping pairs from the previous list
More...
 
ViewType1D< ValueType, ExecutionSpacevalues0_
 storage for keeping values from the previous list More...
 
- Protected Attributes inherited from unsortedPairs< executionSpace, idType >
ContainerType container_
 

Detailed Description

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

Definition at line 29 of file unsortedContactList.hpp.

Member Typedef Documentation

◆ ValueType

using ValueType = valueType

Definition at line 35 of file unsortedContactList.hpp.

◆ UnsortedPairs

using UnsortedPairs = unsortedPairs<executionSpace, idType>

Definition at line 37 of file unsortedContactList.hpp.

◆ IdType

using IdType = typename UnsortedPairs::IdType

Definition at line 39 of file unsortedContactList.hpp.

◆ ExecutionSpace

Definition at line 41 of file unsortedContactList.hpp.

◆ memory_space

using memory_space = typename ExecutionSpace::memory_space

Definition at line 43 of file unsortedContactList.hpp.

◆ PairType

Definition at line 45 of file unsortedContactList.hpp.

◆ ContainerType

Definition at line 47 of file unsortedContactList.hpp.

◆ rpFillPairs

using rpFillPairs = Kokkos::RangePolicy< ExecutionSpace, Kokkos::Schedule<Kokkos::Static>, Kokkos::IndexType<int32>, TagReFillPairs>
protected

Definition at line 76 of file unsortedContactList.hpp.

Constructor & Destructor Documentation

◆ unsortedContactList()

unsortedContactList ( int32  capacity = 1)
inline

Definition at line 83 of file unsortedContactList.hpp.

Member Function Documentation

◆ adjustCapacity()

void adjustCapacity ( )
inlineprotected

◆ TypeInfoNV()

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

◆ beforeBroadSearch()

◆ afterBroadSearch()

◆ getValue() [1/2]

INLINE_FUNCTION_HD ValueType getValue ( int32  idx) const
inline

◆ getValue() [2/2]

INLINE_FUNCTION_HD bool getValue ( const PairType p,
ValueType val 
) const
inline

◆ setValue() [1/2]

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

◆ setValue() [2/2]

INLINE_FUNCTION_HD bool setValue ( const PairType p,
const ValueType val 
) const
inline

◆ operator()()

Member Data Documentation

◆ values_

◆ container0_

ContainerType container0_
protected

◆ values0_


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