consolidate all repos to one for archive

This commit is contained in:
2025-01-28 13:46:42 +01:00
commit a6610fbc7a
5350 changed files with 2705721 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
#ifndef NALOGA0801_ELEMENT_H
#define NALOGA0801_ELEMENT_H
template <typename T>
class Element{
private:
unsigned int x,y;
T value;
public:
Element(unsigned int x, unsigned int y, T value);
unsigned int getX() const;
unsigned int getY() const;
T getValue() const;
void setX(unsigned int x);
void setY(unsigned int y);
void setValue(T value);
};
template<typename T>
Element<T>::Element(unsigned int x, unsigned int y, T value) :
x(x), y(y), value(value) {}
template<typename T>
unsigned int Element<T>::getX() const {
return x;
}
template<typename T>
unsigned int Element<T>::getY() const {
return y;
}
template<typename T>
T Element<T>::getValue() const {
return value;
}
template<typename T>
void Element<T>::setX(unsigned int x) {
Element::x = x;
}
template<typename T>
void Element<T>::setY(unsigned int y) {
Element::y = y;
}
template<typename T>
void Element<T>::setValue(T value) {
Element::value = value;
}
#endif //NALOGA0801_ELEMENT_H