AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::ContainerInserter< Type > Class Template Reference

#include "GridNotifiers.h"

Protected Member Functions

template<typename T >
 ContainerInserter (T &ref_)
 
void Insert (Type type)
 

Private Types

using InserterType = void(*)(void *, Type &&)
 

Static Private Member Functions

template<typename T >
static void InserterOf (void *ref, Type &&type)
 

Private Attributes

void * ref
 
InserterType inserter
 

Detailed Description

template<typename Type>
class Acore::ContainerInserter< Type >

Member Typedef Documentation

◆ InserterType

template<typename Type >
using Acore::ContainerInserter< Type >::InserterType = void(*)(void*, Type&&)
private

Constructor & Destructor Documentation

◆ ContainerInserter()

template<typename Type >
template<typename T >
Acore::ContainerInserter< Type >::ContainerInserter ( T &  ref_)
inlineprotected
189: ref(&ref_), inserter(&InserterOf<T>) { }
void * ref
Definition: GridNotifiers.h:177
InserterType inserter
Definition: GridNotifiers.h:178

Member Function Documentation

◆ Insert()

template<typename Type >
void Acore::ContainerInserter< Type >::Insert ( Type  type)
inlineprotected

◆ InserterOf()

template<typename Type >
template<typename T >
static void Acore::ContainerInserter< Type >::InserterOf ( void *  ref,
Type &&  type 
)
inlinestaticprivate
183 {
184 static_cast<T*>(ref)->push_back(std::move(type));
185 }

References Acore::ContainerInserter< Type >::ref.

Member Data Documentation

◆ inserter

template<typename Type >
InserterType Acore::ContainerInserter< Type >::inserter
private

◆ ref

template<typename Type >
void* Acore::ContainerInserter< Type >::ref
private