Design Patterns
Main Page
Namespaces
Classes
Files
File List
•
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
structural
Definition:
shape_interface.h:11
structural::composite::Watt::value
double value() const
Definition:
watt.cc:14
structural::composite::Watt::Watt
Watt(const double &value)
Definition:
watt.cc:12
structural::composite::Watt
Definition:
watt.h:13
src
structural
src
composite
watt.h
Generated by
1.8.10