From fe1ef6b47f59899e8687bb1dcc92eba1d103a08f Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 10 May 2009 19:48:42 +0200 Subject: making cdat a template --- ue3/mycpu/cdat.cpp | 126 ----------------------------------------------------- 1 file changed, 126 deletions(-) delete mode 100644 ue3/mycpu/cdat.cpp (limited to 'ue3/mycpu/cdat.cpp') 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 @@ -/** - * @module cdat - * @author Guenther Neuwirth (0626638), Manuel Mausz (0728348) - * @brief TODO - * @date 10.05.2009 - */ - -#include "cdat.h" - - -int CDat::value() const -{ - return m_value; -} - -/*----------------------------------------------------------------------------*/ - -bool CDat::operator<(const CDat& x) const -{ - return m_value < x.m_value; -} - -/*----------------------------------------------------------------------------*/ - -bool CDat::operator==(const CDat& x) const -{ - return m_value == x.m_value; -} - -/*----------------------------------------------------------------------------*/ - -CDat& CDat::operator+=(const CDat& x) -{ - m_value += x.m_value; - return *this; -} - -/*----------------------------------------------------------------------------*/ - -CDat& CDat::operator-=(const CDat& x) -{ - m_value -= x.m_value; - return *this; -} - -/*----------------------------------------------------------------------------*/ - -CDat& CDat::operator*=(const CDat& x) -{ - m_value *= x.m_value; - return *this; -} - -/*----------------------------------------------------------------------------*/ - -CDat& CDat::operator/=(const CDat& x) -{ - m_value /= x.m_value; - return *this; -} - -/*----------------------------------------------------------------------------*/ - -CDat& CDat::operator%=(const CDat& x) -{ - m_value %= x.m_value; - return *this; -} - -/*----------------------------------------------------------------------------*/ - -CDat& CDat::operator|=(const CDat& x) -{ - m_value |= x.m_value; - return *this; -} - -/*----------------------------------------------------------------------------*/ - -CDat& CDat::operator&=(const CDat& x) -{ - m_value &= x.m_value; - return *this; -} - -/*----------------------------------------------------------------------------*/ - -CDat& CDat::operator^=(const CDat& x) -{ - m_value ^= x.m_value; - return *this; -} - -/*----------------------------------------------------------------------------*/ - -CDat& CDat::operator++() -{ - m_value++; - return *this; -} - -/*----------------------------------------------------------------------------*/ - -CDat& CDat::operator--() -{ - m_value--; - return *this; -} - -/*----------------------------------------------------------------------------*/ - -std::ostream& operator<<(std::ostream& stream, CDat cdat) -{ - stream << cdat.m_value; - return stream; -} - -/*----------------------------------------------------------------------------*/ - -std::istream& operator>>(std::istream & stream, CDat& cdat) -{ - stream >> cdat.m_value; - return stream; -} - -/* vim: set et sw=2 ts=2: */ -- cgit v1.2.3