// ============================================================================ // == == // == AMDiS - Adaptive multidimensional simulations == // == == // ============================================================================ // == == // == crystal growth group == // == == // == Stiftung caesar == // == Ludwig-Erhard-Allee 2 == // == 53175 Bonn == // == germany == // == == // ============================================================================ // == == // == http://www.caesar.de/cg/AMDiS == // == == // ============================================================================ /** \file TimedObject.h */ #ifndef AMDIS_TIMEDOBJECT_H #define AMDIS_TIMEDOBJECT_H namespace AMDiS { /** \brief * This class can be used as base class for time dependent objects where * different objects refer to the same time. Herefore a pointer to * a double value is stored, pointing to a time value, which can be * managed in one central object, maybe the problem class. */ class TimedObject { public: /// Constructor. TimedObject() : timePtr(NULL) {} /// Sets the time pointer. inline void setTimePtr(double *timePtr_) { timePtr = timePtr_; } /// Returns the time pointer. inline double *getTimePtr() { return timePtr; } protected: /// Pointer to the externally managed time value. double *timePtr; }; } #endif // AMDIS_TIMEDOBJECT_H