Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
ObjectVector< Dim, Component, Id > Class Template Reference
+ Collaboration diagram for ObjectVector< Dim, Component, Id >:

Classes

struct  Entry
 

Public Types

using Point = std::array<Component, Dim>
 

Public Member Functions

void insert (const Point &p, Id id)
 
void remove (Id id)
 
void update (const Point &p, Id id)
 
template<typename F >
void rangeQuery (const Point &min, const Point &max, const F &cb)
 

Private Attributes

std::vector< Entryentries
 

Member Typedef Documentation

◆ Point

template<uint8_t Dim, typename Component , typename Id >
using ObjectVector< Dim, Component, Id >::Point = std::array<Component, Dim>

Member Function Documentation

◆ insert()

template<uint8_t Dim, typename Component , typename Id >
void ObjectVector< Dim, Component, Id >::insert ( const Point & p,
Id id )
inline

References ObjectVector< Dim, Component, Id >::entries, and p().

Referenced by TEST_CASE(), and ObjectVector< Dim, Component, Id >::update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rangeQuery()

template<uint8_t Dim, typename Component , typename Id >
template<typename F >
void ObjectVector< Dim, Component, Id >::rangeQuery ( const Point & min,
const Point & max,
const F & cb )
inline

References ObjectVector< Dim, Component, Id >::entries.

Referenced by TEST_CASE().

+ Here is the caller graph for this function:

◆ remove()

template<uint8_t Dim, typename Component , typename Id >
void ObjectVector< Dim, Component, Id >::remove ( Id id)
inline

References ObjectVector< Dim, Component, Id >::entries.

Referenced by TEST_CASE(), and ObjectVector< Dim, Component, Id >::update().

+ Here is the caller graph for this function:

◆ update()

template<uint8_t Dim, typename Component , typename Id >
void ObjectVector< Dim, Component, Id >::update ( const Point & p,
Id id )
inline

References ObjectVector< Dim, Component, Id >::insert(), p(), and ObjectVector< Dim, Component, Id >::remove().

Referenced by TEST_CASE().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ entries

template<uint8_t Dim, typename Component , typename Id >
std::vector<Entry> ObjectVector< Dim, Component, Id >::entries
private

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