CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
Loading...
Searching...
No Matches
drift.cpp
Go to the documentation of this file.
1
10
11/* ===============================================================================================================================
12 This file is part of CoastalME, the Coastal Modelling Environment.
13
14 CoastalME is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
15
16 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19===============================================================================================================================*/
20#include <assert.h>
21
22#include "cme.h"
23#include "drift.h"
24#include "coast.h"
25
27CRWDrift::CRWDrift(CRWCoast* pCoastIn, int const nCoast, int const nPointOnCoast, int const nLandCat)
28 : m_dD50(0)
29{
30 pCoast = pCoastIn;
31
32 m_nCoast = nCoast;
33 m_nPointOnCoastline = nPointOnCoast;
34 m_nCategory = nLandCat;
35}
36
39{
40}
41
44{
45}
CRWCoast * pCoast
Pointer to this landform's coast.
int m_nCategory
Landform category code.
int m_nCoast
The coast number on which this coast landform sits.
int m_nPointOnCoastline
The point on the coast on which this coast landform sits.
Real-world class used to represent coastline objects.
Definition coast.h:39
CRWDrift(CRWCoast *, int const, int const, int const)
Constructor with four parameters and an intialization list.
Definition drift.cpp:27
double m_dD50
The drift's d50.
Definition drift.h:31
void Display(void) override
Instantiates the pure virtual function in the abstract parent class, so that CRWDrift is not an abstr...
Definition drift.cpp:43
~CRWDrift(void) override
Destructor.
Definition drift.cpp:38
This file contains global definitions for CoastalME.
Contains CRWCoast definitions.
Contains CRWDrift definitions.