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