JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.0p0 Hot Tips | CONFIDENTIAL | CodeSecure Inc |
Provides types and methods for metric granularities and metric computation functions.
| #define CS_METRIC_H | ||
| #define CSMETRIC_GRANULARITY_COUNT | 6 |
| Definition | typedef enum cs_metric_granularity cs_metric_granularity |
|---|---|
| Notes | The possible granularities of a metric.
Used by |
| Definition | typedef cs_result(* cs_metric_calc_analysis_fn_t)(double *, const void *) |
|---|---|
| Notes | Function pointer type to use when defining a new analysis-granularity metric. |
| Definition | typedef cs_result(* cs_metric_calc_directory_fn_t)(cs_directory, double *, const void *) |
|---|---|
| Notes | Function pointer type to use when defining a new directory-granularity metric.
Used by csonar_metric_create_class_directory(). |
| Definition | typedef cs_result(* cs_metric_calc_compunit_fn_t)(cs_uid, double *, const void *) |
|---|---|
| Notes | Function pointer type to use when defining a new compilation-unit-granularity metric. |
| Definition | typedef cs_result(* cs_metric_calc_file_fn_t)(cs_sf, double *, const void *) |
|---|---|
| Notes | Function pointer type to use when defining a new file-granularity metric.
Used by csonar_metric_create_class_file(). |
| Definition | typedef cs_result(* cs_metric_calc_procedure_fn_t)(cs_pdg, double *, const void *) |
|---|---|
| Notes | Function pointer type to use when defining a new procedure-granularity metric. |
| Definition | typedef enum {
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Notes | The possible granularities of a metric.
Used by |
| cs_metric_granularity | cs_metric_granularity_from_string ( cs_const_string gran_str )
Convert the string representation of a metric granularity into a cs_metric_granularity.
|
| cs_const_string | cs_metric_granularity_name ( cs_metric_granularity gran )
Get the string representation of a cs_metric_granularity.
|
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | The cs_metric_granularity corresponding to gran_str. If gran_str does not match a valid granularity, returns csmetric_invalid. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | The cs_const_string representation of gran. |