From 45581d3d376e8deed84952cb838ae330549e5241 Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 12 May 2009 23:18:17 +0200 Subject: my cpu design --- ue3/mycpu/cdat.h | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) (limited to 'ue3/mycpu/cdat.h') diff --git a/ue3/mycpu/cdat.h b/ue3/mycpu/cdat.h index dc8a07c..365bd88 100644 --- a/ue3/mycpu/cdat.h +++ b/ue3/mycpu/cdat.h @@ -1,12 +1,12 @@ /** * @module cdat * @author Guenther Neuwirth (0626638), Manuel Mausz (0728348) - * @brief Datatype template for mycpu + * @brief Datatype template and datatype definition for CCPU and CMem * @date 10.05.2009 */ -#ifndef CDATT_H -#define CDATT_H +#ifndef CDAT_H +#define CDAT_H 1 #include #include @@ -14,7 +14,7 @@ /** * @class CDatT * - * Datatype template for mycpu. + * Datatype template for CCPU and CMem. */ template class CDatT @@ -85,6 +85,20 @@ class CDatT return m_value; } + /** + * @method operator T + * @brief convert to T + * @param - + * @return T + * @globalvars none + * @exception none + * @conditions none + */ + operator T() + { + return m_value; + } + /** * @method operator< * @brief implementation of operator < @@ -300,8 +314,11 @@ class CDatT T m_value; }; - -/** define CDat */ +/** + * @class CDat + * + * Datatype for CCPU and CMem + */ typedef CDatT CDat; #endif -- cgit v1.2.3 From 89e202f49b9857dcd3627fbc4e0262125d729bbc Mon Sep 17 00:00:00 2001 From: manuel Date: Wed, 13 May 2009 04:09:39 +0200 Subject: adding all instructions and displays --- ue3/mycpu/cdat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ue3/mycpu/cdat.h') diff --git a/ue3/mycpu/cdat.h b/ue3/mycpu/cdat.h index 365bd88..c656b99 100644 --- a/ue3/mycpu/cdat.h +++ b/ue3/mycpu/cdat.h @@ -72,7 +72,7 @@ class CDatT {} /** - * @method value + * @method getValue * @brief returns value of CDatT * @param - * @return value of CDatT @@ -80,7 +80,7 @@ class CDatT * @exception none * @conditions none */ - T value() const + T getValue() const { return m_value; } -- cgit v1.2.3 From 67e99a217bd88a289d997b73f3e7cae6019bc22f Mon Sep 17 00:00:00 2001 From: manuel Date: Wed, 13 May 2009 17:01:15 +0200 Subject: fixing doxygen documentation --- ue3/mycpu/cdat.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'ue3/mycpu/cdat.h') diff --git a/ue3/mycpu/cdat.h b/ue3/mycpu/cdat.h index c656b99..a533fae 100644 --- a/ue3/mycpu/cdat.h +++ b/ue3/mycpu/cdat.h @@ -102,7 +102,7 @@ class CDatT /** * @method operator< * @brief implementation of operator < - * @param reference to CDatT + * @param x reference to CDatT * @return true if cdat is less than object x * @globalvars none * @exception none @@ -116,7 +116,7 @@ class CDatT /** * @method operator== * @brief implementation of operator == - * @param reference to CDatT + * @param x reference to CDatT * @return true if cdat equals object x * @globalvars none * @exception none @@ -130,7 +130,7 @@ class CDatT /** * @method operator+= * @brief implementation of operator += - * @param reference to CDatT + * @param x reference to CDatT * @return refecence to CDatT * @globalvars none * @exception none @@ -145,7 +145,7 @@ class CDatT /** * @method operator-= * @brief implementation of operator -= - * @param reference to CDatT + * @param x reference to CDatT * @return refecence to CDatT * @globalvars none * @exception none @@ -160,7 +160,7 @@ class CDatT /** * @method operator*= * @brief implementation of operator *= - * @param reference to CDatT + * @param x reference to CDatT * @return refecence to CDatT * @globalvars none * @exception none @@ -175,7 +175,7 @@ class CDatT /** * @method operator/= * @brief implementation of operator /= - * @param reference to CDatT + * @param x reference to CDatT * @return refecence to CDatT * @globalvars none * @exception none @@ -190,7 +190,7 @@ class CDatT /** * @method operator%= * @brief implementation of operator %= - * @param reference to CDatT + * @param x reference to CDatT * @return refecence to CDatT * @globalvars none * @exception none @@ -205,7 +205,7 @@ class CDatT /** * @method operator|= * @brief implementation of operator |= - * @param reference to CDatT + * @param x reference to CDatT * @return refecence to CDatT * @globalvars none * @exception none @@ -220,7 +220,7 @@ class CDatT /** * @method operator&= * @brief implementation of operator &= - * @param reference to CDatT + * @param x reference to CDatT * @return refecence to CDatT * @globalvars none * @exception none @@ -235,7 +235,7 @@ class CDatT /** * @method operator^= * @brief implementation of operator ^= - * @param reference to CDatT + * @param x reference to CDatT * @return refecence to CDatT * @globalvars none * @exception none -- cgit v1.2.3