Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: cc3000_ping_demo_try_2
Fork of mbed by
Diff: CallChain.h
- Revision:
- 85:024bf7f99721
- Parent:
- 66:9c8f0e3462fb
--- a/CallChain.h Mon May 19 18:14:09 2014 +0100
+++ b/CallChain.h Wed Jun 11 15:14:05 2014 +0100
@@ -56,7 +56,7 @@
* }
* @endcode
*/
-
+
typedef FunctionPointer* pFunctionPointer_t;
class CallChain {
@@ -64,7 +64,7 @@
/** Create an empty chain
*
* @param size (optional) Initial size of the chain
- */
+ */
CallChain(int size = 4);
virtual ~CallChain();
@@ -98,7 +98,7 @@
* The function object created for 'function'
*/
pFunctionPointer_t add_front(void (*function)(void));
-
+
/** Add a function at the beginning of the chain
*
* @param tptr pointer to the object to call the member function on
@@ -150,7 +150,7 @@
/** Call all the functions in the chain in sequence
*/
void call();
-
+
#ifdef MBED_OPERATORS
void operator ()(void) {
call();
@@ -168,6 +168,11 @@
pFunctionPointer_t* _chain;
int _size;
int _elements;
+
+ /* disallow copy constructor and assignment operators */
+private:
+ CallChain(const CallChain&);
+ CallChain & operator = (const CallChain&);
};
} // namespace mbed
