Luanti 5.16.0-dev
Loading...
Searching...
No Matches
UniqueQueue< Value > Class Template Reference

#include <container.h>

Collaboration diagram for UniqueQueue< Value >:

Public Member Functions

bool push_back (const Value &value)
void pop_front ()
const Value & front () const
size_t size () const
bool empty () const

Private Attributes

std::unordered_set< Value > m_set
std::queue< Value > m_queue

Member Function Documentation

◆ empty()

template<typename Value>
bool UniqueQueue< Value >::empty ( ) const
inline

References m_queue.

Referenced by ServerMap::finishBlockMake(), and ServerMap::transformLiquidsLocal().

Here is the caller graph for this function:

◆ front()

template<typename Value>
const Value & UniqueQueue< Value >::front ( ) const
inline

References m_queue.

Referenced by ServerMap::finishBlockMake(), and ServerMap::transformLiquidsLocal().

Here is the caller graph for this function:

◆ pop_front()

template<typename Value>
void UniqueQueue< Value >::pop_front ( )
inline

References m_queue, and m_set.

Referenced by ServerMap::finishBlockMake(), and ServerMap::transformLiquidsLocal().

Here is the caller graph for this function:

◆ push_back()

template<typename Value>
bool UniqueQueue< Value >::push_back ( const Value & value)
inline

References m_queue, and m_set.

Referenced by ServerMap::transformLiquidsLocal(), and Mapgen::updateLiquid().

Here is the caller graph for this function:

◆ size()

template<typename Value>
size_t UniqueQueue< Value >::size ( ) const
inline

References m_queue.

Member Data Documentation

◆ m_queue

template<typename Value>
std::queue<Value> UniqueQueue< Value >::m_queue
private

Referenced by empty(), front(), pop_front(), push_back(), and size().

◆ m_set

template<typename Value>
std::unordered_set<Value> UniqueQueue< Value >::m_set
private

Referenced by pop_front(), and push_back().


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