![]() |
threaddb
2.0b
A file mapped memory container extension
|
Internal representation of the rgrid structure. More...
#include <threaddbRGrid.h>
Public Types | |
typedef Box< C, D > | Box_ |
typedef TaskInfo< L > | TaskInfo_ |
Public Member Functions | |
rgrid_ (const Box_ &rBox_p, uint32_t Depth_p, tdb::database &rDb_p) | |
~rgrid_ () | |
const Box_ & | bounding_box () const |
Protected Member Functions | |
rgrid_ () | |
void | add (const Box_ &rBox_p, const T &rData_p, tdb::database &rDb_p) |
Routine to add a new element to the rgrid. More... | |
void | query (const Box_ &rBox_p, Functor< T > &rCallback_p, tdb::database &rDb_p, uint8_t Threads_p) |
void | recurse (const Box_ &rBox_p, Functor< T > &rCallback_p, tdb::database &rDb_p, std::atomic< uint16_t > *pTaskCount_p, std::mutex *pThreadMutex_p, std::vector< TaskInfo_ * > *pTaskHeap_p) const |
Recursion into next level of the rgrid cells. More... | |
Static Protected Member Functions | |
static void | loop (const Box_ &rBox_p, Functor< T > *pCallback_p, tdb::database *pDb_p, bool Continue_p, TaskInfo_ *pTaskInfo_p, std::atomic< uint16_t > *pTaskCount_p, std::mutex *pThreadMutex_p, std::vector< TaskInfo_ * > *pTaskHeap_p, bool *pThreadExit_p) |
Main query loop for parallel thread execution. More... | |
Protected Attributes | |
friend | L |
uint64_t | m_PackageID |
uint32_t | m_Depth |
std::atomic< size_t > | m_Size |
std::atomic< size_t > | m_MaxShapeSize |
Cells< T, C, D, L > | m_Subcells |
Friends | |
class | rgrid< T, C, D, L > |
std::ostream & | operator<< (std::ostream &os, const rgrid_ &R) |
std::istream & | operator>> (std::istream &is, rgrid_ &R) |
Internal representation of the rgrid structure.
typedef Box<C, D> tdb::rgrid_< T, C, D, L >::Box_ |
typedef TaskInfo<L> tdb::rgrid_< T, C, D, L >::TaskInfo_ |
|
inline |
|
inline |
|
inlineprotected |
|
protected |
Routine to add a new element to the rgrid.
|
inline |
|
staticprotected |
Main query loop for parallel thread execution.
|
protected |
|
protected |
Recursion into next level of the rgrid cells.
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |