argos::CSpaceHashNative< Element, Updater >::SBucket::SBucketData Struct Reference

An item of data held by each bucket. More...

#include <space_hash_native.h>

Collaboration diagram for argos::CSpaceHashNative< Element, Updater >::SBucket::SBucketData:

Public Member Functions

 SBucketData (Element &c_element, SInt32 n_i, SInt32 n_j, SInt32 n_k, SBucketData *ps_next=NULL)
 Struct constructor. More...
 

Public Attributes

Element * Elem
 The element indexed by this data item. More...
 
SInt32 I
 The space hash cell coordinate corresponding to this data item. More...
 
SInt32 J
 
SInt32 K
 
SBucketDataNext
 Pointer to the next data item in the list, or NULL if this is the last. More...
 

Detailed Description

template<class Element, class Updater>
struct argos::CSpaceHashNative< Element, Updater >::SBucket::SBucketData

An item of data held by each bucket.

These data items are organized into a simple linked list.

Definition at line 32 of file space_hash_native.h.

Constructor & Destructor Documentation

◆ SBucketData()

template<class Element , class Updater >
argos::CSpaceHashNative< Element, Updater >::SBucket::SBucketData::SBucketData ( Element &  c_element,
SInt32  n_i,
SInt32  n_j,
SInt32  n_k,
SBucketData ps_next = NULL 
)
inline

Struct constructor.

Parameters
c_elementThe element to reference.
n_iThe X coordinate of the space hash cell.
n_jThe Y coordinate of the space hash cell.
n_kThe Z coordinate of the space hash cell.

Definition at line 53 of file space_hash_native.h.

Member Data Documentation

◆ Elem

template<class Element , class Updater >
Element* argos::CSpaceHashNative< Element, Updater >::SBucket::SBucketData::Elem

The element indexed by this data item.

Definition at line 36 of file space_hash_native.h.

◆ I

template<class Element , class Updater >
SInt32 argos::CSpaceHashNative< Element, Updater >::SBucket::SBucketData::I

The space hash cell coordinate corresponding to this data item.

Definition at line 40 of file space_hash_native.h.

◆ J

template<class Element , class Updater >
SInt32 argos::CSpaceHashNative< Element, Updater >::SBucket::SBucketData::J

Definition at line 40 of file space_hash_native.h.

◆ K

template<class Element , class Updater >
SInt32 argos::CSpaceHashNative< Element, Updater >::SBucket::SBucketData::K

Definition at line 40 of file space_hash_native.h.

◆ Next

template<class Element , class Updater >
SBucketData* argos::CSpaceHashNative< Element, Updater >::SBucket::SBucketData::Next

Pointer to the next data item in the list, or NULL if this is the last.

Definition at line 44 of file space_hash_native.h.