Overture  Version 25
intGenericGridFunction.h
Go to the documentation of this file.
1 #ifndef INT_GENERIC_GRID_FUNCTION_H
2 #define INT_GENERIC_GRID_FUNCTION_H "intGenericGridFunction.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)
33  { reference( (intGenericGridFunction &) x ); }
34  virtual ReferenceCounting* virtualConstructor( const CopyType ct = DEEP ) const
35  { return ::new intGenericGridFunction(*this, ct); }
36 
37 };
38 #endif // intGenericGridFunction.h