Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Timo Koch
dune-common
Commits
fde9f1d1
Commit
fde9f1d1
authored
20 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
Doxygen
[[Imported from SVN: r674]]
parent
02cbedff
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/dlist.hh
+61
-10
61 additions, 10 deletions
common/dlist.hh
with
61 additions
and
10 deletions
common/dlist.hh
+
61
−
10
View file @
fde9f1d1
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef __DLIST_HH__
#define __DLIST_HH__
#ifndef __
DUNE_
DLIST_HH__
#define __
DUNE_
DLIST_HH__
namespace
Dune
{
template
<
class
T
>
class
DoubleLinkedList
{
/** \brief A doubly-linked list
*/
template
<
class
T
>
class
DoubleLinkedList
{
private:
struct
Element
;
// Vorwaertsdeklaration fuer das Listenelement
public:
class
Iterator
{
// Iteratorklasse zum
private:
// Durchlaufen der Elemente des Containers
Element
*
p
;
// Iterator ist ein Zeiger auf ein Listenelement
/** \brief Iterator class for the doubly-linked list
*/
class
Iterator
{
private:
//! Iterator is a pointer to a list element
Element
*
p
;
public:
//! ???
Iterator
();
//! ???
bool
operator
!=
(
Iterator
x
);
//! ???
bool
operator
==
(
Iterator
x
);
Iterator
operator
++
();
// prefix Stroustrup p. 292
Iterator
operator
++
(
int
);
// postfix
Iterator
operator
--
();
// prefix
Iterator
operator
--
(
int
);
// postfix
//! Prefix increment
Iterator
operator
++
();
//! Postfix increment
Iterator
operator
++
(
int
);
//! Prefix decrement
Iterator
operator
--
();
//! Postfix decrement
Iterator
operator
--
(
int
);
//! ???
T
&
operator
*
()
const
;
//! ???
T
*
operator
->
()
const
;
// Stroustrup p. 289
//! ???
friend
class
DoubleLinkedList
<
T
>
;
}
;
//! ???
Iterator
begin
()
const
;
//! ???
Iterator
end
()
const
;
//! ???
Iterator
rbegin
()
const
;
//! ???
Iterator
rend
()
const
;
//! ???
DoubleLinkedList
();
//! ???
DoubleLinkedList
(
const
DoubleLinkedList
<
T
>&
);
//! ???
~
DoubleLinkedList
();
//! ???
DoubleLinkedList
<
T
>&
operator
=
(
const
DoubleLinkedList
<
T
>&
);
//! ???
int
size
()
const
;
//! ???
Iterator
insert_after
(
Iterator
i
,
T
&
t
);
//! ???
Iterator
insert_before
(
Iterator
i
,
T
&
t
);
//! ???
void
erase
(
Iterator
i
);
private
:
...
...
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