29 #ifndef MCTOOLS_DIGITIZATION_SAMPLED_SIGNAL_H 30 #define MCTOOLS_DIGITIZATION_SAMPLED_SIGNAL_H 49 namespace digitization {
169 void set_samples(
const std::vector<int32_t> &,
const bool update_ =
true);
175 void set_sample(
const uint32_t index_,
const int32_t sample_,
const bool update_ =
false);
178 uint32_t
get_sample(
const uint32_t index_)
const;
181 bool is_normal(
const uint32_t index_)
const;
193 double get_time(
const uint32_t index_)
const;
196 uint32_t
get_index(
const double time_)
const;
199 void unset_sample(
const uint32_t index_,
const bool update_ =
false);
208 virtual void tree_dump(std::ostream & out_ = std::clog,
209 const std::string & title_ =
"",
210 const std::string & indent_ =
"",
211 bool inherit_ =
false)
const;
230 const std::size_t first_,
231 const std::size_t last_,
232 const uint32_t flags_ = 0)
const;
242 void print_ascii(std::ostream & out_,
const uint32_t flags_ = 0)
const;
260 double _sampling_frequency_;
261 std::vector<int32_t> _samples_;
264 std::bitset<8> _sampling_status_;
282 #endif // MCTOOLS_DIGITIZATION_SAMPLED_SIGNAL_H #define DR_CLASS_INIT(Introspectable)
Inform Camp that class Introspectable exists and trigger the automatic registration of dedicated refl...
Definition: reflection_interface.h:149
#define DATATOOLS_SERIALIZATION_DECLARATION()
Definition: i_serializable.h:266
#define DR_CLASS_RTTI()
Declare Camp RTTI within class declaration.
Definition: reflection_interface.h:46