Overture
Version 25
Main Page
Namespaces
Classes
Files
File List
File Members
Overture.v25.d
include
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
//---------------------------------------------------------------------------
13
class
floatGenericGridFunction
:
public
ReferenceCounting
14
{
15
public
:
16
GenericGrid
*
grid
;
17
18
floatGenericGridFunction
(){
grid
=
NULL
; }
19
floatGenericGridFunction
(
const
floatGenericGridFunction
& ,
20
const
CopyType
=
DEEP
) { }
21
~floatGenericGridFunction
(){}
22
23
floatGenericGridFunction
(
GenericGrid
*grid0 ){
grid
=grid0; }
24
25
floatGenericGridFunction
&
operator=
(
const
floatGenericGridFunction
& X )
26
{
grid
= X.
grid
;
return
*
this
; }
27
void
reference
(
const
floatGenericGridFunction
& ){}
28
virtual
void
breakReference
(){}
29
private
:
30
virtual
ReferenceCounting
&
operator=
(
const
ReferenceCounting
& x)
31
{
return
floatGenericGridFunction::operator=
( (
floatGenericGridFunction
&) x ); }
32
virtual
void
reference
(
const
ReferenceCounting
& x)
33
{
reference
( (
floatGenericGridFunction
&) x ); }
34
virtual
ReferenceCounting
* virtualConstructor(
const
CopyType
ct =
DEEP
)
const
35
{ return ::new
floatGenericGridFunction
(*
this
, ct); }
36
37
};
38
#endif // floatGenericGridFunction.h
Generated on Fri Jan 4 2013 10:17:51 for Overture by
1.8.3