Jet  v1.3.3
serial.h
Go to the documentation of this file.
1 // Copyright (c) 2018 Doyub Kim
2 //
3 // I am making my contributions/submissions to this project solely in my
4 // personal capacity and am not conveying any rights to any intellectual
5 // property of any third parties.
6 
7 #ifndef INCLUDE_JET_SERIAL_H_
8 #define INCLUDE_JET_SERIAL_H_
9 
10 namespace jet {
11 
25 template <typename RandomIterator, typename T>
27  const RandomIterator& begin, const RandomIterator& end, const T& value);
28 
42 template <typename IndexType, typename Function>
43 void serialFor(
44  IndexType beginIndex, IndexType endIndex, const Function& function);
45 
62 template <typename IndexType, typename Function>
63 void serialFor(
64  IndexType beginIndexX,
65  IndexType endIndexX,
66  IndexType beginIndexY,
67  IndexType endIndexY,
68  const Function& function);
69 
88 template <typename IndexType, typename Function>
89 void serialFor(
90  IndexType beginIndexX,
91  IndexType endIndexX,
92  IndexType beginIndexY,
93  IndexType endIndexY,
94  IndexType beginIndexZ,
95  IndexType endIndexZ,
96  const Function& function);
97 
108 template<typename RandomIterator>
109 void serialSort(RandomIterator begin, RandomIterator end);
110 
125 template<typename RandomIterator, typename SortingFunction>
127  RandomIterator begin,
128  RandomIterator end,
129  const SortingFunction& sortingFunction);
130 
131 } // namespace jet
132 
133 #include "detail/serial-inl.h"
134 
135 #endif // INCLUDE_JET_SERIAL_H_
jet::serialSort
void serialSort(RandomIterator begin, RandomIterator end)
Sorts a container.
jet::serialFor
void serialFor(IndexType beginIndex, IndexType endIndex, const Function &function)
Makes a for-loop from beginIndex to endIndex.
jet
Definition: advection_solver2.h:18
jet::serialFill
void serialFill(const RandomIterator &begin, const RandomIterator &end, const T &value)
Fills from begin to end with value.