<commit_before>/****************************************************************************
 * Copyright (c) 2012-2018 by the DataTransferKit authors                   *
 * All rights reserved.                                                     *
 *                                                                          *
 * This file is part of the DataTransferKit library. DataTransferKit is     *
 * distributed under a BSD 3-clause license. For the licensing terms see    *
 * the LICENSE file in the top-level directory.                             *
 *                                                                          *
 * SPDX-License-Identifier: BSD-3-Clause                                    *
 ****************************************************************************/

#ifndef DTK_LINEAR_BVH_DEF_HPP
#define DTK_LINEAR_BVH_DEF_HPP

namespace DataTransferKit
{

// FIXME nothing here...

} // namespace DataTransferKit

// Explicit instantiation macro
#define DTK_LINEAR_BVH_INSTANT( NODE )                                         \
    template class BoundingVolumeHierarchy<typename NODE::device_type>;

#endif
<commit_msg>Add a few static assertions to check existence of a few free functions that operate on geometries<commit_after>/****************************************************************************
 * Copyright (c) 2012-2018 by the DataTransferKit authors                   *
 * All rights reserved.                                                     *
 *                                                                          *
 * This file is part of the DataTransferKit library. DataTransferKit is     *
 * distributed under a BSD 3-clause license. For the licensing terms see    *
 * the LICENSE file in the top-level directory.                             *
 *                                                                          *
 * SPDX-License-Identifier: BSD-3-Clause                                    *
 ****************************************************************************/

#ifndef DTK_LINEAR_BVH_DEF_HPP
#define DTK_LINEAR_BVH_DEF_HPP

#include <DTK_Box.hpp>
#include <DTK_DetailsConcepts.hpp>
#include <DTK_Point.hpp>

namespace DataTransferKit
{

// FIXME nothing here...

// FIXME not sure where to put these
static_assert( Details::is_expandable<Box, Box>::value, "" );
static_assert( Details::is_expandable<Box, Box const>::value, "" );
static_assert( Details::is_expandable<Box, Point>::value, "" );
static_assert( Details::is_expandable<Box, Point const>::value, "" );
static_assert( Details::has_centroid<Box, Point>::value, "" );
static_assert( Details::has_centroid<Box const, Point>::value, "" );
// NOTE assertion below only holds because Details::centroid(Point const & ,
// Point & ) has not been implemented and may change in the future
static_assert( !Details::has_centroid<Point, Point>::value, "" );

} // namespace DataTransferKit

// Explicit instantiation macro
#define DTK_LINEAR_BVH_INSTANT( NODE )                                         \
    template class BoundingVolumeHierarchy<typename NODE::device_type>;

#endif

{'fraction_non_alphanumeric': 0.17233632862644416, 'fraction_numerical': 0.006418485237483954, 'mean_word_length': 2.070935960591133, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 22, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6876087', 'n_tokens_mistral': 730, 'n_tokens_neox': 680, 'n_words': 198}