Overture
Version 25
Main Page
Namespaces
Classes
Files
File List
File Members
Overture.v25.d
primer
ChannelMapping.h
Go to the documentation of this file.
1
#ifndef CHANNEL_H
2
#define CHANNEL_H "Channel.h"
3
4
#include "
Mapping.h
"
5
6
class
ChannelMapping
:
public
Mapping
7
{
8
//-------------------------------------------------------------
9
// Here is a derived class to define a Channel in 2D
10
//-------------------------------------------------------------
11
private
:
12
aString
className;
13
real
xa,xb,ya,yb;
14
15
public
:
16
17
ChannelMapping
(
const
real
xa=0.,
18
const
real
xb=1.,
19
const
real
ya=0.,
20
const
real
yb=1. );
21
22
// Copy constructor is deep by default
23
ChannelMapping
(
const
ChannelMapping
&,
const
CopyType
copyType=
DEEP
);
24
25
~ChannelMapping
();
26
27
ChannelMapping
&
operator =
(
const
ChannelMapping
&
X0
);
28
29
void
map
(
const
realArray
&
r
,
realArray
&
x
,
realArray
&
xr
=
Overture::nullRealDistributedArray
(),
30
MappingParameters
& params =
Overture::nullMappingParameters
() );
31
32
virtual
int
get
(
const
GenericDataBase
& dir,
const
aString
& name);
// get from a database file
33
virtual
int
put
(
GenericDataBase
& dir,
const
aString
& name)
const
;
// put to a database file
34
35
Mapping
*
make
(
const
aString
&
mappingClassName
);
36
aString
getClassName
()
const
{
return
ChannelMapping::className; }
37
38
int
update
(
MappingInformation
& mapInfo ) ;
39
40
private
:
41
42
//
43
// Virtual member functions used only through class ReferenceCounting:
44
//
45
virtual
ReferenceCounting
&
operator=
(
const
ReferenceCounting
& x)
46
{
return
operator=
((
ChannelMapping
&)x); }
47
virtual
void
reference(
const
ReferenceCounting
& x)
48
{ reference((
ChannelMapping
&)x); }
// *** Conversion to this class for the virtual = ****
49
virtual
ReferenceCounting
* virtualConstructor(
const
CopyType
ct =
DEEP
)
const
50
{ return ::new
ChannelMapping
(*
this
, ct); }
51
52
};
53
54
55
#endif // CHANNEL_H
56
57
Generated on Fri Jan 4 2013 10:17:49 for Overture by
1.8.3