Blame view

src/Parameters/ParamDataIndexInfo.hh 1.45 KB
fbe3c2bb   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * 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;
fa4b7852   Benjamin Renard   Fix bug around ti...
21
22
	bool _noMoreTimeInt;

fbe3c2bb   Benjamin Renard   First commit
23
24
25
26
27
	/**
	 * @brief Define on which index a time interval ended.
	 */
	std::list<unsigned int> _endTimeIntIndexList;

c6a67968   Benjamin Renard   Fix some violatio...
28
	ParamDataIndexInfo() : _startIndex(0), _nbDataToProcess(0), _timeIntToProcessChanged(false), _noMoreTimeInt(false), _endTimeIntIndexList() {}
fbe3c2bb   Benjamin Renard   First commit
29
30
31
32

	ParamDataIndexInfo(const ParamDataIndexInfo &pParamDataIndexInfo) :
		_startIndex(pParamDataIndexInfo._startIndex),
		_nbDataToProcess(pParamDataIndexInfo._nbDataToProcess),
fa4b7852   Benjamin Renard   Fix bug around ti...
33
		_timeIntToProcessChanged(pParamDataIndexInfo._timeIntToProcessChanged), _noMoreTimeInt(pParamDataIndexInfo._noMoreTimeInt),
fbe3c2bb   Benjamin Renard   First commit
34
35
		_endTimeIntIndexList(pParamDataIndexInfo._endTimeIntIndexList){}

fa4b7852   Benjamin Renard   Fix bug around ti...
36
	ParamDataIndexInfo(unsigned int startIndex, unsigned int nbDataToProcess, bool timeIntToProcessChanged = false, bool noMoreTimeInt = false, std::list<unsigned int> endTimeIndexList = std::list<unsigned int>()) :
fbe3c2bb   Benjamin Renard   First commit
37
38
		_startIndex(startIndex),
		_nbDataToProcess(nbDataToProcess),
fa4b7852   Benjamin Renard   Fix bug around ti...
39
		_timeIntToProcessChanged(timeIntToProcessChanged), _noMoreTimeInt(noMoreTimeInt),
fbe3c2bb   Benjamin Renard   First commit
40
41
42
43
44
45
46
47
		_endTimeIntIndexList(endTimeIndexList)
		{}
};

} /* namespace Parameters */
} /* namespace AMDA */

#endif /* PARAMDATAINDEXINFO_HH_ */