[Positioning] Add Stock::get_aps()
This commit is contained in:
parent
d1b575c95e
commit
6c48bc7e29
|
@ -91,6 +91,9 @@ public:
|
|||
//@{
|
||||
/// Returns the number of access points
|
||||
static unsigned int nb_aps(void) ;
|
||||
/// Returns a reference to the AP list
|
||||
static
|
||||
std::tr1::unordered_map<std::string, AccessPoint>& get_aps(void) ;
|
||||
/// Verify the existence of an AP
|
||||
static bool ap_exists(const std::string &mac) ;
|
||||
/// Reads the AccessPoint corresponding to a given MAC address
|
||||
|
@ -213,6 +216,13 @@ inline unsigned int Stock::nb_aps()
|
|||
}
|
||||
|
||||
|
||||
inline
|
||||
std::tr1::unordered_map<std::string, AccessPoint>& Stock::get_aps()
|
||||
{
|
||||
return aps ;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* If the AccessPoint corresponding to \em mac does not exist, it is
|
||||
* created.
|
||||
|
|
Loading…
Reference in New Issue