astra-sim-alibabacloud/astra-sim/system/Callable.hh (24 lines of code) (raw):

/****************************************************************************** This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. *******************************************************************************/ #ifndef __CALLABLE_HH__ #define __CALLABLE_HH__ #include <assert.h> #include <math.h> #include <algorithm> #include <chrono> #include <cstdint> #include <ctime> #include <fstream> #include <list> #include <map> #include <sstream> #include <tuple> #include <vector> #include "CallData.hh" #include "Common.hh" namespace AstraSim { class Callable { public: virtual ~Callable() = default; virtual void call(EventType type, CallData* data) = 0; }; } // namespace AstraSim #endif