• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nasa / cml / 29858620420

21 Jul 2026 06:45PM UTC coverage: 85.517% (+0.2%) from 85.284%
29858620420

push

github

web-flow
Enable warnings as errors and burn down warnings (#51)

As many warnings as possible were enabled, and all compiler complaints
were addressed. Note that there is one major warning missing here:
-Woverloaded-virtual. This warning should be added in the future, but
requires some more involved architectural work on multiple models. It's
best saved for a few dedicated pull requests.

The C version of the double to words model was also deprecated. It's
unused and wasn't worth updating to fix the compiler warnings.

Refs #42

7833 of 8923 branches covered (87.78%)

Branch coverage included in aggregate %.

310 of 539 new or added lines in 196 files covered. (57.51%)

6 existing lines in 6 files now uncovered.

17930 of 21203 relevant lines covered (84.56%)

110707.49 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/models/utilities/table_interp_cpp/include/single_input_table_for_angles.hh
1
/*******************************************************************************
2
PURPOSE:
3
  (Table lookup model for a special case where the dependent variable(s)
4
  represent angles and consequently may wrap around.  This table-type is
5
  restricted to a single independent variable but may still have multiple
6
  dependent angular variables)
7

8
ASSUMPTIONS:
9
  (All dependent variables are angles, and are either all degrees or all
10
  radians, no mixing.)
11

12
LIMITATIONS:
13
  (Limited to a single independent variable.  Interpolation across
14
  multiple wraps is not universally defined.)
15

16
 LIBRARY DEPENDENCY:
17
    ((../src/single_input_table_for_angles.cc)
18
    )
19

20
PROGRAMMERS:
21
  (((Gary Turner) (OSR) (August 2014) (New implementation for C++ models))
22
   ((Bingquan Wang) (OSR) (August 2014) (IV&V cleanup and refactored))
23
  )
24
*******************************************************************************/
25
#ifndef CML_SINGLE_INPUT_TABLE_FOR_ANGLES_HH
26
#define CML_SINGLE_INPUT_TABLE_FOR_ANGLES_HH
27

28
#include <cstdarg> // for variadic function arguments
29

30
#include "generic_single_input_table.hh"
31

32
class SingleInputTableForAngles : public GenericSingleInputTable
33
{
34
 public:
35
  bool output_in_radians; /* (--)
36
       Flag indicating that the output data will be interpreted as radians.
37
       Set to false for degrees.  Default: true (radians). */
38
 protected:
39
  double half_circle; /* (--)
40
      Value of a half-circle in either radians or degrees, depending oni
41
      the setting output_in_radians. */
42
 public:
43
  SingleInputTableForAngles( bool output_in_radians = true);
44
  SingleInputTableForAngles( double *dependent_variables,
45
                             size_t num_vars,
46
                             bool output_in_radians = true);
47
  SingleInputTableForAngles( double & dependent_var,
48
                             bool output_in_radians = true);
49
  SingleInputTableForAngles( const DoublePtrVec & dependent_variables,
50
                             bool output_in_radians = true);
NEW
51
  ~SingleInputTableForAngles() override = default;
×
52

53
  bool initialize() override;
54
 protected:
55
  bool generate_output() override;
56
  void bound_to_half_circle( double & angle);
57
 private:
58
  // Disable the copy/assignment operators
59
  SingleInputTableForAngles (const SingleInputTableForAngles&);
60
  SingleInputTableForAngles& operator = (const SingleInputTableForAngles&);
61
};
62
#endif
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc