Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding all_of, any_of, and none_of and corresponding documentation #1181

Merged
merged 6 commits into from Jul 8, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/CMakeLists.txt
Expand Up @@ -44,6 +44,7 @@ set(doxygen_dependencies
"${hpx_SOURCE_DIR}/hpx/exception_list.hpp"
"${hpx_SOURCE_DIR}/hpx/parallel/execution_policy.hpp"
"${hpx_SOURCE_DIR}/hpx/parallel/algorithm.hpp"
"${hpx_SOURCE_DIR}/hpx/parallel/detail/all_any_none.hpp"
"${hpx_SOURCE_DIR}/hpx/parallel/detail/copy.hpp"
"${hpx_SOURCE_DIR}/hpx/parallel/detail/count.hpp"
"${hpx_SOURCE_DIR}/hpx/parallel/detail/fill.hpp"
Expand Down
5 changes: 5 additions & 0 deletions docs/hpx.idx
Expand Up @@ -57,6 +57,11 @@ is_parallel_execution_policy "" "hpx\.parallel\.v1\.is_parallel_executi
is_sequential_execution_policy "" "hpx\.parallel\.v1\.is_sequential_execution_policy.*"


# hpx/parallel/detail/all_any_none.hpp
parallel::all_of "all_of" "hpx\.parallel\.v1\.all_of.*"
parallel::any_of "any_of" "hpx\.parallel\.v1\.any_of.*"
parallel::none_of "none_of" "hpx\.parallel\.v1\.none_of.*"

# hpx/parallel/detail/copy.hpp
parallel::copy "copy" "hpx\.parallel\.v1\.copy_id.*"
parallel::copy_n "copy_n" "hpx\.parallel\.v1\.copy_n.*"
Expand Down
20 changes: 20 additions & 0 deletions hpx/include/parallel_all_of.hpp
@@ -0,0 +1,20 @@
// Copyright (c) 2007-2014 Hartmut Kaiser
// Copyright (c) 2014 Grant Mercer
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

#if !defined(HPX_PARALLEL_ALL_OF_JUL_07_2014_1246PM)
#define HPX_PARALLEL_ALL_OF_JUL_07_2014_1246PM

#include <hpx/hpx_fwd.hpp>

#include <hpx/parallel/exception_list.hpp>
#include <hpx/parallel/detail/dispatch.hpp>

#include <hpx/parallel/detail/all_any_none.hpp>

#undef HPX_PARALLEL_DISPATCH

#endif

20 changes: 20 additions & 0 deletions hpx/include/parallel_any_of.hpp
@@ -0,0 +1,20 @@
// Copyright (c) 2007-2014 Hartmut Kaiser
// Copyright (c) 2014 Grant Mercer
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

#if !defined(HPX_PARALLEL_ANY_OF_JUL_07_2014_1246PM)
#define HPX_PARALLEL_ANY_OF_JUL_07_2014_1246PM

#include <hpx/hpx_fwd.hpp>

#include <hpx/parallel/exception_list.hpp>
#include <hpx/parallel/detail/dispatch.hpp>

#include <hpx/parallel/detail/all_any_none.hpp>

#undef HPX_PARALLEL_DISPATCH
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is that defined? Why does it need to get undefined?


#endif

20 changes: 20 additions & 0 deletions hpx/include/parallel_none_of.hpp
@@ -0,0 +1,20 @@
// Copyright (c) 2007-2014 Hartmut Kaiser
// Copyright (c) 2014 Grant Mercer
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

#if !defined(HPX_PARALLEL_NONE_OF_JUL_07_2014_1244PM)
#define HPX_PARALLEL_NONE_OF_JUL_07_2014_1244PM

#include <hpx/hpx_fwd.hpp>

#include <hpx/parallel/exception_list.hpp>
#include <hpx/parallel/detail/dispatch.hpp>

#include <hpx/parallel/detail/all_any_none.hpp>

#undef HPX_PARALLEL_DISPATCH

#endif

1 change: 1 addition & 0 deletions hpx/parallel/algorithm.hpp
Expand Up @@ -18,6 +18,7 @@
/// See N4071: 1.3/3
#include <algorithm>

#include <hpx/parallel/detail/all_any_none.hpp>
#include <hpx/parallel/detail/copy.hpp>
#include <hpx/parallel/detail/count.hpp>
#include <hpx/parallel/detail/fill.hpp>
Expand Down