OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
SpaceIndex< T > Class Template Referencefinal

#include <spaceindex.h>

Inheritance diagram for SpaceIndex< T >:
BaseSpaceIndex

Public Member Functions

 SpaceIndex ()=default
 
void add (T *v)
 
void del (T *v)
 
bool hasObject (const T *v) const
 
T ** begin ()
 
T ** end ()
 
T *const * begin () const
 
T *const * end () const
 
template<class Func >
void find (const Tempest::Vec3 &p, float R, const Func &f)
 
template<class F >
void parallelFor (F func)
 
- Public Member Functions inherited from BaseSpaceIndex
void clear ()
 
size_t size () const
 
void invalidate ()
 

Additional Inherited Members

- Protected Member Functions inherited from BaseSpaceIndex
 BaseSpaceIndex ()=default
 
void add (Vob *v)
 
void del (Vob *v)
 
bool hasObject (const Vob *v) const
 
void find (const Tempest::Vec3 &p, float R, const void *ctx, void(*func)(const void *, Vob *))
 
template<class Func >
void parallelFor (Func f)
 
Vob ** data ()
 
Vob *const * data () const
 

Detailed Description

template<class T>
class SpaceIndex< T >

Definition at line 50 of file spaceindex.h.

Constructor & Destructor Documentation

◆ SpaceIndex()

template<class T >
SpaceIndex< T >::SpaceIndex ( )
default

Member Function Documentation

◆ add()

template<class T >
void SpaceIndex< T >::add ( T *  v)
inline

Definition at line 54 of file spaceindex.h.

◆ begin() [1/2]

template<class T >
T ** SpaceIndex< T >::begin ( )
inline

Definition at line 66 of file spaceindex.h.

◆ begin() [2/2]

template<class T >
T *const * SpaceIndex< T >::begin ( ) const
inline

Definition at line 69 of file spaceindex.h.

◆ del()

template<class T >
void SpaceIndex< T >::del ( T *  v)
inline

Definition at line 58 of file spaceindex.h.

◆ end() [1/2]

template<class T >
T ** SpaceIndex< T >::end ( )
inline

Definition at line 67 of file spaceindex.h.

◆ end() [2/2]

template<class T >
T *const * SpaceIndex< T >::end ( ) const
inline

Definition at line 70 of file spaceindex.h.

◆ find()

template<class T >
template<class Func >
void SpaceIndex< T >::find ( const Tempest::Vec3 &  p,
float  R,
const Func &  f 
)
inline

Definition at line 73 of file spaceindex.h.

◆ hasObject()

template<class T >
bool SpaceIndex< T >::hasObject ( const T *  v) const
inline

Definition at line 62 of file spaceindex.h.

◆ parallelFor()

template<class T >
template<class F >
void SpaceIndex< T >::parallelFor ( func)
inline

Definition at line 81 of file spaceindex.h.


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