34 lines
867 B
C++
34 lines
867 B
C++
|
|
#include "common/container/SubscriberSet.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
/**
|
|
* @brief Default constructor.
|
|
*/
|
|
SubscriberSet::SubscriberSet() {
|
|
}
|
|
|
|
/**
|
|
* @brief Construction from an initializer list.
|
|
* @param il The initializer list.
|
|
*
|
|
* This enables implicit construction like:
|
|
* SubscriberSet subs = { ol1, ol2, ol3, ... };
|
|
*/
|
|
SubscriberSet::SubscriberSet( std::initializer_list<ObjectListener*> il)
|
|
: std::set<ObjectListener*>(il) {
|
|
}
|
|
|
|
/**
|
|
* @brief Construct a set containing the given object listener.
|
|
* @param ol The object listener to insert.
|
|
*/
|
|
SubscriberSet::SubscriberSet( ObjectListener* ol)
|
|
: std::set<ObjectListener*>({ol}) {
|
|
}
|
|
|
|
}
|
|
}
|