putting eoNonUniform into a separate file
This commit is contained in:
parent
b5d3db43ad
commit
0133499ac3
2 changed files with 27 additions and 25 deletions
27
eo/src/eoNonUniform.h
Normal file
27
eo/src/eoNonUniform.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// eoNonUniform.h
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef eoNonUniform_h
|
||||
#define eoNonUniform_h
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// eoNonUniform: base class for non uniform operators
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
template<class Time> class eoNonUniform
|
||||
{
|
||||
public:
|
||||
eoNonUniform(const Time& _time = Time(), const Time& _max_time = Time()):
|
||||
time_value(_time), max_time_value(_max_time) {}
|
||||
|
||||
const Time& time() const { return time_value; }
|
||||
const Time& max_time() const { return max_time_value; }
|
||||
|
||||
private:
|
||||
Time &time_value, &max_time_value;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#endif eoNonUniform_h
|
||||
Loading…
Add table
Add a link
Reference in a new issue