mirror of https://github.com/xfarrow/lasd.git
parent
b3ca7292c1
commit
31f7ae9b35
|
@ -45,7 +45,7 @@ protected:
|
||||||
/* ********************************************************************** */
|
/* ********************************************************************** */
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~Node() = default;
|
virtual ~Node() = default;
|
||||||
|
|
||||||
/* ********************************************************************** */
|
/* ********************************************************************** */
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ public:
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~List();
|
virtual ~List();
|
||||||
|
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ public:
|
||||||
Vector(Vector&&)noexcept;
|
Vector(Vector&&)noexcept;
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~Vector();
|
virtual ~Vector();
|
||||||
|
|
||||||
// Copy assignment
|
// Copy assignment
|
||||||
Vector& operator=(const Vector&);
|
Vector& operator=(const Vector&);
|
||||||
|
|
|
@ -45,7 +45,7 @@ protected:
|
||||||
/* ********************************************************************** */
|
/* ********************************************************************** */
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~Node() = default;
|
virtual ~Node() = default;
|
||||||
|
|
||||||
/* ********************************************************************** */
|
/* ********************************************************************** */
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ public:
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~List();
|
virtual ~List();
|
||||||
|
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ public:
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~QueueLst();
|
virtual ~QueueLst();
|
||||||
|
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ protected:
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~Queue() = default;
|
virtual ~Queue() = default;
|
||||||
|
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ public:
|
||||||
Vector(Vector&&)noexcept;
|
Vector(Vector&&)noexcept;
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~Vector();
|
virtual ~Vector();
|
||||||
|
|
||||||
// Copy assignment
|
// Copy assignment
|
||||||
Vector& operator=(const Vector&);
|
Vector& operator=(const Vector&);
|
||||||
|
|
|
@ -45,7 +45,7 @@ protected:
|
||||||
/* ********************************************************************** */
|
/* ********************************************************************** */
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~Node() = default;
|
virtual ~Node() = default;
|
||||||
|
|
||||||
/* ********************************************************************** */
|
/* ********************************************************************** */
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ public:
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~List();
|
virtual ~List();
|
||||||
|
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ public:
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~QueueLst();
|
virtual ~QueueLst();
|
||||||
|
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ protected:
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~Queue() = default;
|
virtual ~Queue() = default;
|
||||||
|
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ public:
|
||||||
Vector(Vector&&)noexcept;
|
Vector(Vector&&)noexcept;
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~Vector();
|
virtual ~Vector();
|
||||||
|
|
||||||
// Copy assignment
|
// Copy assignment
|
||||||
Vector& operator=(const Vector&);
|
Vector& operator=(const Vector&);
|
||||||
|
|
|
@ -15,10 +15,11 @@ protected:
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
using BinaryTree<Data>::Node::data;
|
using BinaryTree<Data>::Node::data;
|
||||||
|
|
||||||
|
public:
|
||||||
struct NodeLnk* left = nullptr;
|
struct NodeLnk* left = nullptr;
|
||||||
struct NodeLnk* right = nullptr;
|
struct NodeLnk* right = nullptr;
|
||||||
|
|
||||||
public:
|
|
||||||
struct NodeLnk& operator=(const NodeLnk&); // Copy assignment of abstract types should not be possible.
|
struct NodeLnk& operator=(const NodeLnk&); // Copy assignment of abstract types should not be possible.
|
||||||
struct NodeLnk& operator=(NodeLnk&&) noexcept; // Move assignment of abstract types should not be possible.
|
struct NodeLnk& operator=(NodeLnk&&) noexcept; // Move assignment of abstract types should not be possible.
|
||||||
bool IsLeaf() const noexcept override; // (concrete function should not throw exceptions)
|
bool IsLeaf() const noexcept override; // (concrete function should not throw exceptions)
|
||||||
|
|
|
@ -45,7 +45,7 @@ protected:
|
||||||
/* ********************************************************************** */
|
/* ********************************************************************** */
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~Node() = default;
|
virtual ~Node() = default;
|
||||||
|
|
||||||
/* ********************************************************************** */
|
/* ********************************************************************** */
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ public:
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~List();
|
virtual ~List();
|
||||||
|
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ public:
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~QueueLst();
|
virtual ~QueueLst();
|
||||||
|
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ protected:
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~Queue() = default;
|
virtual ~Queue() = default;
|
||||||
|
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ public:
|
||||||
Vector(Vector&&)noexcept;
|
Vector(Vector&&)noexcept;
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~Vector();
|
virtual ~Vector();
|
||||||
|
|
||||||
// Copy assignment
|
// Copy assignment
|
||||||
Vector& operator=(const Vector&);
|
Vector& operator=(const Vector&);
|
||||||
|
|
|
@ -15,10 +15,11 @@ protected:
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
using BinaryTree<Data>::Node::data;
|
using BinaryTree<Data>::Node::data;
|
||||||
|
|
||||||
|
public:
|
||||||
struct NodeLnk* left = nullptr;
|
struct NodeLnk* left = nullptr;
|
||||||
struct NodeLnk* right = nullptr;
|
struct NodeLnk* right = nullptr;
|
||||||
|
|
||||||
public:
|
|
||||||
struct NodeLnk& operator=(const NodeLnk&); // Copy assignment of abstract types should not be possible.
|
struct NodeLnk& operator=(const NodeLnk&); // Copy assignment of abstract types should not be possible.
|
||||||
struct NodeLnk& operator=(NodeLnk&&) noexcept; // Move assignment of abstract types should not be possible.
|
struct NodeLnk& operator=(NodeLnk&&) noexcept; // Move assignment of abstract types should not be possible.
|
||||||
bool IsLeaf() const noexcept override; // (concrete function should not throw exceptions)
|
bool IsLeaf() const noexcept override; // (concrete function should not throw exceptions)
|
||||||
|
|
|
@ -45,7 +45,7 @@ protected:
|
||||||
/* ********************************************************************** */
|
/* ********************************************************************** */
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~Node() = default;
|
virtual ~Node() = default;
|
||||||
|
|
||||||
/* ********************************************************************** */
|
/* ********************************************************************** */
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ public:
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~List();
|
virtual ~List();
|
||||||
|
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ public:
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~QueueLst();
|
virtual ~QueueLst();
|
||||||
|
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ protected:
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~Queue() = default;
|
virtual ~Queue() = default;
|
||||||
|
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ public:
|
||||||
Vector(Vector&&)noexcept;
|
Vector(Vector&&)noexcept;
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
~Vector();
|
virtual ~Vector();
|
||||||
|
|
||||||
// Copy assignment
|
// Copy assignment
|
||||||
Vector& operator=(const Vector&);
|
Vector& operator=(const Vector&);
|
||||||
|
|
Loading…
Reference in New Issue