Zth (libzth)
Loading...
Searching...
No Matches
zth::Hook< T > Class Template Reference

#include <list.h>

Public Types

typedef T type
 
typedef Hookable< typehookable_type
 
typedef hookable_type::function_type function_type
 
typedef hookable_type::arg_type arg_type
 

Public Member Functions

 Hook () noexcept
 
 ~Hook () noexcept
 
void add (function_type f, arg_type a=arg_type()) noexcept
 
void remove (arg_type a) noexcept
 
void operator() (type x) const noexcept
 
void once (type x) noexcept
 
void clear () noexcept
 

Detailed Description

template<typename T>
class zth::Hook< T >

Definition at line 771 of file list.h.

Member Typedef Documentation

◆ arg_type

template<typename T >
typedef hookable_type::arg_type zth::Hook< T >::arg_type

Definition at line 778 of file list.h.

◆ function_type

template<typename T >
typedef hookable_type::function_type zth::Hook< T >::function_type

Definition at line 777 of file list.h.

◆ hookable_type

template<typename T >
typedef Hookable<type> zth::Hook< T >::hookable_type

Definition at line 776 of file list.h.

◆ type

template<typename T >
typedef T zth::Hook< T >::type

Definition at line 775 of file list.h.

Constructor & Destructor Documentation

◆ Hook()

template<typename T >
zth::Hook< T >::Hook ( )
inlinenoexcept

Definition at line 780 of file list.h.

◆ ~Hook()

template<typename T >
zth::Hook< T >::~Hook ( )
inlinenoexcept

Definition at line 784 of file list.h.

Member Function Documentation

◆ add()

template<typename T >
void zth::Hook< T >::add ( function_type  f,
arg_type  a = arg_type() 
)
inlinenoexcept

Definition at line 789 of file list.h.

◆ clear()

template<typename T >
void zth::Hook< T >::clear ( )
inlinenoexcept

Definition at line 842 of file list.h.

◆ once()

template<typename T >
void zth::Hook< T >::once ( type  x)
inlinenoexcept

Definition at line 830 of file list.h.

◆ operator()()

template<typename T >
void zth::Hook< T >::operator() ( type  x) const
inlinenoexcept

Definition at line 823 of file list.h.

◆ remove()

template<typename T >
void zth::Hook< T >::remove ( arg_type  a)
inlinenoexcept

Definition at line 794 of file list.h.


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