vcsl_radian.h
Go to the documentation of this file.
1 #ifndef vcsl_radian_h_
2 #define vcsl_radian_h_
3 //:
4 // \file
5 // \brief Standard unit associated to the angle dimension
6 // \author Francois BERTEL
7 //
8 // \verbatim
9 // Modifications
10 // 2000/06/28 Francois BERTEL Creation. Adapted from IUE
11 // 2001/04/10 Ian Scott (Manchester) Converted perceps header to doxygen
12 // 2004/09/17 Peter Vanroose made "instance_" a local static variable of method instance()
13 // \endverbatim
14 
15 #include <vcsl/vcsl_angle_unit.h>
16 #include <vcsl/vcsl_radian_sptr.h>
17 
18 //: Standard unit associated to the angle dimension
19 // See also \b vcsl_degree
21  : public vcsl_angle_unit
22 {
23  //***************************************************************************
24  // Constructors/Destructor
25  //***************************************************************************
26 
27  // Default constructor
28  vcsl_radian() = default;
29 
30  public:
31  // Destructor
32  ~vcsl_radian() override = default;
33 
34  //***************************************************************************
35  // Status report
36  //***************************************************************************
37 
38  //: Returns the number of units of `this' equal of the standard_unit for the dimension
39  // Pure virtual function of vcsl_unit
40  double units_per_standard_unit() const override { return 1; }
41 
42  //***************************************************************************
43  // Singleton pattern
44  //***************************************************************************
45 
46  //: Return the reference to the unique vcsl_radian object
47  static vcsl_radian_sptr instance();
48 };
49 
50 #endif // vcsl_radian_h_
static vcsl_radian_sptr instance()
Return the reference to the unique vcsl_radian object.
Definition: vcsl_radian.cxx:7
~vcsl_radian() override=default
double units_per_standard_unit() const override
Returns the number of units of ‘this’ equal of the standard_unit for the dimension.
Definition: vcsl_radian.h:40
Abstract unit associated to the angle dimension.
Abstract unit associated to the angle dimension.
vcsl_radian()=default
Standard unit associated to the angle dimension.
Definition: vcsl_radian.h:20