30 #ifndef _LibDEM_NeighbourManager_H
31 #define _LibDEM_NeighbourManager_H
49 void add(T* item_ptr);
71 #include "GranOO3/DEM/NeighbourManager.tpp"
a util class for representing neighbouring (mainly DEM::Element) items
Definition: NeighbourManager.hpp:41
size_t number() const
get the number of neighbours
NeighbourManager & operator=(const NeighbourManager &)=delete
void add(T &item)
add the item as a neighbour
void erase(T &item)
erase the passed item from the neighbouring list
NeighbourManager(const NeighbourManager &)=delete
Core::SetOfBase< T > & set()
get the neighbouring list
T & _item
a reference to the main item which the neighbouring list is expected
Definition: NeighbourManager.hpp:63
void clear()
clear the neighouring list
void add(T *item_ptr)
similar as NeighbourManager::add(T& item) with a pointer instead of a reference
NeighbourManager()=delete
void erase(T *item_ptr)
similar as NeighbourManager::erase(T& item) with a pointer instead of a reference
const Core::SetOfBase< T > & set() const
get the neighbouring list
NeighbourManager(T &item)
constructor
Core::SetOfBase< T > _neighbour
the neighbouring list
Definition: NeighbourManager.hpp:64
~NeighbourManager()
destructor
Definition: Common.hpp:198