Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
calllist.cc
Go to the documentation of this file.
1 
18 #include "ion/base/calllist.h"
19 
20 namespace ion {
21 namespace base {
22 
23 CallList::CallList() : calls_(*this) {}
24 
25 CallList::~CallList() {}
26 
29  const size_t count = calls_.size();
30  for (size_t i = 0; i < count; ++i)
31  (*calls_[i])();
32 }
33 
36  calls_.clear();
37 }
38 
39 } // namespace base
40 } // namespace ion
void Execute()
Executes the stored calls.
Definition: calllist.cc:28
void Clear()
Clears the set of calls.
Definition: calllist.cc:35