comparison OrthancFramework/Sources/JobsEngine/Operations/JobOperationValues.h @ 4300:b30a8de92ad9

abi continued
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 05 Nov 2020 19:33:18 +0100
parents bf7b9edf6b81
children 2ae905070221
comparison
equal deleted inserted replaced
4299:3f85db78c441 4300:b30a8de92ad9
37 37
38 void Append(JobOperationValues& target, 38 void Append(JobOperationValues& target,
39 bool clear); 39 bool clear);
40 40
41 public: 41 public:
42 ~JobOperationValues() 42 ~JobOperationValues();
43 {
44 Clear();
45 }
46 43
47 void Move(JobOperationValues& target) 44 void Move(JobOperationValues& target);
48 {
49 return Append(target, true);
50 }
51 45
52 void Copy(JobOperationValues& target) 46 void Copy(JobOperationValues& target);
53 {
54 return Append(target, false);
55 }
56 47
57 void Clear(); 48 void Clear();
58 49
59 void Reserve(size_t count) 50 void Reserve(size_t count);
60 {
61 values_.reserve(count);
62 }
63 51
64 void Append(JobOperationValue* value); // Takes ownership 52 void Append(JobOperationValue* value); // Takes ownership
65 53
66 size_t GetSize() const 54 size_t GetSize() const;
67 {
68 return values_.size();
69 }
70 55
71 JobOperationValue& GetValue(size_t index) const; 56 JobOperationValue& GetValue(size_t index) const;
72 57
73 void Serialize(Json::Value& target) const; 58 void Serialize(Json::Value& target) const;
74 59