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