A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCSafeStatic__Callbacks.html below:

NCBI C++ ToolKit: CSafeStatic_Callbacks< T

Search Toolkit Book for CSafeStatic_Callbacks

Initialization and cleanup of a safe-static object. More...

#include <corelib/ncbi_safe_static.hpp>

template<class T>
class CSafeStatic_Callbacks< T >

Initialization and cleanup of a safe-static object.

Must implement at least Create() and Cleanup() methods. Create() must create a new object and return the initialized pointer. Cleanup() can be a no-op. The default implementation allows to use it as a wrapper for static callback functions.

Definition at line 394 of file ncbi_safe_static.hpp.

◆ FCleanup ◆ FCreate

The default implementation allows to use callback functions rather than a new class.

Definition at line 399 of file ncbi_safe_static.hpp.

◆ TAllocator ◆ CSafeStatic_Callbacks()

The constructor allows to use CSafeStatic_Callbacks as a simple wrapper for static functions.

Parameters
create Initialization function which must create a new object. If null, no special initialization is performed. cleanup Cleanup function. If null, no special cleanup is performed.

Definition at line 410 of file ncbi_safe_static.hpp.

◆ Cleanup()

Perform cleanup before destruction.

Parameters
ptr Object to be destroyed using the selected allocator. The cleanup method should not destroy the object itself, just perform any additional actions (e.g. setting some external pointers to null).

Definition at line 425 of file ncbi_safe_static.hpp.

◆ Create() ◆ m_Cleanup ◆ m_Create

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4