www.cemf.ir
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 = Pair< idType, idType >
 
using ContainerType = unorderedSet< PairType, ExecutionSpace >
 

Public Member Functions

 TypeInfoNV ("unsortedContactList")
 
 unsortedContactList (uint32 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 (uint32 idx, const ValueType &val) const
 
INLINE_FUNCTION_HD bool setValue (const PairType &p, const ValueType &val) const
 
INLINE_FUNCTION_HD void operator() (TagReFillPairs, uint32 idx) 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 rpFillPairs = Kokkos::RangePolicy< ExecutionSpace, Kokkos::Schedule< Kokkos::Static >, Kokkos::IndexType< uint32 >, 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 30 of file unsortedContactList.hpp.

Member Typedef Documentation

◆ ValueType

using ValueType = valueType

Definition at line 36 of file unsortedContactList.hpp.

◆ UnsortedPairs

using UnsortedPairs = unsortedPairs<executionSpace, idType>

Definition at line 38 of file unsortedContactList.hpp.

◆ IdType

using IdType = typename UnsortedPairs::IdType

Definition at line 40 of file unsortedContactList.hpp.

◆ ExecutionSpace

Definition at line 42 of file unsortedContactList.hpp.

◆ memory_space

using memory_space = typename ExecutionSpace::memory_space

Definition at line 44 of file unsortedContactList.hpp.

◆ PairType

Definition at line 46 of file unsortedContactList.hpp.

◆ ContainerType

Definition at line 48 of file unsortedContactList.hpp.

◆ rpFillPairs

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

Definition at line 77 of file unsortedContactList.hpp.

Constructor & Destructor Documentation

◆ unsortedContactList()

unsortedContactList ( uint32  capacity = 1)
inlineexplicit

Definition at line 84 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 ( uint32  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: