LCOV - code coverage report
Current view: top level - data/include/set - data_visible_classifier.inl (source / functions) Hit Total Coverage
Test: crystal-facet-uml_v1.57.0_covts Lines: 23 27 85.2 %
Date: 2024-04-07 11:14:42 Functions: 8 9 88.9 %

          Line data    Source code
       1             : /* File: data_visible_classifier.inl; Copyright and License: see below */
       2             : 
       3           3 : static inline void data_visible_classifier_init ( data_visible_classifier_t *this_, 
       4             :                                                   const data_classifier_t *classifier, 
       5             :                                                   const data_diagramelement_t *diagramelement  )
       6             : {
       7           3 :     data_classifier_copy( &((*this_).classifier), classifier );
       8           3 :     data_diagramelement_copy( &((*this_).diagramelement), diagramelement );
       9           3 : }
      10             : 
      11         697 : static inline void data_visible_classifier_init_empty ( data_visible_classifier_t *this_ )
      12             : {
      13         697 :     data_classifier_init_empty( &((*this_).classifier) );
      14         697 :     data_diagramelement_init_empty( &((*this_).diagramelement) );
      15         697 : }
      16             : 
      17           0 : static inline void data_visible_classifier_copy ( data_visible_classifier_t *this_, const data_visible_classifier_t *original )
      18             : {
      19           0 :     data_classifier_copy( &((*this_).classifier), &((*original).classifier) );
      20           0 :     data_diagramelement_copy( &((*this_).diagramelement), &((*original).diagramelement) );
      21           0 : }
      22             : 
      23             : static inline void data_visible_classifier_replace ( data_visible_classifier_t *this_, const data_visible_classifier_t *that )
      24             : {
      25             :     data_classifier_replace( &((*this_).classifier), &((*that).classifier) );
      26             :     data_diagramelement_replace( &((*this_).diagramelement), &((*that).diagramelement) );
      27             : }
      28             : 
      29          32 : static inline void data_visible_classifier_destroy ( data_visible_classifier_t *this_ )
      30             : {
      31          32 :     data_classifier_destroy( &((*this_).classifier) );
      32          32 :     data_diagramelement_destroy( &((*this_).diagramelement) );
      33          32 : }
      34             : 
      35         793 : static inline data_classifier_t *data_visible_classifier_get_classifier_ptr ( data_visible_classifier_t *this_ )
      36             : {
      37         793 :     return &((*this_).classifier);
      38             : }
      39             : 
      40      566301 : static inline const data_classifier_t *data_visible_classifier_get_classifier_const ( const data_visible_classifier_t *this_ )
      41             : {
      42      566301 :     return &((*this_).classifier);
      43             : }
      44             : 
      45         697 : static inline data_diagramelement_t *data_visible_classifier_get_diagramelement_ptr ( data_visible_classifier_t *this_ )
      46             : {
      47         697 :     return &((*this_).diagramelement);
      48             : }
      49             : 
      50       35441 : static inline const data_diagramelement_t *data_visible_classifier_get_diagramelement_const ( const data_visible_classifier_t *this_ )
      51             : {
      52       35441 :     return &((*this_).diagramelement);
      53             : }
      54             : 
      55      172763 : static inline bool data_visible_classifier_is_valid ( const data_visible_classifier_t *this_ )
      56             : {
      57             :     bool result;
      58      172763 :     result = data_classifier_is_valid( &((*this_).classifier) ) && data_diagramelement_is_valid( &((*this_).diagramelement) );
      59      172763 :     return result;
      60             : }
      61             : 
      62             : 
      63             : /*
      64             : Copyright 2016-2024 Andreas Warnke
      65             : 
      66             : Licensed under the Apache License, Version 2.0 (the "License");
      67             : you may not use this file except in compliance with the License.
      68             : You may obtain a copy of the License at
      69             : 
      70             :     http://www.apache.org/licenses/LICENSE-2.0
      71             : 
      72             : Unless required by applicable law or agreed to in writing, software
      73             : distributed under the License is distributed on an "AS IS" BASIS,
      74             : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      75             : See the License for the specific language governing permissions and
      76             : limitations under the License.
      77             : */

Generated by: LCOV version 1.16