MueLu  Version of the Day
 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;
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:
39 
40  void DeleteHead();
41 };
42 
43 } // namespace MueLu
44 
45 #endif // MUELU_LINKEDLIST_HPP
struct MueLu::MueLu_Node_Struct MueLu_Node
struct MueLu_Node_Struct * next
void Add(int iNode)