OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Data Structures | Public Types | Public Member Functions
SpatialOrganizer< ITEM, VEC > Class Template Reference

#include <spatial_organizer.hh>

Data Structures

struct  Entry
struct  Index

Public Types

typedef std::vector< ITEM > ItemList

Public Member Functions

 SpatialOrganizer (Real delta)
void Add (const ITEM &item, const VEC &pos)
void Remove (const ITEM &item)
ITEM FindClosest (const VEC &pos)
ItemList FindWithin (const VEC &pos, Real dist) const
void Clear ()
void Swap (SpatialOrganizer &o)

Detailed Description

template<class ITEM, class VEC = geom::Vec3>
class ost::mol::SpatialOrganizer< ITEM, VEC >

spatial organizer

Definition at line 38 of file spatial_organizer.hh.


Member Typedef Documentation

typedef std::vector<ITEM> ItemList

Definition at line 40 of file spatial_organizer.hh.


Constructor & Destructor Documentation

SpatialOrganizer ( Real  delta)
inline

Definition at line 69 of file spatial_organizer.hh.


Member Function Documentation

void Add ( const ITEM &  item,
const VEC &  pos 
)
inline

Definition at line 75 of file spatial_organizer.hh.

void Clear ( )
inline

Definition at line 176 of file spatial_organizer.hh.

ITEM FindClosest ( const VEC &  pos)
inline

Definition at line 92 of file spatial_organizer.hh.

ItemList FindWithin ( const VEC &  pos,
Real  dist 
) const
inline

Definition at line 142 of file spatial_organizer.hh.

void Remove ( const ITEM &  item)
inline

Definition at line 80 of file spatial_organizer.hh.

void Swap ( SpatialOrganizer< ITEM, VEC > &  o)
inline

Definition at line 180 of file spatial_organizer.hh.


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