mirror of https://github.com/xfarrow/lasd.git
103 lines
2.2 KiB
C++
103 lines
2.2 KiB
C++
|
|
||
|
#ifndef BINARYTREEVEC_HPP
|
||
|
#define BINARYTREEVEC_HPP
|
||
|
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "../binarytree.hpp"
|
||
|
#include "../../vector/vector.hpp"
|
||
|
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
namespace lasd {
|
||
|
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
template <typename Data>
|
||
|
class BinaryTreeVec { // Must extend BinaryTree<Data>
|
||
|
|
||
|
private:
|
||
|
|
||
|
// ...
|
||
|
|
||
|
protected:
|
||
|
|
||
|
// using BinaryTree<Data>::???;
|
||
|
|
||
|
// ...
|
||
|
|
||
|
struct NodeVec { // Must extend Node
|
||
|
|
||
|
private:
|
||
|
|
||
|
// ...
|
||
|
|
||
|
protected:
|
||
|
|
||
|
// ...
|
||
|
|
||
|
public:
|
||
|
|
||
|
// ...
|
||
|
|
||
|
};
|
||
|
|
||
|
public:
|
||
|
|
||
|
// Default constructor
|
||
|
// BinaryTreeVec() specifiers;
|
||
|
|
||
|
/* ************************************************************************ */
|
||
|
|
||
|
// Specific constructors
|
||
|
// BinaryTreeVec(argument) specifiers; // A binary tree obtained from a LinearContainer
|
||
|
|
||
|
/* ************************************************************************ */
|
||
|
|
||
|
// Copy constructor
|
||
|
// BinaryTreeVec(argument) specifiers;
|
||
|
|
||
|
// Move constructor
|
||
|
// BinaryTreeVec(argument) specifiers;
|
||
|
|
||
|
/* ************************************************************************ */
|
||
|
|
||
|
// Destructor
|
||
|
// ~BinaryTreeVec() specifiers;
|
||
|
|
||
|
/* ************************************************************************ */
|
||
|
|
||
|
// Copy assignment
|
||
|
// type operator=(argument) specifiers;
|
||
|
|
||
|
// Move assignment
|
||
|
// type operator=(argument) specifiers;
|
||
|
|
||
|
/* ************************************************************************ */
|
||
|
|
||
|
// Comparison operators
|
||
|
// type operator==(argument) specifiers;
|
||
|
// type operator!=(argument) specifiers;
|
||
|
|
||
|
/* ************************************************************************ */
|
||
|
|
||
|
// Specific member functions (inherited from BinaryTree)
|
||
|
|
||
|
// type Root() specifiers; // Override BinaryTree member (throw std::length_error when empty)
|
||
|
|
||
|
/* ************************************************************************ */
|
||
|
|
||
|
// Specific member functions (inherited from Container)
|
||
|
|
||
|
// type Clear() specifiers; // Override Container member
|
||
|
|
||
|
};
|
||
|
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
}
|
||
|
|
||
|
#include "binarytreevec.cpp"
|
||
|
|
||
|
#endif
|