Skip to content

Commit

Permalink
Removed unnecessary constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
SleepiCaffeine committed Jun 23, 2023
1 parent b95b9b8 commit d40f20d
Showing 1 changed file with 2 additions and 46 deletions.
48 changes: 2 additions & 46 deletions Data Structures/double_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ class double_node {
* @see double_node(double_node<T>* const nd)
* @see double_node(double_node<T>& const nd)
* @see double_node(double_node<T>* const nd, const T dt)
* @see double_node(double_node<T>* const nnd, double_node<T>* const bnd)
* @see double_node(double_node<T>* const nnd, double_node<T>* const bnd, const T dt)
*/
double_node()
: next{nullptr}, prev{nullptr} { };
Expand All @@ -55,8 +53,6 @@ class double_node {
* @see double_node(double_node<T>* const nd)
* @see double_node(double_node<T>& const nd)
* @see double_node(double_node<T>* const nd, const T dt)
* @see double_node(double_node<T>* const nnd, double_node<T>* const bnd)
* @see double_node(double_node<T>* const nnd, double_node<T>* const bnd, const T dt)
*/
double_node(const T dt)
: double_node{nullptr, nullptr, dt} { };
Expand All @@ -69,8 +65,6 @@ class double_node {
* @see double_node(const T dt)
* @see double_node(double_node<T>& const nd)
* @see double_node(double_node<T>* const nd, const T dt)
* @see double_node(double_node<T>* const nnd, double_node<T>* const bnd)
* @see double_node(double_node<T>* const nnd, double_node<T>* const bnd, const T dt)
*/
double_node(double_node<T>* const nd)
: next{nd}, prev{nullptr} { }
Expand All @@ -84,46 +78,10 @@ class double_node {
* @see double_node()
* @see double_node(const T dt)
* @see double_node(double_node<T>* const nd)
* @see double_node(double_node<T>& const nd)
* @see double_node(double_node<T>* const nnd, double_node<T>* const bnd)
* @see double_node(double_node<T>* const nnd, double_node<T>* const bnd, const T dt)
* @see double_node(double_node<T>& const nd
*/
double_node(double_node<T>* const nd, const T dt)
: next{nd}, data{dt} { }

/**
* Creates a new double_node object that points to 2 double_nodes, but has no data.
* @note The 2 nodes provided as parameters will NOT point to this new node. You will have to either do this manually or use a DLL
*
* @param nnd double_node to which it will point
* @param bnd double_node which will point to it
* @see double_node()
* @see double_node(const T dt)
* @see double_node(double_node<T>* nd)
* @see double_node(double_node<T>& nd)
* @see double_node(double_node<T>* const nd, const T dt)
* @see double_node(double_node<T>* const nnd, double_node<T>* const bnd, const T dt)
*/
double_node(double_node<T>* const nnd, double_node<T>* const bnd)
: next{nnd}, prev{bnd} { }


/**
* Creates a new double_node object that points to 2 double_nodes, and has data
* @note The 2 nodes provided as parameters will NOT point to this new node. You will have to either do this manually or use a DLL
*
* @param nnd double_node to which it will point
* @param bnd double_node which will point to it
* @param dt double_node data
* @see double_node()
* @see double_node(const T dt)
* @see double_node(double_node<T>*const nd)
* @see double_node(double_node<T>& const nd)
* @see double_node(double_node<T>* const nd, const T dt)
* @see double_node(double_node<T>* const nnd, double_node<T>* const bnd)
*/
double_node(double_node<T>* const nnd, double_node<T>* const bnd, const T dt)
: next{nnd}, prev{bnd}, data{dt} { }

/**
* Construct a new double_node object from another double_node object.
Expand All @@ -132,9 +90,7 @@ class double_node {
* @see double_node()
* @see double_node(const T dt)
* @see double_node(double_node<T>* nd)
* @see double_node(double_node<T>* const nd, const T dt)
* @see double_node(double_node<T>* const nnd, double_node<T>* const bnd)
* @see double_node(double_node<T>* const nnd, double_node<T>* const bnd, const T dt)
* @see double_node(double_node<T>* const nd, const T dt
*/
double_node(const double_node<T>& nd);

Expand Down

0 comments on commit d40f20d

Please sign in to comment.