Squid Web Cache master
Loading...
Searching...
No Matches
generic_cbdata Class Reference

#include <cbdata.h>

Public Member Functions

 CBDATA_DECL_ (generic_cbdata, noexcept)
 
 generic_cbdata (void *aData)
 
template<typename wrapped_type >
void unwrap (wrapped_type **output)
 

Private Attributes

void * data
 

Detailed Description

A generic wrapper for passing object pointers through cbdata. Use this when you need to pass callback data to a blocking operation, but you don't want to/cannot have that pointer be cbdata itself.

Definition at line 365 of file cbdata.h.

Constructor & Destructor Documentation

◆ generic_cbdata()

generic_cbdata::generic_cbdata ( void *  aData)
inline

Definition at line 370 of file cbdata.h.

Member Function Documentation

◆ CBDATA_DECL_()

generic_cbdata::CBDATA_DECL_ ( generic_cbdata  ,
noexcept   
)

◆ unwrap()

template<typename wrapped_type >
void generic_cbdata::unwrap ( wrapped_type **  output)
inline

Definition at line 372 of file cbdata.h.

References data.

Member Data Documentation

◆ data

void* generic_cbdata::data
private

Definition at line 378 of file cbdata.h.

Referenced by unwrap().


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