Kea 2.5.8
isc::hooks::ParkingLot::ParkingInfo Struct Reference

Holds information about parked object. More...

#include <parking_lots.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

Holds information about parked object.

Definition at line 217 of file parking_lots.h.

Constructor & Destructor Documentation

◆ ParkingInfo() [1/2]

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

Constructor.

Default constructor.

Definition at line 230 of file parking_lots.h.

◆ ParkingInfo() [2/2]

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 236 of file parking_lots.h.

Member Function Documentation

◆ update()

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 245 of file parking_lots.h.

References parked_object_, and unpark_callback_.

Member Data Documentation

◆ parked_object_

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

The parked object.

Definition at line 219 of file parking_lots.h.

Referenced by update().

◆ refcount_

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

The current reference count.

Definition at line 225 of file parking_lots.h.

◆ unpark_callback_

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

The pointer to callback.

Definition at line 222 of file parking_lots.h.

Referenced by update().


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