ParamDataIndexInfo.hh
1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* ParamDataIndexInfo.hh
*
* Created on: Dec 11, 2012
* Author: f.casimir
*/
#ifndef PARAMDATAINDEXINFO_HH_
#define PARAMDATAINDEXINFO_HH_
#include <list>
namespace AMDA {
namespace Parameters {
struct ParamDataIndexInfo
{
unsigned int _startIndex;
unsigned int _nbDataToProcess;
bool _timeIntToProcessChanged;
bool _noMoreTimeInt;
/**
* @brief Define on which index a time interval ended.
*/
std::list<unsigned int> _endTimeIntIndexList;
ParamDataIndexInfo() : _startIndex(0), _nbDataToProcess(0), _timeIntToProcessChanged(false), _endTimeIntIndexList() {}
ParamDataIndexInfo(const ParamDataIndexInfo &pParamDataIndexInfo) :
_startIndex(pParamDataIndexInfo._startIndex),
_nbDataToProcess(pParamDataIndexInfo._nbDataToProcess),
_timeIntToProcessChanged(pParamDataIndexInfo._timeIntToProcessChanged), _noMoreTimeInt(pParamDataIndexInfo._noMoreTimeInt),
_endTimeIntIndexList(pParamDataIndexInfo._endTimeIntIndexList){}
ParamDataIndexInfo(unsigned int startIndex, unsigned int nbDataToProcess, bool timeIntToProcessChanged = false, bool noMoreTimeInt = false, std::list<unsigned int> endTimeIndexList = std::list<unsigned int>()) :
_startIndex(startIndex),
_nbDataToProcess(nbDataToProcess),
_timeIntToProcessChanged(timeIntToProcessChanged), _noMoreTimeInt(noMoreTimeInt),
_endTimeIntIndexList(endTimeIndexList)
{}
};
} /* namespace Parameters */
} /* namespace AMDA */
#endif /* PARAMDATAINDEXINFO_HH_ */