pinapa::hook Class Reference

#include <pinapa-hooks.h>

List of all members.

Public Member Functions

 hook ()
void run_hooks (hook_param param)
void add_hook (hooked_function f)

Private Attributes

hooked_function m_function


Detailed Description

List of pinapa::hooked_function.

The function run_hooks runs the operator () for each "function" of the list.

WARNING : Despite the commentary above and the names used below, the class pinapa_hook is used to store only ONE pinapa_hooked_function. Hence, the function add_hook *sets* the pinapa_hooked_function to its parameter. If called n times, the n-1 first values will be lost... Even better, the function run_hooks only run one function, that is to say the last pinapa_hooked_function stored with add_hook.


Constructor & Destructor Documentation

pinapa::hook::hook (  )  [inline]


Member Function Documentation

void pinapa::hook::run_hooks ( hook_param  param  )  [inline]

void pinapa::hook::add_hook ( hooked_function  f  )  [inline]


Member Data Documentation

hooked_function pinapa::hook::m_function [private]


The documentation for this class was generated from the following file:
Generated by
Matthieu Moy <Matthieu.Moy@st.com>
Back to Pinapa Home Page