Serial.hpp
Go to the documentation of this file.
1 // This code is based on Jet framework.
2 // Copyright (c) 2018 Doyub Kim
3 // CubbyFlow is voxel-based fluid simulation engine for computer games.
4 // Copyright (c) 2020 CubbyFlow Team
5 // Core Part: Chris Ohk, Junwoo Hwang, Jihong Sin, Seungwoo Yoo
6 // AI Part: Dongheon Cho, Minseo Kim
7 // We are making my contributions/submissions to this project solely in our
8 // personal capacity and are not conveying any rights to any intellectual
9 // property of any third parties.
10 
11 #ifndef CUBBYFLOW_SERIAL_HPP
12 #define CUBBYFLOW_SERIAL_HPP
13 
14 namespace CubbyFlow
15 {
29 template <typename RandomIterator, typename T>
30 void SerialFill(const RandomIterator& begin, const RandomIterator& end,
31  const T& value);
32 
46 template <typename IndexType, typename Function>
47 void SerialFor(IndexType beginIndex, IndexType endIndex,
48  const Function& function);
49 
66 template <typename IndexType, typename Function>
67 void SerialFor(IndexType beginIndexX, IndexType endIndexX,
68  IndexType beginIndexY, IndexType endIndexY,
69  const Function& function);
70 
89 template <typename IndexType, typename Function>
90 void SerialFor(IndexType beginIndexX, IndexType endIndexX,
91  IndexType beginIndexY, IndexType endIndexY,
92  IndexType beginIndexZ, IndexType endIndexZ,
93  const Function& function);
94 
105 template <typename RandomIterator>
106 void SerialSort(RandomIterator begin, RandomIterator end);
107 
122 template <typename RandomIterator, typename SortingFunction>
123 void SerialSort(RandomIterator begin, RandomIterator end,
124  const SortingFunction& sortingFunction);
125 } // namespace CubbyFlow
126 
128 
129 #endif
void SerialFill(const RandomIterator &begin, const RandomIterator &end, const T &value)
Fills from begin to end with value.
Definition: Serial-Impl.hpp:20
void SerialFor(IndexType beginIndex, IndexType endIndex, const Function &function)
Makes a for-loop from beginIndex to endIndex.
Definition: Serial-Impl.hpp:30
Definition: pybind11Utils.hpp:20
void SerialSort(RandomIterator begin, RandomIterator end)
Sorts a container.
Definition: Serial-Impl.hpp:72