OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
#include <HashPairBuilder.h>
Public Types | |
enum | { Dim = PBase::Dim } |
typedef PBase::Position_t | Position_t |
Public Member Functions | |
HashPairBuilder (PBase &p) | |
template<class Pred , class OP > | |
void | for_each (const Pred &pred, const OP &op) |
Private Member Functions | |
template<class Pred > | |
int | sum (int i, const Pred &pred, int f[], int offset[]) |
template<class Pred > | |
int | get_bucket_id (int i, const Pred &pred) |
int | mod (int x, int m) |
Private Attributes | |
PBase & | particles |
Vektor< int, 3 > | buckets_per_dim |
Vektor< double, 3 > | rmin_m |
Vektor< double, 3 > | rmax_m |
Definition at line 10 of file HashPairBuilder.h.
typedef PBase::Position_t HashPairBuilder< PBase >::Position_t |
Definition at line 14 of file HashPairBuilder.h.
anonymous enum |
Enumerator | |
---|---|
Dim |
Definition at line 13 of file HashPairBuilder.h.
|
inline |
Definition at line 16 of file HashPairBuilder.h.
|
inline |
Definition at line 19 of file HashPairBuilder.h.
References bounds(), HashPairBuilder< PBase >::buckets_per_dim, ceil(), endl(), HashPairBuilder< PBase >::get_bucket_id(), max(), Hypervolume::n, HashPairBuilder< PBase >::particles, HashPairBuilder< PBase >::rmax_m, and HashPairBuilder< PBase >::rmin_m.
|
inlineprivate |
Definition at line 202 of file HashPairBuilder.h.
References HashPairBuilder< PBase >::buckets_per_dim, HashPairBuilder< PBase >::particles, and HashPairBuilder< PBase >::rmin_m.
Referenced by HashPairBuilder< PBase >::for_each().
|
inlineprivate |
Definition at line 212 of file HashPairBuilder.h.
Referenced by HashPairBuilder< PBase >::sum().
|
inlineprivate |
Definition at line 183 of file HashPairBuilder.h.
References HashPairBuilder< PBase >::Dim, endl(), floor(), HashPairBuilder< PBase >::mod(), and HashPairBuilder< PBase >::particles.
|
private |
Definition at line 221 of file HashPairBuilder.h.
Referenced by HashPairBuilder< PBase >::for_each(), and HashPairBuilder< PBase >::get_bucket_id().
|
private |
Definition at line 220 of file HashPairBuilder.h.
Referenced by HashPairBuilder< PBase >::for_each(), HashPairBuilder< PBase >::get_bucket_id(), and HashPairBuilder< PBase >::sum().
|
private |
Definition at line 224 of file HashPairBuilder.h.
Referenced by HashPairBuilder< PBase >::for_each().
|
private |
Definition at line 223 of file HashPairBuilder.h.
Referenced by HashPairBuilder< PBase >::for_each(), and HashPairBuilder< PBase >::get_bucket_id().