lasd/librerie/exercise2/queue/vec/queuevec.hpp

103 lines
2.6 KiB
C++
Raw Normal View History

2021-04-10 13:34:50 +02:00
#ifndef QUEUEVEC_HPP
#define QUEUEVEC_HPP
/* ************************************************************************** */
#include "../queue.hpp"
#include "../../vector/vector.hpp"
/* ************************************************************************** */
namespace lasd {
/* ************************************************************************** */
template <typename Data>
class QueueVec { // Must extend Queue<Data> and Vector<Data>
private:
// ...
protected:
// using Vector<Data>::???;
// ...
public:
// Default constructor
// QueueVec() specifier;
/* ************************************************************************ */
// Specific constructor
// QueueVec(argument) specifiers; // A queue obtained from a LinearContainer
/* ************************************************************************ */
// Copy constructor
// QueueVec(argument);
// Move constructor
// QueueVec(argument);
/* ************************************************************************ */
// Destructor
// ~QueueVec() specifier;
/* ************************************************************************ */
// Copy assignment
// type operator=(argument);
// Move assignment
// type operator=(argument);
/* ************************************************************************ */
// Comparison operators
// type operator==(argument) specifiers;
// type operator!=(argument) specifiers;
/* ************************************************************************ */
// Specific member functions (inherited from Queue)
// type Enqueue(argument) specifiers; // Override Queue member (copy of the value)
// type Enqueue(argument) specifiers; // Override Queue member (move of the value)
// type Head() specifiers; // Override Queue member (must throw std::length_error when empty)
// type Dequeue() specifiers; // Override Queue member (must throw std::length_error when empty)
// type HeadNDequeue() specifiers; // Override Queue member (must throw std::length_error when empty)
/* ************************************************************************ */
// Specific member functions (inherited from Container)
// type Empty() specifiers; // Override Container member
// type Size() specifiers; // Override Container member
// type Clear() specifiers; // Override Container member
protected:
// Auxiliary member functions
// type Expand() specifiers;
// type Reduce() specifiers;
// type SwapVectors(arguments) specifiers;
};
/* ************************************************************************** */
}
#include "queuevec.cpp"
#endif