Kea  1.9.9-git
isc::dhcp::MySqlHostDataSource::MySqlHostContextAlloc Class Reference

Context RAII Allocator. More...

#include <mysql_host_data_source.h>

Public Member Functions

 MySqlHostContextAlloc (MySqlHostDataSourceImpl &mgr)
 Constructor. More...
 
 ~MySqlHostContextAlloc ()
 Destructor. More...
 

Public Attributes

MySqlHostContextPtr ctx_
 The context. More...
 

Detailed Description

Context RAII Allocator.

Definition at line 474 of file mysql_host_data_source.h.

Constructor & Destructor Documentation

isc::dhcp::MySqlHostDataSource::MySqlHostContextAlloc::MySqlHostContextAlloc ( MySqlHostDataSourceImpl mgr)

Constructor.

This constructor takes a context of the pool if one is available or creates a new one.

Parameters
mgrA parent instance

Definition at line 2743 of file mysql_host_data_source.cc.

References isc::dhcp::MySqlHostDataSourceImpl::createContext(), ctx_, isc_throw, and isc::dhcp::MySqlHostDataSourceImpl::pool_.

+ Here is the call graph for this function:

isc::dhcp::MySqlHostDataSource::MySqlHostContextAlloc::~MySqlHostContextAlloc ( )

Destructor.

This destructor puts back the context in the pool.

Definition at line 2768 of file mysql_host_data_source.cc.

Member Data Documentation


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