Kea
1.9.9-git
|
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... | |
Context RAII Allocator.
Definition at line 474 of file mysql_host_data_source.h.
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.
mgr | A 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_.
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.
MySqlHostContextPtr isc::dhcp::MySqlHostDataSource::MySqlHostContextAlloc::ctx_ |
The context.
Definition at line 491 of file mysql_host_data_source.h.
Referenced by isc::dhcp::MySqlHostDataSource::add(), isc::dhcp::MySqlHostDataSource::commit(), isc::dhcp::MySqlHostDataSource::del(), isc::dhcp::MySqlHostDataSource::del4(), isc::dhcp::MySqlHostDataSource::del6(), isc::dhcp::MySqlHostDataSource::get4(), isc::dhcp::MySqlHostDataSource::get6(), isc::dhcp::MySqlHostDataSource::getAll(), isc::dhcp::MySqlHostDataSource::getAll4(), isc::dhcp::MySqlHostDataSource::getAll6(), isc::dhcp::MySqlHostDataSource::getAllbyHostname(), isc::dhcp::MySqlHostDataSource::getAllbyHostname4(), isc::dhcp::MySqlHostDataSource::getAllbyHostname6(), isc::dhcp::MySqlHostDataSource::getName(), isc::dhcp::MySqlHostDataSource::getPage4(), isc::dhcp::MySqlHostDataSource::getPage6(), MySqlHostContextAlloc(), and isc::dhcp::MySqlHostDataSource::rollback().