Changeset 4c09bb in git for templates


Ignore:
Timestamp:
May 28, 2010, 1:33:58 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
Children:
210852a2e5dbf436b657d612faeae814d5a1d252
Parents:
34942f9467977bbb6b5facb760ff89744af44034
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2010-05-28 13:33:58+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:54:58+01:00
Message:
Improved templateForC.h.
Note: for input/output arguments use [in,out]!
Location:
templates
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • templates/template.cc

    r34942f r4c09bb  
    2525int Template::someMethod( int a, int &o )
    2626{
    27   int b;
     27  int t = o;
    2828
    2929  // return something
    30   o = 2;
    31   return -1;
     30  o = a;
     31  return t;
    3232};
  • templates/template.h

    r34942f r4c09bb  
    6161  int someMethod(
    6262             int a, ///< [in] some int
    63              int &o ///< [out] integer result
     63             int &o ///< [in,out] integer input and resulting value
    6464            );
    6565
  • templates/templateForC.h

    r34942f r4c09bb  
    1515/*****************************************************************************/
    1616
    17 #ifndef TEMPLATEFORC_H
    18 #define TEMPLATEFORC_H
     17#ifndef TEMPLATE_FOR_C_H
     18#define TEMPLATE_FOR_C_H
    1919
    2020/** New type name for int. */
     
    3232 * This is function 1.
    3333 *
     34 * @return information about return value
     35 * @sa strcpy
     36 *
    3437 * The end!
    3538 */
    36 void F1(
     39int F1(
    3740        int a1,  /**< [in] some int.
    3841                  * aasas.
    3942                  * bbbb.
    4043                  */
    41         int & r1 /**< [out] integer result */
     44  int & r1 /**< [in,out] integer input and some resulting value */       
    4245       );
    4346
     47
     48
    4449#endif
    45 /* TEMPLATEFORC_H */
     50/* TEMPLATE_FOR_C_H */
Note: See TracChangeset for help on using the changeset viewer.