[Positioning] Add Stock::nb_mobiles()
This commit is contained in:
parent
b04cd1cdb8
commit
8878bb2390
|
@ -68,6 +68,8 @@ public:
|
||||||
|
|
||||||
/** @name Mobile operations */
|
/** @name Mobile operations */
|
||||||
//@{
|
//@{
|
||||||
|
/// Returns the number of mobiles
|
||||||
|
static unsigned int nb_mobiles(void) ;
|
||||||
/// Reads the Mobile corresponding to a given MAC address
|
/// Reads the Mobile corresponding to a given MAC address
|
||||||
static const Mobile& get_mobile(const std::string &mac) ;
|
static const Mobile& get_mobile(const std::string &mac) ;
|
||||||
/// \brief Searches for a Mobile given its MAC address and creates
|
/// \brief Searches for a Mobile given its MAC address and creates
|
||||||
|
@ -178,6 +180,12 @@ find_create_waypoint(const Waypoint &point)
|
||||||
/* *** Mobile operations *** */
|
/* *** Mobile operations *** */
|
||||||
|
|
||||||
|
|
||||||
|
inline unsigned int Stock::nb_mobiles()
|
||||||
|
{
|
||||||
|
return mobiles.size() ;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If the Mobile corresponding to \em mac does not exist, it is created.
|
* If the Mobile corresponding to \em mac does not exist, it is created.
|
||||||
* @param mac The MAC address of the Mobile to search for. It must be a
|
* @param mac The MAC address of the Mobile to search for. It must be a
|
||||||
|
|
Loading…
Reference in New Issue