MueLu
Version of the Day
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
MueLu_LinkedList.hpp
Go to the documentation of this file.
1
// @HEADER
2
// *****************************************************************************
3
// MueLu: A package for multigrid based preconditioning
4
//
5
// Copyright 2012 NTESS and the MueLu contributors.
6
// SPDX-License-Identifier: BSD-3-Clause
7
// *****************************************************************************
8
// @HEADER
9
10
#ifndef MUELU_LINKEDLIST_HPP
11
#define MUELU_LINKEDLIST_HPP
12
13
/* ------------------------------------------------------------------------- */
14
/* linked list structures from ML for holding free node information */
15
/* ------------------------------------------------------------------------- */
16
17
namespace
MueLu {
18
19
typedef
struct
MueLu_Node_Struct
{
20
int
nodeId
;
21
struct
MueLu_Node_Struct
*
next
;
22
}
MueLu_Node
;
23
24
class
LinkedList
{
25
public
:
26
LinkedList
();
27
28
~LinkedList
();
29
30
bool
IsEmpty
();
31
32
void
Add
(
int
iNode);
33
34
int
Pop
();
35
36
private
:
37
MueLu_Node
*
nodeHead
;
38
MueLu_Node
*
nodeTail
;
39
40
void
DeleteHead
();
41
};
42
43
}
// namespace MueLu
44
45
#endif // MUELU_LINKEDLIST_HPP
MueLu::MueLu_Node
struct MueLu::MueLu_Node_Struct MueLu_Node
MueLu::MueLu_Node_Struct
Definition:
MueLu_LinkedList.hpp:19
MueLu::LinkedList::nodeHead
MueLu_Node * nodeHead
Definition:
MueLu_LinkedList.hpp:37
MueLu::MueLu_Node_Struct::nodeId
int nodeId
Definition:
MueLu_LinkedList.hpp:20
MueLu::LinkedList::~LinkedList
~LinkedList()
Definition:
MueLu_LinkedList.cpp:19
MueLu::MueLu_Node_Struct::next
struct MueLu_Node_Struct * next
Definition:
MueLu_LinkedList.hpp:21
MueLu::LinkedList::DeleteHead
void DeleteHead()
Definition:
MueLu_LinkedList.cpp:49
MueLu::LinkedList::Pop
int Pop()
Definition:
MueLu_LinkedList.cpp:41
MueLu::LinkedList::nodeTail
MueLu_Node * nodeTail
Definition:
MueLu_LinkedList.hpp:38
MueLu::LinkedList::LinkedList
LinkedList()
Definition:
MueLu_LinkedList.cpp:15
MueLu::LinkedList::Add
void Add(int iNode)
Definition:
MueLu_LinkedList.cpp:28
MueLu::LinkedList::IsEmpty
bool IsEmpty()
Definition:
MueLu_LinkedList.cpp:24
MueLu::LinkedList
Definition:
MueLu_LinkedList.hpp:24
src
Graph
Containers
MueLu_LinkedList.hpp
Generated on Fri Nov 22 2024 09:17:05 for MueLu by
1.8.5