Luanti 5.16.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 entries, and p().

Referenced by TEST_CASE(), and 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 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 entries.

Referenced by TEST_CASE(), and 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 insert(), p(), and 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

Referenced by insert(), rangeQuery(), and remove().


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