"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/util/Sawyer/Callbacks.h" between
rose-0.11.49.0.tar.gz and rose-0.11.50.0.tar.gz

About: ROSE is a compiler infrastructure to build source-to-source program transformation and analysis tools for large-scale C, C++, UPC, Fortran, OpenMP, Java, Python and PHP applications.

Callbacks.h  (rose-0.11.49.0):Callbacks.h  (rose-0.11.50.0)
skipping to change at line 26 skipping to change at line 26
class Callbacks { class Callbacks {
private: private:
typedef std::list<Callback> CbList; typedef std::list<Callback> CbList;
CbList callbacks_; CbList callbacks_;
public: public:
bool isEmpty() const { bool isEmpty() const {
return callbacks_.empty(); return callbacks_.empty();
} }
bool operator==(const Callbacks &other) {
return callbacks_.size() == other.callbacks_.size() &&
std::equal(callbacks_.begin(), callbacks_.end(), other.callbacks_.be
gin());
}
Callbacks& append(const Callback &callback) { Callbacks& append(const Callback &callback) {
callbacks_.push_back(callback); callbacks_.push_back(callback);
return *this; return *this;
} }
Callbacks& append(const Callbacks &other) { Callbacks& append(const Callbacks &other) {
callbacks_.insert(callbacks_.end(), other.callbacks_.begin(), other.call backs_.end()); callbacks_.insert(callbacks_.end(), other.callbacks_.begin(), other.call backs_.end());
return *this; return *this;
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)