@@ -72,7 +72,12 @@ class CallChain : private NonCopyable<CallChain> {
72
72
*
73
73
* @param size (optional) Initial size of the chain
74
74
*/
75
+ MBED_DEPRECATED_SINCE (" mbed-os-5.6" , " This class is not part of the "
76
+ " public API of mbed-os and is being removed in the future." )
75
77
CallChain (int size = 4 );
78
+
79
+ MBED_DEPRECATED_SINCE (" mbed-os-5.6" , " This class is not part of the "
80
+ " public API of mbed-os and is being removed in the future." )
76
81
virtual ~CallChain ();
77
82
78
83
/* * Add a function at the end of the chain
@@ -82,6 +87,8 @@ class CallChain : private NonCopyable<CallChain> {
82
87
* @returns
83
88
* The function object created for 'func'
84
89
*/
90
+ MBED_DEPRECATED_SINCE (" mbed-os-5.6" , " This class is not part of the "
91
+ " public API of mbed-os and is being removed in the future." )
85
92
pFunctionPointer_t add (Callback<void ()> func);
86
93
87
94
/* * Add a function at the end of the chain
@@ -111,6 +118,8 @@ class CallChain : private NonCopyable<CallChain> {
111
118
* @returns
112
119
* The function object created for 'func'
113
120
*/
121
+ MBED_DEPRECATED_SINCE (" mbed-os-5.6" , " This class is not part of the "
122
+ " public API of mbed-os and is being removed in the future." )
114
123
pFunctionPointer_t add_front (Callback<void ()> func);
115
124
116
125
/* * Add a function at the beginning of the chain
@@ -135,6 +144,8 @@ class CallChain : private NonCopyable<CallChain> {
135
144
136
145
/* * Get the number of functions in the chain
137
146
*/
147
+ MBED_DEPRECATED_SINCE (" mbed-os-5.6" , " This class is not part of the "
148
+ " public API of mbed-os and is being removed in the future." )
138
149
int size () const ;
139
150
140
151
/* * Get a function object from the chain
@@ -144,6 +155,8 @@ class CallChain : private NonCopyable<CallChain> {
144
155
* @returns
145
156
* The function object at position 'i' in the chain
146
157
*/
158
+ MBED_DEPRECATED_SINCE (" mbed-os-5.6" , " This class is not part of the "
159
+ " public API of mbed-os and is being removed in the future." )
147
160
pFunctionPointer_t get (int i) const ;
148
161
149
162
/* * Look for a function object in the call chain
@@ -153,10 +166,14 @@ class CallChain : private NonCopyable<CallChain> {
153
166
* @returns
154
167
* The index of the function object if found, -1 otherwise.
155
168
*/
169
+ MBED_DEPRECATED_SINCE (" mbed-os-5.6" , " This class is not part of the "
170
+ " public API of mbed-os and is being removed in the future." )
156
171
int find (pFunctionPointer_t f) const ;
157
172
158
173
/* * Clear the call chain (remove all functions in the chain).
159
174
*/
175
+ MBED_DEPRECATED_SINCE (" mbed-os-5.6" , " This class is not part of the "
176
+ " public API of mbed-os and is being removed in the future." )
160
177
void clear ();
161
178
162
179
/* * Remove a function object from the chain
@@ -166,15 +183,24 @@ class CallChain : private NonCopyable<CallChain> {
166
183
* @returns
167
184
* true if the function object was found and removed, false otherwise.
168
185
*/
186
+ MBED_DEPRECATED_SINCE (" mbed-os-5.6" , " This class is not part of the "
187
+ " public API of mbed-os and is being removed in the future." )
169
188
bool remove (pFunctionPointer_t f);
170
189
171
190
/* * Call all the functions in the chain in sequence
172
191
*/
192
+ MBED_DEPRECATED_SINCE (" mbed-os-5.6" , " This class is not part of the "
193
+ " public API of mbed-os and is being removed in the future." )
173
194
void call ();
174
195
196
+ MBED_DEPRECATED_SINCE (" mbed-os-5.6" , " This class is not part of the "
197
+ " public API of mbed-os and is being removed in the future." )
175
198
void operator ()(void ) {
176
199
call ();
177
200
}
201
+
202
+ MBED_DEPRECATED_SINCE (" mbed-os-5.6" , " This class is not part of the "
203
+ " public API of mbed-os and is being removed in the future." )
178
204
pFunctionPointer_t operator [](int i) const {
179
205
return get (i);
180
206
}
0 commit comments