Overture  Version 25
floatGenericGridFunction.h
Go to the documentation of this file.
1 #ifndef FLOAT_GENERIC_GRID_FUNCTION_H
2 #define FLOAT_GENERIC_GRID_FUNCTION_H "floatGenericGridFunction.h"
3 
4 #include "ReferenceCounting.h"
5 #include "OvertureTypes.h"
6 
7 class GenericGrid; // forward declaration
8 
9 //---------------------------------------------------------------------------
10 // This is a generic grid function from which other types of grid functions
11 // can be derived.
12 //---------------------------------------------------------------------------
14 {
15  public:
17 
20  const CopyType=DEEP ) { }
22 
24 
26  { grid = X.grid; return *this; }
28  virtual void breakReference(){}
29  private:
30  virtual ReferenceCounting& operator=( const ReferenceCounting & x)
32  virtual void reference( const ReferenceCounting & x)
34  virtual ReferenceCounting* virtualConstructor( const CopyType ct = DEEP ) const
35  { return ::new floatGenericGridFunction(*this, ct); }
36 
37 };
38 #endif // floatGenericGridFunction.h