diff --git a/Data Structures/double_node.hpp b/Data Structures/double_node.hpp index 6ebd2c9..44fba25 100644 --- a/Data Structures/double_node.hpp +++ b/Data Structures/double_node.hpp @@ -2,8 +2,8 @@ * @file double_node.h * @author Vakaris Michejenko (sleepicaffeine@gmail.com) * @brief A header that defines a dynamic double_node class - * @version 0.2 - * @date 2023-06-19 + * @version 0.21 + * @date 2023-06-21 * @copyright Copyright (c) 2023 * @link https://github.com/SleepiCaffeine */ @@ -73,9 +73,7 @@ class double_node { * @see double_node(double_node* const nnd, double_node* const bnd, const T dt) */ double_node(double_node* const nd) - : next{nd}, prev{nullptr} { - nd->set_prev(this); - } + : next{nd}, prev{nullptr} { } /** * Creates a new double_node object that points to a double_node, and has data. @@ -91,9 +89,7 @@ class double_node { * @see double_node(double_node* const nnd, double_node* const bnd, const T dt) */ double_node(double_node* const nd, const T dt) - : next{nd}, data{dt} { - nd->set_prev(this); - }; + : next{nd}, data{dt} { } /** * Creates a new double_node object that points to 2 double_nodes, but has no data. @@ -109,10 +105,7 @@ class double_node { * @see double_node(double_node* const nnd, double_node* const bnd, const T dt) */ double_node(double_node* const nnd, double_node* const bnd) - : next{nnd}, prev{bnd} { - //nnd->set_prev(this); - //bnd->set_next(this); - } + : next{nnd}, prev{bnd} { } /** @@ -130,10 +123,7 @@ class double_node { * @see double_node(double_node* const nnd, double_node* const bnd) */ double_node(double_node* const nnd, double_node* const bnd, const T dt) - : next{nnd}, prev{bnd}, data{dt} { - //nnd->set_prev(this); - //bnd->set_next(this); - } + : next{nnd}, prev{bnd}, data{dt} { } /** * Construct a new double_node object from another double_node object. diff --git a/Data Structures/node.hpp b/Data Structures/node.hpp index 160d2c9..70c49c1 100644 --- a/Data Structures/node.hpp +++ b/Data Structures/node.hpp @@ -2,8 +2,8 @@ * @file node.h * @author Vakaris Michejenko (sleepicaffeine@gmail.com) * @brief A header that defines a dynamic node class - * @version 0.2 - * @date 2023-06-19 + * @version 0.21 + * @date 2023-06-21 * @copyright Copyright (c) 2023 * @link https://github.com/SleepiCaffeine */ @@ -11,8 +11,8 @@ #ifndef NODE_H #define NODE_H /*! - * @class Node - * @brief Node class. + * @class node + * @brief node class. * * @details A standard Node data structure that is used as a base unit in many other data structures. Supports insertion, removal, and dynamic types. * diff --git a/Data Structures/sl_list.hpp b/Data Structures/sl_list.hpp index 0bf9d22..427cec0 100644 --- a/Data Structures/sl_list.hpp +++ b/Data Structures/sl_list.hpp @@ -204,7 +204,7 @@ class sl_list { void set_head(node* const nd); /** - * Changes the head's data to the provided node + * Changes the head's data to the provided data value * @param dt The head's new data * @see set_head(node* const nd) * @see get_head()