27 #ifndef NIDAS_CORE_SAMPLECLIENTLIST_H
28 #define NIDAS_CORE_SAMPLECLIENTLIST_H
35 namespace nidas {
namespace core {
78 virtual bool empty()
const;
98 std::list<SampleClient*>::const_iterator
begin() throw() {
return _clients.begin(); }
101 std::list<SampleClient*>::const_iterator
end() throw() {
return _clients.end(); }
std::list< SampleClient * >::const_iterator end()
get a const_iterator pointing to one-past-last element.
Definition: SampleClientList.h:101
virtual void add(SampleClient *)
Add a SampleClient to this list.
Definition: SampleClientList.cc:53
std::list< SampleClient * > _clients
My current clients.
Definition: SampleClientList.h:113
virtual ~SampleClientList()
Definition: SampleClientList.h:52
Pure virtual interface of a client of Samples.
Definition: SampleClient.h:38
virtual bool empty() const
Are there any clients?
Definition: SampleClientList.cc:72
void lock()
Lock the Mutex.
Definition: ThreadSupport.h:206
std::list< SampleClient * >::const_iterator begin()
get a const_iterator pointing to first element.
Definition: SampleClientList.h:98
A list of SampleClients.
Definition: SampleClientList.h:41
SampleClientList & operator=(const SampleClientList &cl)
Public assignment operator.
Definition: SampleClientList.cc:41
nidas::util::Mutex _clistLock
mutex to prevent simultaneous access to clients list
Definition: SampleClientList.h:108
virtual void removeAll()
Big cleanup.
Definition: SampleClientList.cc:80
void unlock() const
Unlock this list.
Definition: SampleClientList.h:95
void lock() const
Lock this list.
Definition: SampleClientList.h:90
A C++ wrapper for a POSIX mutex.
Definition: ThreadSupport.h:154
void unlock()
Unlock the Mutex.
Definition: ThreadSupport.h:218
SampleClientList()
Definition: SampleClientList.h:44