PhoenixClockMock
1.0.0
Tool to manipulate mock of clock
Loading...
Searching...
No Matches
phoenix_clock_mock.cpp
Go to the documentation of this file.
1
/***************************************
2
Auteur : Pierre Aubert
3
Mail : pierre.aubert@lapp.in2p3.fr
4
Licence : CeCILL-C
5
****************************************/
6
7
#include "
phoenix_clock_mock.h
"
8
10
13
void
concatenateVecTime
(VecTime & vecOutput,
const
VecTime vecInput){
14
for
(VecTime::const_iterator it(vecInput.begin()); it != vecInput.end(); ++it){
15
vecOutput.push_back(*it);
16
}
17
18
}
19
21
26
void
splitVecTime
(VecTime & vecOutput,
const
VecTime vecInput,
27
size_t
offsetPart,
size_t
sizePart)
28
{
29
size_t
maxIndex(std::min(offsetPart + sizePart, vecInput.size()));
30
for
(
size_t
i(offsetPart); i < maxIndex; ++i){
31
vecOutput.push_back(vecInput[i]);
32
}
33
}
34
35
36
37
38
concatenateVecTime
void concatenateVecTime(VecTime &vecOutput, const VecTime vecInput)
Concatenate vector of message into an other one.
Definition
phoenix_clock_mock.cpp:13
splitVecTime
void splitVecTime(VecTime &vecOutput, const VecTime vecInput, size_t offsetPart, size_t sizePart)
Split a vector of messages into an other.
Definition
phoenix_clock_mock.cpp:26
phoenix_clock_mock.h
src
phoenix_clock_mock.cpp
Generated by
1.13.2