Changeset 86af43 in git for templates/template.h
- Timestamp:
- May 26, 2010, 1:22:17 PM (14 years ago)
- Branches:
- (u'spielwiese', 'ec94ef7a30b928574c0c3daf41f6804dff5f6b69')
- Children:
- 34942f9467977bbb6b5facb760ff89744af44034
- Parents:
- 4f64517ef8ac7bbb54e92e032085d944fa163120
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2010-05-26 13:22:17+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:54:58+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
templates/template.h
r4f6451 r86af43 1 //***************************************************************************** 2 // Computer Algebra System SINGULAR 3 // Copyright: See COPYING file that comes with this distribution 4 //***************************************************************************** 1 /*****************************************************************************\ 2 * Computer Algebra System SINGULAR 3 \*****************************************************************************/ 5 4 /** @file template.h 6 5 * 7 * This file defines the class T EMPLATE.6 * This file defines the class Template. 8 7 * 9 8 * ABSTRACT: We need this for something... … … 14 13 * 15 14 **/ 16 / /*****************************************************************************15 /*****************************************************************************/ 17 16 18 #ifndef SINGULAR_TEMPLATE_CLASS_h_19 #define SINGULAR_TEMPLATE_CLASS_h_17 #ifndef TEMPLATE_H 18 #define TEMPLATE_H 20 19 21 20 // include basic definitions … … 24 23 BEGIN_NAMESPACE_SINGULARXX 25 24 26 /** @class T EMPLATEtemplate.h "someRootDirectory/template.h"25 /** @class Template template.h "someRootDirectory/template.h" 27 26 * 28 * Brief description of class T EMPLATE.27 * Brief description of class Template. 29 28 * 30 * Detailed description of class T EMPLATE.29 * Detailed description of class Template. 31 30 * 32 31 * @sa some other classes 33 32 */ 34 class T EMPLATE: public TEMPLATE_BASE_CLASS33 class Template: public TemplateBaseClass 35 34 { 36 35 public: 37 36 /// Name type of *this. 38 typedef T EMPLATE self;37 typedef Template Self; 39 38 40 39 /// My enum. Or yours, if you want! 41 enum My 40 enum MyEnum 42 41 { 43 42 int EVal1, ///< Enum value 1 … … 47 46 /// Default constructor. 48 47 /// And now goes the detailed description.... 49 T EMPLATE();48 Template(); 50 49 51 50 /// Default destructor. 52 /// And now goes its detailed description.... 53 ~TEMPLATE(); 51 ~Template(); 54 52 55 53 56 /** Brief method description. 57 * 58 * Detailed method description. 59 * 60 * @param [in] a some int 61 * @param [out] o integer result 62 * @return information about return value 63 * @sa strcpy2 64 */ 65 int Method( int a, int &o ); 54 /// Brief method description. 55 /// 56 /// Detailed method description. 57 /// 58 /// @return information about return value 59 /// @sa strcpy2 60 /// 61 int someMethod( 62 int a, ///< [in] some int 63 int &o ///< [out] integer result 64 ); 66 65 67 66 /// Example of Copy a string method. 68 67 /// 69 /// The strcpy function copies @a strSource, including68 /// The strcpy2 function copies @a strSource, including 70 69 /// the terminating null character, to the location 71 70 /// specified by @a strDestination. No overflow checking 72 71 /// is performed when strings are copied or appended. 73 /// The behavior of @a strcpy is undefined if the source72 /// The behavior of @a strcpy2 is undefined if the source 74 73 /// and destination strings overlap. 75 74 /// 76 /// @return @a strcpy returns the destination string.75 /// @return @a strcpy2 returns the destination string. 77 76 /// No return value is reserved to indicate an error. 78 /// @sa Method(), wcscpy(), _mbscpy(), strncpy()77 /// @sa someMethod(), wcscpy(), _mbscpy(), strncpy() 79 78 char* strcpy2( 80 char* strDestination, ///< [out] pointer to source null terminated 81 ///< string ... 79 char* strDestination, ///< [out] pointer to source null terminated. 82 80 ///< continue ... 83 const char* strSource ///< [in] pointer to destination memory .... 84 ///< continue ... 81 const char* strSource ///< [in] pointer to destination memory. 85 82 ); 86 83 87 88 84 protected: 89 /// Short description of some flag . Long description: use this format to document a variable or90 /// method85 /// Short description of some flag till first dot. Everything after that will 86 /// be considered as a detaiiled description. 91 87 bool m_bSomeFlag; 92 88 }; … … 95 91 96 92 #endif 97 /* #ifndef SINGULAR_TEMPLATE_CLASS_h_*/93 /* #ifndef TEMPLATE_H */
Note: See TracChangeset
for help on using the changeset viewer.