TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
Loading...
Searching...
No Matches
others::Cache::D_Node< T > Class Template Reference

Node for a doubly linked list with data, prev and next pointers. More...

Collaboration diagram for others::Cache::D_Node< T >:
[legend]

Public Member Functions

 D_Node (T data)
 
 D_Node (T data)
 

Public Attributes

data
 data of the node
 
D_Node< T > * prev
 previous node in the doubly linked list
 
D_Node< T > * next
 next node in the doubly linked list
 

Detailed Description

template<typename T>
class others::Cache::D_Node< T >

Node for a doubly linked list with data, prev and next pointers.

Template Parameters
Ttype of the data of the node

Definition at line 42 of file lru_cache2.cpp.

Constructor & Destructor Documentation

◆ D_Node() [1/2]

template<typename T >
others::Cache::D_Node< T >::D_Node ( T data)
inlineexplicit

Definition at line 51 of file lfu_cache.cpp.

51: data(data), prev(nullptr), next(nullptr) {}
D_Node< T > * next
next node in the doubly linked list
Definition lfu_cache.cpp:49
D_Node< T > * prev
previous node in the doubly linked list
Definition lfu_cache.cpp:48
T data
data of the node
Definition lfu_cache.cpp:47

◆ D_Node() [2/2]

template<typename T >
others::Cache::D_Node< T >::D_Node ( T data)
inlineexplicit

Definition at line 48 of file lru_cache2.cpp.

48: data(data), prev(nullptr), next(nullptr) {}

Member Data Documentation

◆ data

template<typename T >
T others::Cache::D_Node< T >::data

data of the node

Definition at line 47 of file lfu_cache.cpp.

◆ next

template<typename T >
D_Node< T > * others::Cache::D_Node< T >::next

next node in the doubly linked list

Definition at line 49 of file lfu_cache.cpp.

◆ prev

template<typename T >
D_Node< T > * others::Cache::D_Node< T >::prev

previous node in the doubly linked list

Definition at line 48 of file lfu_cache.cpp.


The documentation for this class was generated from the following files: