summaryrefslogtreecommitdiffstats
path: root/ue3/mycpu/cdat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ue3/mycpu/cdat.cpp')
-rw-r--r--ue3/mycpu/cdat.cpp126
1 files changed, 0 insertions, 126 deletions
diff --git a/ue3/mycpu/cdat.cpp b/ue3/mycpu/cdat.cpp
deleted file mode 100644
index 455d3bc..0000000
--- a/ue3/mycpu/cdat.cpp
+++ /dev/null
@@ -1,126 +0,0 @@
1/**
2 * @module cdat
3 * @author Guenther Neuwirth (0626638), Manuel Mausz (0728348)
4 * @brief TODO
5 * @date 10.05.2009
6 */
7
8#include "cdat.h"
9
10
11int CDat::value() const
12{
13 return m_value;
14}
15
16/*----------------------------------------------------------------------------*/
17
18bool CDat::operator<(const CDat& x) const
19{
20 return m_value < x.m_value;
21}
22
23/*----------------------------------------------------------------------------*/
24
25bool CDat::operator==(const CDat& x) const
26{
27 return m_value == x.m_value;
28}
29
30/*----------------------------------------------------------------------------*/
31
32CDat& CDat::operator+=(const CDat& x)
33{
34 m_value += x.m_value;
35 return *this;
36}
37
38/*----------------------------------------------------------------------------*/
39
40CDat& CDat::operator-=(const CDat& x)
41{
42 m_value -= x.m_value;
43 return *this;
44}
45
46/*----------------------------------------------------------------------------*/
47
48CDat& CDat::operator*=(const CDat& x)
49{
50 m_value *= x.m_value;
51 return *this;
52}
53
54/*----------------------------------------------------------------------------*/
55
56CDat& CDat::operator/=(const CDat& x)
57{
58 m_value /= x.m_value;
59 return *this;
60}
61
62/*----------------------------------------------------------------------------*/
63
64CDat& CDat::operator%=(const CDat& x)
65{
66 m_value %= x.m_value;
67 return *this;
68}
69
70/*----------------------------------------------------------------------------*/
71
72CDat& CDat::operator|=(const CDat& x)
73{
74 m_value |= x.m_value;
75 return *this;
76}
77
78/*----------------------------------------------------------------------------*/
79
80CDat& CDat::operator&=(const CDat& x)
81{
82 m_value &= x.m_value;
83 return *this;
84}
85
86/*----------------------------------------------------------------------------*/
87
88CDat& CDat::operator^=(const CDat& x)
89{
90 m_value ^= x.m_value;
91 return *this;
92}
93
94/*----------------------------------------------------------------------------*/
95
96CDat& CDat::operator++()
97{
98 m_value++;
99 return *this;
100}
101
102/*----------------------------------------------------------------------------*/
103
104CDat& CDat::operator--()
105{
106 m_value--;
107 return *this;
108}
109
110/*----------------------------------------------------------------------------*/
111
112std::ostream& operator<<(std::ostream& stream, CDat cdat)
113{
114 stream << cdat.m_value;
115 return stream;
116}
117
118/*----------------------------------------------------------------------------*/
119
120std::istream& operator>>(std::istream & stream, CDat& cdat)
121{
122 stream >> cdat.m_value;
123 return stream;
124}
125
126/* vim: set et sw=2 ts=2: */