Cafu Engine
List.hpp
1 /*
2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
4 This project is licensed under the terms of the MIT license.
5 */
6 
7 #ifndef CAFU_LINKED_LIST_HPP_INCLUDED
8 #define CAFU_LINKED_LIST_HPP_INCLUDED
9 
10 
11 /// This class represents a node of a singly-linked list.
12 template<class T> class ListNodeT
13 {
14  public:
15 
16  ListNodeT(); ///< Constructor.
17  // ~ListNodeT(); ///< Destructor.
18 
19  T Data;
20  ListNodeT<T>* Next;
21 
22 
23  private:
24 
25  ListNodeT(const ListNodeT<T>& Other); ///< Use of the Copy Constructor is not allowed.
26  ListNodeT<T>& operator = (const ListNodeT<T>& Other); ///< Use of the Assignment Operator is not allowed.
27 };
28 
29 
30 // The default constructor.
31 template<class T> inline ListNodeT<T>::ListNodeT()
32 {
33 }
34 
35 #endif
ListNodeT()
Constructor.
Definition: List.hpp:31
This class represents a node of a singly-linked list.
Definition: List.hpp:12