Library 5

fixed compile issues
This commit is contained in:
Alessandro Ferro
2021-05-31 11:26:27 +02:00
parent fe51a1b547
commit 4aa82d6108
42 changed files with 130 additions and 49 deletions

6
librerie/exercise5/matrix/matrix.hpp Normal file → Executable file
View File

@ -47,13 +47,13 @@ public:
// Specific member functions
ulong RowNumber() noexcept; // (concrete function should not throw exceptions)
ulong ColumnNumber() noexcept; // (concrete function should not throw exceptions)
ulong RowNumber() const noexcept; // (concrete function should not throw exceptions)
ulong ColumnNumber() const noexcept; // (concrete function should not throw exceptions)
virtual void RowResize(const ulong&) = 0;
virtual void ColumnResize(const ulong&) = 0;
virtual bool ExistsCell(const ulong&, const ulong&) noexcept = 0; // (concrete function should not throw exceptions)
virtual bool ExistsCell(const ulong&, const ulong&) const noexcept = 0; // (concrete function should not throw exceptions)
virtual Data& operator()(const ulong&, const ulong&) = 0; // Mutable access to the element (concrete function should throw exceptions only when out of range)
virtual const Data& operator()(const ulong&, const ulong&) const = 0; // Immutable access to the element (concrete function should throw exceptions when not present)