Mercurial > hg > svcore
comparison base/EventSeries.h @ 1795:94b488d4b299
The copy & move operators are not actually being used, so probably safer to delete them unless we know otherwise - this is not all that simple a class
author | Chris Cannam |
---|---|
date | Mon, 30 Sep 2019 12:36:44 +0100 |
parents | 1bbea26ea21a |
children | ff8c57c364a0 |
comparison
equal
deleted
inserted
replaced
1794:71e97de5053f | 1795:94b488d4b299 |
---|---|
37 * | 37 * |
38 * This class is highly optimised for inserting events in increasing | 38 * This class is highly optimised for inserting events in increasing |
39 * order of start frame. Inserting (or deleting) events in the middle | 39 * order of start frame. Inserting (or deleting) events in the middle |
40 * does work, and should be acceptable in interactive use, but it is | 40 * does work, and should be acceptable in interactive use, but it is |
41 * very slow in bulk. | 41 * very slow in bulk. |
42 * | |
43 * EventSeries is not thread-safe. | |
42 */ | 44 */ |
43 class EventSeries : public XmlExportable | 45 class EventSeries : public XmlExportable |
44 { | 46 { |
45 public: | 47 public: |
46 EventSeries() : m_finalDurationlessEventFrame(0) { } | 48 EventSeries() : m_finalDurationlessEventFrame(0) { } |
47 ~EventSeries() =default; | 49 ~EventSeries() =default; |
48 | 50 |
49 EventSeries(const EventSeries &) =default; | 51 EventSeries(const EventSeries &) =default; |
50 EventSeries &operator=(const EventSeries &) =default; | 52 |
51 EventSeries &operator=(EventSeries &&) =default; | 53 EventSeries &operator=(const EventSeries &) =delete; |
54 EventSeries &operator=(EventSeries &&) =delete; | |
52 | 55 |
53 bool operator==(const EventSeries &other) const { | 56 bool operator==(const EventSeries &other) const { |
54 return m_events == other.m_events; | 57 return m_events == other.m_events; |
55 } | 58 } |
56 | 59 |