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

#include <list.h>

Public Types

typedef T type
 
typedef void * arg_type
 
typedef void(* function_type) (type, arg_type)
 

Public Member Functions

 Hookable (function_type f, arg_type a=arg_type(), Hookable *n=nullptr) noexcept
 
Hookableoperator() (type x) const noexcept
 

Public Attributes

function_type func
 
arg_type arg
 
Hookablenext
 

Detailed Description

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

Definition at line 742 of file list.h.

Member Typedef Documentation

◆ arg_type

template<typename T >
typedef void* zth::Hookable< T >::arg_type

Definition at line 746 of file list.h.

◆ function_type

template<typename T >
typedef void(* zth::Hookable< T >::function_type) (type, arg_type)

Definition at line 747 of file list.h.

◆ type

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

Definition at line 745 of file list.h.

Constructor & Destructor Documentation

◆ Hookable()

template<typename T >
zth::Hookable< T >::Hookable ( function_type  f,
arg_type  a = arg_type(),
Hookable< T > *  n = nullptr 
)
inlineexplicitnoexcept

Definition at line 753 of file list.h.

Member Function Documentation

◆ operator()()

template<typename T >
Hookable * zth::Hookable< T >::operator() ( type  x) const
inlinenoexcept

Definition at line 759 of file list.h.

Member Data Documentation

◆ arg

template<typename T >
arg_type zth::Hookable< T >::arg

Definition at line 766 of file list.h.

◆ func

template<typename T >
function_type zth::Hookable< T >::func

Definition at line 765 of file list.h.

◆ next

template<typename T >
Hookable* zth::Hookable< T >::next

Definition at line 767 of file list.h.


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