LCOV - code coverage report
Current view: top level - home/fuchsto/workspaces/dash-development/dart-impl/base/include/dash/dart/base - locality.h (source / functions) Hit Total Coverage
Test: coverage.info.cleaned Lines: 6 8 75.0 %
Date: 2016-06-29 12:30:40 Functions: 3 4 75.0 %

          Line data    Source code
       1             : /**
       2             :  * \file dash/dart/base/locality.h
       3             :  */
       4             : #ifndef DART__BASE__LOCALITY_H__
       5             : #define DART__BASE__LOCALITY_H__
       6             : 
       7             : #include <dash/dart/if/dart_types.h>
       8             : 
       9             : #include <dash/dart/base/internal/domain_locality.h>
      10             : 
      11             : 
      12             : /* ======================================================================== *
      13             :  * Init / Finalize                                                          *
      14             :  * ======================================================================== */
      15             : 
      16             : dart_ret_t dart__base__locality__init();
      17             : 
      18             : dart_ret_t dart__base__locality__finalize();
      19             : 
      20             : /* ======================================================================== *
      21             :  * Create / Delete                                                          *
      22             :  * ======================================================================== */
      23             : 
      24             : dart_ret_t dart__base__locality__create(
      25             :   dart_team_t team);
      26             : 
      27             : dart_ret_t dart__base__locality__delete(
      28             :   dart_team_t team);
      29             : 
      30             : /* ======================================================================== *
      31             :  * Domain Locality                                                          *
      32             :  * ======================================================================== */
      33             : 
      34             : static inline
      35          19 : dart_ret_t dart__base__locality__copy_domain(
      36             :   const dart_domain_locality_t     * domain_in,
      37             :   dart_domain_locality_t           * domain_out)
      38             : {
      39          19 :   return dart__base__locality__domain__copy(domain_in, domain_out);
      40             : }
      41             : 
      42             : static inline
      43          14 : dart_ret_t dart__base__locality__destruct_domain(
      44             :   dart_domain_locality_t           * domain)
      45             : {
      46          14 :   return dart__base__locality__domain__destruct(domain);
      47             : }
      48             : 
      49             : static inline
      50           7 : dart_ret_t dart__base__locality__domain_select_subdomains(
      51             :   dart_domain_locality_t           * domain,
      52             :   const char                      ** subdomain_tags,
      53             :   int                                num_subdomain_tags)
      54             : {
      55             :   static const int remove_matches = 0;
      56           7 :   return dart__base__locality__domain__filter_subdomains(
      57             :            domain, subdomain_tags, num_subdomain_tags, remove_matches);
      58             : }
      59             : 
      60             : static inline
      61           0 : dart_ret_t dart__base__locality__domain_exclude_subdomains(
      62             :   dart_domain_locality_t           * domain,
      63             :   const char                      ** subdomain_tags,
      64             :   int                                num_subdomain_tags)
      65             : {
      66             :   static const int remove_matches = 1;
      67           0 :   return dart__base__locality__domain__filter_subdomains(
      68             :            domain, subdomain_tags, num_subdomain_tags, remove_matches);
      69             : }
      70             : 
      71             : dart_ret_t dart__base__locality__team_domain(
      72             :   dart_team_t                        team,
      73             :   dart_domain_locality_t          ** domain_out);
      74             : 
      75             : dart_ret_t dart__base__locality__domain(
      76             :   const dart_domain_locality_t     * domain_in,
      77             :   const char                       * domain_tag,
      78             :   dart_domain_locality_t          ** domain_out);
      79             : 
      80             : dart_ret_t dart__base__locality__domain_split_tags(
      81             :   const dart_domain_locality_t     * domain_in,
      82             :   dart_locality_scope_t              scope,
      83             :   int                                num_parts,
      84             :   int                             ** group_sizes_out,
      85             :   char                          **** group_domain_tags_out);
      86             : 
      87             : dart_ret_t dart__base__locality__domain_group(
      88             :   dart_domain_locality_t           * domain,
      89             :   int                                group_size,
      90             :   const char                      ** group_subdomain_tags,
      91             :   char                             * group_domain_tag_out);
      92             : 
      93             : dart_ret_t dart__base__locality__scope_domains(
      94             :   const dart_domain_locality_t     * domain_in,
      95             :   dart_locality_scope_t              scope,
      96             :   int                              * num_domains_out,
      97             :   char                           *** domain_tags_out);
      98             : 
      99             : /* ======================================================================== *
     100             :  * Unit Locality                                                            *
     101             :  * ======================================================================== */
     102             : 
     103             : dart_ret_t dart__base__locality__unit(
     104             :   dart_team_t                        team,
     105             :   dart_unit_t                        unit,
     106             :   dart_unit_locality_t            ** locality);
     107             : 
     108             : #endif /* DART__BASE__LOCALITY_H__ */

Generated by: LCOV version 1.12