- Timestamp:
- May 26, 2010, 3:02:51 AM (13 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 86af4354bff633abee51c0986c90e8869b2d30af
- Parents:
- 7dc3e1ccdbb09e272b92ea5e626578cdfadb0864
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2010-05-26 03:02:51+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:54:57+01:00
- Location:
- templates
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
templates/template.c
r7dc3e1c r4f6451 1 // -*- c++ -*- 2 /***************************************************************************//** 3 * @file template.c 1 //***************************************************************************** 2 // Computer Algebra System SINGULAR 3 // Copyright: See COPYING file that comes with this distribution 4 //***************************************************************************** 5 /** @file template.c 4 6 * 5 * This file implements the class TEMPLATE. AAA. BBB. 6 * CCC. 7 * This file implements the class TEMPLATE. 7 8 * 8 * DDDD.9 * ABSTRACT: We need this for something... 9 10 * 10 11 * @author Oleksandr Motsak 11 12 * 12 * @par Copyright: 13 * (C) by The SINGULAR Team, see COPYING file 14 * EEE. 13 * @internal @version \$Id$ 15 14 * 16 * FFFFFFFF. 17 * 18 * FFFFFFFFFFFFFFFFFFFFFFFFF. 19 * @internal 20 * @version \$Id$ 21 * 22 ******************************************************************************/ 15 **/ 16 //***************************************************************************** 23 17 24 18 // include header file … … 30 24 31 25 32 33 26 END_NAMESPACE_SINGULARXX -
templates/template.h
r7dc3e1c r4f6451 1 // -*- c++ -*- 2 /***************************************************************************//** 3 * @file template.h 1 //***************************************************************************** 2 // Computer Algebra System SINGULAR 3 // Copyright: See COPYING file that comes with this distribution 4 //***************************************************************************** 5 /** @file template.h 4 6 * 5 * This file defines the class TEMPLATE. AAA. BBB. 6 * CCC. 7 * This file defines the class TEMPLATE. 7 8 * 8 * DDDD.9 * ABSTRACT: We need this for something... 9 10 * 10 11 * @author Oleksandr Motsak 11 12 * 12 * @par Copyright: 13 * (C) by The SINGULAR Team, see COPYING file 14 * EEE. 13 * @internal @version \$Id$ 15 14 * 16 * FFFFFFFF. 17 * 18 * FFFFFFFFFFFFFFFFFFFFFFFFF. 19 * @internal 20 * @version \$Id$ 21 * 22 ******************************************************************************/ 15 **/ 16 //***************************************************************************** 17 18 #ifndef SINGULAR_TEMPLATE_CLASS_h_ 19 #define SINGULAR_TEMPLATE_CLASS_h_ 23 20 24 21 // include basic definitions 25 22 #include "singularxx_defs.h" 26 23 27 #ifndef SINGULAR_TEMPLATE_CLASS_h_28 #define SINGULAR_TEMPLATE_CLASS_h_29 30 24 BEGIN_NAMESPACE_SINGULARXX 31 25 32 /** @class TEMPLATE template.h somRootDirectory/template.h26 /** @class TEMPLATE template.h "someRootDirectory/template.h" 33 27 * 34 * [brief description of class TEMPLATE].28 * Brief description of class TEMPLATE. 35 29 * 36 * [detailed description of class TEMPLATE]. 37 * AAAA. 38 * @par blah, blah, ..., blah. 30 * Detailed description of class TEMPLATE. 39 31 * 40 * @sa s ee alsos32 * @sa some other classes 41 33 */ 42 class TEMPLATE: public TEMPLATE_BASE_CLASS // doxygen will document the inheritance automatically34 class TEMPLATE: public TEMPLATE_BASE_CLASS 43 35 { 44 45 36 public: 46 /// Name type of *this. 37 /// Name type of *this. 47 38 typedef TEMPLATE self; 48 39 49 /// My enum. Not yours!40 /// My enum. Or yours, if you want! 50 41 enum My 51 42 { … … 54 45 }; 55 46 56 /// Default constructor. And now goes the detailed description....57 /// 47 /// Default constructor. 48 /// And now goes the detailed description.... 58 49 TEMPLATE(); 59 50 … … 63 54 64 55 65 /** Brief : [method description].56 /** Brief method description. 66 57 * 67 * Long: [detailed method description]58 * Detailed method description. 68 59 * 69 60 * @param [in] a some int 70 * @param [in] b another int 71 * @param [out] result integer result 72 * 73 * @return [information about return value] 74 * @sa [see also section] 75 * @note This will be hilighted in the documentation as a special note. 76 * @warning [any warning if necessary] 77 * @exception std::exception Some explanation of what causes this exception. 61 * @param [out] o integer result 62 * @return information about return value 63 * @sa strcpy2 78 64 */ 79 void MethodTemplate( const int a, const int b, int & result);65 int Method( int a, int &o ); 80 66 67 /// Example of Copy a string method. 81 68 /// 82 /// Brief: Example of Copy a string method. 83 /// 84 /// Long: The strcpy function copies @a strSource, including 69 /// The strcpy function copies @a strSource, including 85 70 /// the terminating null character, to the location 86 71 /// specified by @a strDestination. No overflow checking … … 91 76 /// @return @a strcpy returns the destination string. 92 77 /// No return value is reserved to indicate an error. 93 /// @sa wcscpy(), _mbscpy(), strncpy() 94 /// 78 /// @sa Method(), wcscpy(), _mbscpy(), strncpy() 95 79 char* strcpy2( 96 80 char* strDestination, ///< [out] pointer to source null terminated 97 81 ///< string ... 98 82 ///< continue ... 99 const char* strSource ,///< [in] pointer to destination memory ....83 const char* strSource ///< [in] pointer to destination memory .... 100 84 ///< continue ... 101 const int a ///< [in] counter102 85 ); 103 86 104 87 105 88 protected: 106 107 /// Short description108 bool m_bAnotherFlag;109 110 89 /// Short description of some flag. Long description: use this format to document a variable or 111 90 /// method 112 91 bool m_bSomeFlag; 113 114 92 }; 115 93 -
templates/test.h
r7dc3e1c r4f6451 1 /***************************************************************************//** 2 * @file test.h 1 //***************************************************************************** 2 // Computer Algebra System SINGULAR 3 // Copyright: See COPYING file that comes with this distribution 4 //***************************************************************************** 5 /** @file test.h 6 * 7 * Let's try to put parameters where they should be, compare F1 and F2. 3 8 * 4 * Let's try to put parameters where they should be in F2...9 * ABSTRACT: Issue reported: https://bugzilla.gnome.org/show_bug.cgi?id=316311 5 10 * 6 * Issue reported: https://bugzilla.gnome.org/show_bug.cgi?id=31631111 * @author Oleksandr Motsak 7 12 * 8 ******************************************************************************/ 13 * @internal @version \$Id$ 14 * 15 **/ 16 //***************************************************************************** 9 17 10 18 /** F1. 19 * 20 * This is function 1. 11 21 * 12 22 * @param [in] a1 some int … … 22 32 /** F2. 23 33 * 34 * This is function 2. 35 * 24 36 * @params <- We would prefere all parameters to be here... 25 37 *
Note: See TracChangeset
for help on using the changeset viewer.