OpenStructure
Loading...
Searching...
No Matches
Data Structures | Public Types | Public Member Functions
SpatialOrganizer< ITEM, VEC > Class Template Reference

#include <spatial_organizer.hh>

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)
 
void Remove (const ITEM &item, const VEC &pos)
 
bool HasWithin (const VEC &pos, Real dist) const
 
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

◆ ItemList

template<class ITEM , class VEC = geom::Vec3>
typedef std::vector<ITEM> ItemList

Definition at line 40 of file spatial_organizer.hh.

Constructor & Destructor Documentation

◆ SpatialOrganizer()

template<class ITEM , class VEC = geom::Vec3>
SpatialOrganizer ( Real  delta)
inline

Definition at line 86 of file spatial_organizer.hh.

Member Function Documentation

◆ Add()

template<class ITEM , class VEC = geom::Vec3>
void Add ( const ITEM &  item,
const VEC &  pos 
)
inline

Definition at line 92 of file spatial_organizer.hh.

◆ Clear()

template<class ITEM , class VEC = geom::Vec3>
void Clear ( )
inline

Definition at line 202 of file spatial_organizer.hh.

◆ FindWithin()

template<class ITEM , class VEC = geom::Vec3>
ItemList FindWithin ( const VEC &  pos,
Real  dist 
) const
inline

Definition at line 168 of file spatial_organizer.hh.

◆ HasWithin()

template<class ITEM , class VEC = geom::Vec3>
bool HasWithin ( const VEC &  pos,
Real  dist 
) const
inline

Definition at line 133 of file spatial_organizer.hh.

◆ Remove() [1/2]

template<class ITEM , class VEC = geom::Vec3>
void Remove ( const ITEM &  item)
inline

Definition at line 104 of file spatial_organizer.hh.

◆ Remove() [2/2]

template<class ITEM , class VEC = geom::Vec3>
void Remove ( const ITEM &  item,
const VEC &  pos 
)
inline

Definition at line 116 of file spatial_organizer.hh.

◆ Swap()

template<class ITEM , class VEC = geom::Vec3>
void Swap ( SpatialOrganizer< ITEM, VEC > &  o)
inline

Definition at line 206 of file spatial_organizer.hh.


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