1 #define EZC3D_API_EXPORTS 19 for (
size_t i = 0; i < nbSubframes(); ++i){
20 std::cout <<
"Subframe = " << i << std::endl;
22 std::cout << std::endl;
28 for (
size_t i = 0; i < nbSubframes(); ++i){
35 return _subframe.size();
40 _subframe.resize(nbSubframes);
46 return _subframe.at(idx);
47 }
catch(std::out_of_range) {
48 throw std::out_of_range(
"Analogs::subframe method is trying to access the subframe " 49 + std::to_string(idx) +
50 " while the maximum number of subframes is " 51 + std::to_string(nbSubframes()) +
".");
58 return _subframe.at(idx);
59 }
catch(std::out_of_range) {
60 throw std::out_of_range(
"Analogs::subframe method is trying to access the subframe " 61 + std::to_string(idx) +
62 " while the maximum number of subframes is " 63 + std::to_string(nbSubframes()) +
".");
70 _subframe.push_back(subframe);
72 if (idx >= nbSubframes())
73 _subframe.resize(idx+1);
74 _subframe[idx] = subframe;
85 for (
SubFrame subframe : subframes())
86 if (!subframe.isempty())
const std::vector< ezc3d::DataNS::AnalogsNS::SubFrame > & subframes() const
Get all the subframes from the analogous data set.
bool isempty() const
Return if the analogs are empty.
void write(std::fstream &f) const
Write the subframes to an opened file.
Declaration of Analogs class.
ezc3d::DataNS::AnalogsNS::SubFrame & subframe_nonConst(size_t idx)
Get a particular subframe of index idx from the analogous data set in order to be modified by the cal...
void print() const
Print the subframes.
Subframe for the analogous data.
const ezc3d::DataNS::AnalogsNS::SubFrame & subframe(size_t idx) const
Get a particular subframe of index idx from the analogous data set.
Analogs()
Create an empty holder for the analogous data.
size_t nbSubframes() const
Get the number of subframes.