include
beluga
views
particles.hpp
Go to the documentation of this file.
1
// Copyright 2023 Ekumen, Inc.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#ifndef BELUGA_VIEWS_PARTICLES_HPP
16
#define BELUGA_VIEWS_PARTICLES_HPP
17
18
#include <
beluga/primitives.hpp
>
19
#include <range/v3/view/transform.hpp>
20
26
namespace
beluga::views
{
27
30
inline
constexpr
auto
states
= ranges::views::transform(
beluga::state
);
31
34
inline
constexpr
auto
weights
= ranges::views::transform(
beluga::weight
);
35
36
}
// namespace beluga::views
37
38
#endif
beluga::views
Definition:
elements.hpp:27
primitives.hpp
Implementation of library primitives to abstract member access.
beluga::state
constexpr state_detail::state_fn state
Customization point object for accessing the state of a particle.
Definition:
primitives.hpp:163
beluga::weight
constexpr weight_detail::weight_fn weight
Customization point object for accessing the weight of a particle.
Definition:
primitives.hpp:264
beluga::views::weights
constexpr auto weights
Definition:
particles.hpp:34
beluga::views::states
constexpr auto states
Definition:
particles.hpp:30
beluga
Author(s):
autogenerated on Tue Jul 16 2024 02:59:53