Chombo + EB  3.0
Callbacks.H
Go to the documentation of this file.
1 #ifdef CH_LANG_CC
2 /*
3  * _______ __
4  * / ___/ / ___ __ _ / / ___
5  * / /__/ _ \/ _ \/ V \/ _ \/ _ \
6  * \___/_//_/\___/_/_/_/_.__/\___/
7  * Please refer to Copyright.txt, in Chombo's root directory.
8  */
9 #endif
10 
11 #ifndef _CALLBACKS_H_
12 #define _CALLBACKS_H_
13 
14 #include <vector>
15 #include "BaseNamespaceHeader.H"
16 
17 class Callbacks
18 {
19 public:
20  typedef void (*PVF)();
21  void add( PVF f );
22  void run() const;
23 
24 private:
25  std::vector<PVF> m_funcPointers;
26 };
27 #include "BaseNamespaceFooter.H"
28 
29 #endif // include guard
std::vector< PVF > m_funcPointers
Definition: Callbacks.H:25
Definition: Callbacks.H:17
void add(PVF f)
void run() const
void(* PVF)()
Definition: Callbacks.H:20