00001 #ifdef CH_LANG_CC 00002 /* 00003 * _______ __ 00004 * / ___/ / ___ __ _ / / ___ 00005 * / /__/ _ \/ _ \/ V \/ _ \/ _ \ 00006 * \___/_//_/\___/_/_/_/_.__/\___/ 00007 * Please refer to Copyright.txt, in Chombo's root directory. 00008 */ 00009 #endif 00010 00011 #ifndef _CALLBACKS_H_ 00012 #define _CALLBACKS_H_ 00013 00014 #include <vector> 00015 #include "BaseNamespaceHeader.H" 00016 00017 class Callbacks 00018 { 00019 public: 00020 typedef void (*PVF)(); 00021 void add( PVF f ); 00022 void run() const; 00023 00024 private: 00025 std::vector<PVF> m_funcPointers; 00026 }; 00027 #include "BaseNamespaceFooter.H" 00028 00029 #endif // include guard