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