Kea  1.9.9-git
isc::hooks::ParkingLot::ParkingInfo Struct Reference

Holds information about parked object. More...

#include <parking_lots.h>

Public Member Functions

 ParkingInfo ()
 Constructor. More...
 
 ParkingInfo (const boost::any &parked_object, std::function< void()> callback=0)
 Constructor. More...
 
void update (const boost::any &parked_object, std::function< void()> callback)
 Update parking information. More...
 

Public Attributes

boost::any parked_object_
 The parked object. More...
 
int refcount_
 The current reference count. More...
 
std::function< void()> unpark_callback_
 The pointer to callback. More...
 

Detailed Description

Holds information about parked object.

Definition at line 211 of file parking_lots.h.

Constructor & Destructor Documentation

isc::hooks::ParkingLot::ParkingInfo::ParkingInfo ( )
inline

Constructor.

Default constructor.

Definition at line 224 of file parking_lots.h.

isc::hooks::ParkingLot::ParkingInfo::ParkingInfo ( const boost::any &  parked_object,
std::function< void()>  callback = 0 
)
inline

Constructor.

Parameters
parked_objectobject being parked.
callbackpointer to the callback.

Definition at line 230 of file parking_lots.h.

Member Function Documentation

void isc::hooks::ParkingLot::ParkingInfo::update ( const boost::any &  parked_object,
std::function< void()>  callback 
)
inline

Update parking information.

Parameters
parked_objectparked object.
callbackpointer to the callback.

Definition at line 239 of file parking_lots.h.

Member Data Documentation

boost::any isc::hooks::ParkingLot::ParkingInfo::parked_object_

The parked object.

Definition at line 213 of file parking_lots.h.

int isc::hooks::ParkingLot::ParkingInfo::refcount_

The current reference count.

Definition at line 219 of file parking_lots.h.

std::function<void()> isc::hooks::ParkingLot::ParkingInfo::unpark_callback_

The pointer to callback.

Definition at line 216 of file parking_lots.h.


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