mirror of
https://github.com/jtgans/g13gui.git
synced 2025-06-20 08:23:50 -04:00
This is the first half of some major rework of the g13d codebase to make things a bit more manageable. This splits out a great deal of stuff from helper.h into separate translation units, and also breaks out a great deal of the g13.h header into separate translation units as well. Doing this saves in compilation time as we make changes to the system, and also helps to clean up a whole bunch of leaking symbols.
29 lines
371 B
C++
29 lines
371 B
C++
#ifndef COORD_H
|
|
#define COORD_H
|
|
|
|
namespace G13 {
|
|
|
|
template <class T> class Coord {
|
|
public:
|
|
Coord()
|
|
: x(), y() {
|
|
}
|
|
|
|
Coord(T _x, T _y)
|
|
: x(_x), y(_y) {
|
|
}
|
|
|
|
T x;
|
|
T y;
|
|
};
|
|
|
|
template <class T>
|
|
std::ostream &operator<<(std::ostream &o, const Coord<T> &c) {
|
|
o << "{ " << c.x << " x " << c.y << " }";
|
|
return o;
|
|
};
|
|
|
|
} // namespace G13
|
|
|
|
#endif // COORD_H
|