AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
HookList< T > Class Template Reference

#include "Util.h"

Public Member Functions

HookList< T > & operator+= (T t)
 
HookList< T > & operator-= (T t)
 
std::size_t size ()
 
ListIterator begin ()
 
ListIterator end ()
 

Private Types

typedef std::list< T >::iterator ListIterator
 

Private Attributes

std::list< T > m_list
 

Detailed Description

template<typename T>
class HookList< T >

Member Typedef Documentation

◆ ListIterator

template<typename T >
typedef std::list<T>::iterator HookList< T >::ListIterator
private

Member Function Documentation

◆ begin()

template<typename T >
ListIterator HookList< T >::begin ( )
inline
441 {
442 return m_list.begin();
443 }
std::list< T > m_list
Definition: Util.h:424

References HookList< T >::m_list.

◆ end()

template<typename T >
ListIterator HookList< T >::end ( )
inline
445 {
446 return m_list.end();
447 }

References HookList< T >::m_list.

◆ operator+=()

template<typename T >
HookList< T > & HookList< T >::operator+= ( t)
inline
427 {
428 m_list.push_back(t);
429 return *this;
430 }

References HookList< T >::m_list.

◆ operator-=()

template<typename T >
HookList< T > & HookList< T >::operator-= ( t)
inline
432 {
433 m_list.remove(t);
434 return *this;
435 }

References HookList< T >::m_list.

◆ size()

template<typename T >
std::size_t HookList< T >::size ( )
inline
437 {
438 return m_list.size();
439 }

References HookList< T >::m_list.

Member Data Documentation

◆ m_list

template<typename T >
std::list<T> HookList< T >::m_list
private