Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Gruppe44-PROG1003-2022
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Blakli
Gruppe44-PROG1003-2022
Commits
2c5e14f1
Commit
2c5e14f1
authored
3 years ago
by
Andreas Blakli
Browse files
Options
Downloads
Patches
Plain Diff
La til kommentering i rute.h.
parent
b91dff17
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rute.h
+14
-4
14 additions, 4 deletions
rute.h
with
14 additions
and
4 deletions
rute.h
+
14
−
4
View file @
2c5e14f1
...
...
@@ -2,9 +2,9 @@
#define __RUTE_H
#include
<algorithm>
#include
<iomanip>
#include
<iostream>
#include
<list>
#include
<iomanip>
#include
"enumer.h"
#include
"hjelpeFunksjoner.h"
...
...
@@ -13,28 +13,38 @@
#include
"stoppested.h"
#include
"stoppesteder.h"
/**
* Stopp struct, holder data for et stopp
* med vector indeksen til stoppestedet og
* minutter mellom forrige stoppested.
*
*/
struct
Stopp
{
int
indexStoppested
;
int
minutterFraForrigeStoppested
;
};
/**
* Baseklassen Rute.
* Har datamedlemmet:
* alleStoppestedenePaaRuten - Liste over pekere til stopp structer.
*
*/
class
Rute
{
private:
HjelpeFunksjoner
hjelp
;
public:
// Liste over pekere til stopp structer.
std
::
list
<
Stopp
*>
alleStoppestedenePaaRuten
;
Rute
();
virtual
~
Rute
();
Stopp
*
ny
(
const
int
&
eksisterende
,
int
pos
);
void
ryddOppMinne
();
// void lesData();
void
skrivData
();
virtual
void
skrivDataForlengs
();
virtual
void
skrivDataBaklengs
();
// virtual void skrivKortData();
bool
sjekkOmStoppEksisterer
(
Stopp
*
stopp
);
// void skrivStopp();
void
endre
();
void
slettStoppested
(
const
int
&
start
,
const
int
&
slutt
);
void
smettInnStoppested
(
const
int
&
start
,
const
int
&
slutt
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment