Cuberite
A lightweight, fast and extensible game server for Minecraft
Static Public Member Functions | List of all members
cQueueFuncs< T > Struct Template Reference

This empty struct allows for the callback functions to be inlined. More...

#include <Queue.h>

Static Public Member Functions

static void Combine (T &a_existing, const T &a_new)
 Called when an Item is inserted with EnqueueItemIfNotPresent and there is another equal value already inserted. More...
 
static void Delete (T)
 Called when an Item is deleted from the queue without being returned. More...
 

Detailed Description

template<class T>
struct cQueueFuncs< T >

This empty struct allows for the callback functions to be inlined.

Definition at line 23 of file Queue.h.

Member Function Documentation

◆ Combine()

template<class T >
static void cQueueFuncs< T >::Combine ( T &  a_existing,
const T &  a_new 
)
inlinestatic

Called when an Item is inserted with EnqueueItemIfNotPresent and there is another equal value already inserted.

Definition at line 31 of file Queue.h.

◆ Delete()

template<class T >
static void cQueueFuncs< T >::Delete ( )
inlinestatic

Called when an Item is deleted from the queue without being returned.

Definition at line 28 of file Queue.h.


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