-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQwixxRow.cpp
More file actions
53 lines (45 loc) · 1.22 KB
/
QwixxRow.cpp
File metadata and controls
53 lines (45 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include "QwixxRow.h"
template <>
void QwixxRow<std::vector<int>, Color::RED>::print(std::ostream& _out) const
{
_out << "Red ";
for (int i = 0; i < 11; ++i)
{
_out << '|';
printNumber(_out, (*this)[i]);
}
_out << '|' << ' ' << ((this->_locked) ? "L" : "U") << '|' << std::endl;
}
template <>
void QwixxRow<std::vector<int>, Color::YELLOW>::print(std::ostream& _out) const
{
_out << "Yellow ";
for (int i = 0; i < 11; ++i)
{
_out << '|';
printNumber(_out, (*this)[i]);
}
_out << '|' << ' ' << ((this->_locked) ? "L" : "U") << '|' << std::endl;
}
template <>
void QwixxRow<std::list<int>, Color::GREEN>::print(std::ostream& _out) const
{
_out << "Green ";
for (int i = 0; i < 11; ++i)
{
_out << '|';
printNumber(_out, (*this)[i]);
}
_out << '|' << ' ' << ((this->_locked) ? "L" : "U") << '|' << std::endl;
}
template <>
void QwixxRow<std::list<int>, Color::BLUE>::print(std::ostream& _out) const
{
_out << "Blue ";
for (int i = 0; i < 11; ++i)
{
_out << '|';
printNumber(_out, (*this)[i]);
}
_out << '|' << ' ' << ((this->_locked) ? "L" : "U") << '|' << std::endl;
}