Public Member Functions | Public Attributes | List of all members
gb_callback Struct Reference

#include <gb_cb.h>

Inheritance diagram for gb_callback:
Inheritance graph
Collaboration diagram for gb_callback:
Collaboration graph

Public Member Functions

 gb_callback (const TypedDatabaseCallback &spec_)
 gb_callback (const gb_callback &other)
bool may_be_removed () const
bool call (GBDATA *with, GB_CB_TYPE typemask)

Public Attributes

TypedDatabaseCallback spec
short running

Detailed Description

Definition at line 106 of file gb_cb.h.

Constructor & Destructor Documentation

gb_callback::gb_callback ( const TypedDatabaseCallback spec_)

Definition at line 111 of file gb_cb.h.

gb_callback::gb_callback ( const gb_callback other)

Definition at line 115 of file gb_cb.h.

References gb_assert.

Member Function Documentation

gb_callback::DECLARE_ASSIGNMENT_OPERATOR ( gb_callback  )
bool gb_callback::may_be_removed ( ) const

Definition at line 123 of file gb_cb.h.

References TypedDatabaseCallback::is_marked_for_removal().

Referenced by call().

bool gb_callback::call ( GBDATA with,
GB_CB_TYPE  typemask 

call if matching. only done in NO_TRANSACTION_MODE

withdatabase entry passed to callback
typemaskcall only if callback-type and typemask have common bits
true if callback has to be removed afterwards

Definition at line 125 of file gb_cb.h.

References TypedDatabaseCallback::get_type(), TypedDatabaseCallback::is_marked_for_removal(), may_be_removed(), running, and spec.

Member Data Documentation

TypedDatabaseCallback gb_callback::spec
short gb_callback::running

Definition at line 109 of file gb_cb.h.

Referenced by call().

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