libkovan  1
The kovan standard library
segment.hpp
Go to the documentation of this file.
1 #ifndef _KOVAN_SEGMENT_HPP_
2 #define _KOVAN_SEGMENT_HPP_
3 
4 #include <vector>
5 
6 struct Segment
7 {
8  unsigned start;
9  unsigned end;
10  unsigned startValue;
11  unsigned endValue;
12 };
13 
14 template<typename T>
15 class Segmenter
16 {
17 public:
18  typedef T type;
19  virtual std::vector<Segment> findSegments(const T *const data, const unsigned size) const = 0;
20 };
21 
22 std::vector<Segment> coalesceSegments(const std::vector<Segment> &segments);
23 
24 #endif
unsigned endValue
Definition: segment.hpp:11
Definition: segment.hpp:15
unsigned startValue
Definition: segment.hpp:10
std::vector< Segment > coalesceSegments(const std::vector< Segment > &segments)
unsigned end
Definition: segment.hpp:9
Definition: segment.hpp:6
T type
Definition: segment.hpp:18
virtual std::vector< Segment > findSegments(const T *const data, const unsigned size) const =0
unsigned start
Definition: segment.hpp:8