Changeset 1619:f0700b9e6418 in lemon-0.x
- Timestamp:
- 08/10/05 21:23:51 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2127
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/named-param.dox
r1536 r1619 1 /*!1 *! 2 2 3 3 \page named-param Named Parameters … … 45 45 We have to define a class, let's call it named_fn. Let us assume that 46 46 we would like to use a parameter, called X. In the named_fn class we 47 have to define an _X attribute, and a n X function. The function47 have to define an _X attribute, and a function X. The function 48 48 expects a parameter with the type of _X, and sets the value of 49 49 _X. After setting the value the function returns the class itself. The … … 54 54 55 55 If we instantiate this class, the default values will be set for the 56 attributes (originally the parameters), initially. If we call the X57 function, we get a class with the modified parameter value of56 attributes (originally the parameters), initially. If we call function 57 X, we get a class with the modified parameter value of 58 58 X. Therefore we can modify any parameter-value, independent from the 59 59 order. To run the algorithm we have to call the run() function at the
Note: See TracChangeset
for help on using the changeset viewer.