Serial.h
Go to the documentation of this file.
1 /*************************************************************************
2 > File Name: Serial.h
3 > Project Name: CubbyFlow
4 > Author: Chan-Ho Chris Ohk
5 > Purpose: Serial functions for CubbyFlow.
6 > Created Time: 2017/07/05
7 > Copyright (c) 2018, Chan-Ho Chris Ohk
8 *************************************************************************/
9 #ifndef CUBBYFLOW_SERIAL_H
10 #define CUBBYFLOW_SERIAL_H
11 
12 namespace CubbyFlow
13 {
27  template <typename RandomIterator, typename T>
28  void SerialFill(const RandomIterator& begin, const RandomIterator& end, const T& value);
29 
43  template <typename IndexType, typename Function>
44  void SerialFor(IndexType beginIndex, IndexType endIndex, const Function& function);
45 
62  template <typename IndexType, typename Function>
63  void SerialFor(
64  IndexType beginIndexX, IndexType endIndexX,
65  IndexType beginIndexY, IndexType endIndexY,
66  const Function& function);
67 
86  template <typename IndexType, typename Function>
87  void SerialFor(
88  IndexType beginIndexX, IndexType endIndexX,
89  IndexType beginIndexY, IndexType endIndexY,
90  IndexType beginIndexZ, IndexType endIndexZ,
91  const Function& function);
92 
103  template<typename RandomIterator>
104  void SerialSort(RandomIterator begin, RandomIterator end);
105 
120  template<typename RandomIterator, typename SortingFunction>
121  void SerialSort(RandomIterator begin, RandomIterator end,
122  const SortingFunction& sortingFunction);
123 }
124 
125 #include <Core/Utils/Serial-Impl.h>
126 
127 #endif
void SerialFill(const RandomIterator &begin, const RandomIterator &end, const T &value)
Fills from begin to end with value.
Definition: Serial-Impl.h:17
void SerialFor(IndexType beginIndex, IndexType endIndex, const Function &function)
Makes a for-loop from beginIndex to endIndex.
Definition: Serial-Impl.h:28
Definition: pybind11Utils.h:24
void SerialSort(RandomIterator begin, RandomIterator end)
Sorts a container.
Definition: Serial-Impl.h:71