User Tools

Site Tools


patterns:parameter_object

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
patterns:parameter_object [2013-08-04 15:05] christianpatterns:parameter_object [2013-08-04 15:20] christian
Line 28: Line 28:
 ==== Implementation Hints ==== ==== Implementation Hints ====
  
 +==== Variations ====
  
-===== Variations ===== 
  
 ===== Origin ===== ===== Origin =====
  
 {{page>resources:Arguments and Results#reference}} {{page>resources:Arguments and Results#reference}}
 +
  
 ===== Advantages ===== ===== Advantages =====
Line 44: Line 45:
   * [[principles:More Is More Complex|MIMC]]: An additional class is introduced   * [[principles:More Is More Complex|MIMC]]: An additional class is introduced
   * [[principles:Keep It Simple Stupid|KISS]]: Calling the method is more complex as the parameter object has to be instantiated    * [[principles:Keep It Simple Stupid|KISS]]: Calling the method is more complex as the parameter object has to be instantiated 
 +
  
 ===== Relations to Other Patterns ===== ===== Relations to Other Patterns =====
Line 60: Line 62:
 ==== Pattern Collections ==== ==== Pattern Collections ====
 {{page>collections:Patterns for Arguments and Results#Box}} {{page>collections:Patterns for Arguments and Results#Box}}
 +
  
 ===== Examples ===== ===== Examples =====
Line 75: Line 78:
  
 On the other hand the parameter object pattern is already applied here. The parameters lpProcessAttributes, lpThreadAttributes, and lpStartupInfo are pointers to structures which hold further arguments. This is the procedural equivalent of a parameter object. On the other hand the parameter object pattern is already applied here. The parameters lpProcessAttributes, lpThreadAttributes, and lpStartupInfo are pointers to structures which hold further arguments. This is the procedural equivalent of a parameter object.
 +
  
 ===== Description Status ===== ===== Description Status =====
Line 81: Line 85:
 /*[[wiki:Incomplete]]*/ /*[[wiki:Incomplete]]*/
 /*[[wiki:Complete]]*/ /*[[wiki:Complete]]*/
 +
  
 ===== Further Reading ===== ===== Further Reading =====
Line 86: Line 91:
   * [[wiki>Parameter Object]]   * [[wiki>Parameter Object]]
   * [[wiki>Argument Object]]   * [[wiki>Argument Object]]
 +
  
 ===== Discussion ===== ===== Discussion =====
  
 Discuss this wiki article and the pattern on the corresponding [[talk:patterns:Parameter Object|talk page]]. Discuss this wiki article and the pattern on the corresponding [[talk:patterns:Parameter Object|talk page]].
patterns/parameter_object.txt · Last modified: 2021-10-18 22:24 by christian