-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
518 additions
and
462 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/**************************************************************************** | ||
* Copyright (c) 2012-2020 by the ArborX authors * | ||
* All rights reserved. * | ||
* * | ||
* This file is part of the ArborX library. ArborX 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 ARBORX_CRS_GRAPH_WRAPPER_HPP | ||
#define ARBORX_CRS_GRAPH_WRAPPER_HPP | ||
|
||
#include "ArborX_DetailsCrsGraphWrapperImpl.hpp" | ||
|
||
namespace ArborX | ||
{ | ||
|
||
template <typename Tree> | ||
class CrsGraphWrapper | ||
{ | ||
public: | ||
CrsGraphWrapper(Tree const &tree) | ||
: _tree(tree) | ||
{ | ||
} | ||
|
||
template <typename ExecutionSpace, typename Predicates, typename... Args> | ||
void query(ExecutionSpace const &space, Predicates const &predicates, | ||
Args &&... args) const | ||
{ | ||
Details::CrsGraphWrapperImpl::query(space, _tree, predicates, | ||
std::forward<Args>(args)...); | ||
} | ||
|
||
private: | ||
Tree _tree; | ||
}; | ||
|
||
} // namespace ArborX | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.