Design Patterns
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
watt.h
Go to the documentation of this file.
1 // Based on "Design Patterns: Elements of Reusable Object-Oriented Software"
2 // book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm
3 //
4 // Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan.
5 
6 #ifndef STRUCTURAL_COMPOSITE_WATT_H_
7 #define STRUCTURAL_COMPOSITE_WATT_H_
8 
9 namespace structural
10 {
11 namespace composite
12 {
13 class Watt
14 {
15  public:
16  explicit Watt(const double& value);
17 
18  double value() const;
19  void value(double);
20 
21  private:
22  double value_;
23 };
24 }
25 }
26 
27 #endif
28 
Definition: shape_interface.h:11
double value() const
Definition: watt.cc:14
Watt(const double &value)
Definition: watt.cc:12
Definition: watt.h:13