29 #ifndef TYPES_POWER_HPP 30 #define TYPES_POWER_HPP 67 virtual size_t noOfTraces()
const {
return (*this).rows(); }
virtual T & operator()(size_t sample, size_t trace)
Accesses an element in the matrix. Doesn't check for bounds.
Definition: types_power.hpp:69
PowerTraces(size_t samplesPerTrace, size_t noOfTraces)
Constructs a Matrix with 'samplesPerTrace' * 'noOfTraces' elements.
Definition: types_power.hpp:50
virtual size_t noOfTraces() const
Returns number of power traces.
Definition: types_power.hpp:67
PowerPredictions()
Constructs an empty Matrix with no elements. Needs to be initialized first (init).
Definition: types_power.hpp:86
PowerTraces()
Constructs an empty Matrix with no elements. Needs to be initialized first (init).
Definition: types_power.hpp:48
PowerTraces & operator=(PowerTraces &&other)
Move assignment operator.
Definition: types_power.hpp:57
virtual void init(size_t noOfCandidates, size_t noOfTraces)
Initializes the matrix with a specified number of cols and rows.
Definition: types_power.hpp:100
PowerTraces(PowerTraces &&other)
Move constructor.
Definition: types_power.hpp:55
PowerPredictions(size_t noOfCandidates, size_t noOfTraces)
Constructs a Matrix with 'noOfCandidates' * 'noOfTraces' elements.
Definition: types_power.hpp:88
PowerTraces(size_t samplesPerTrace, size_t noOfTraces, T initVal)
Constructs a Matrix with 'samplesPerTrace' * 'noOfTraces' elements and fills it with 'initVal'.
Definition: types_power.hpp:52
virtual T & operator()(size_t col, size_t row)
Accesses an element in the matrix. Doesn't check for bounds.
Definition: types_basic.hpp:353
This header file contains class templates of basic data containers.
virtual size_t noOfTraces() const
Returns number of power predictions.
Definition: types_power.hpp:105
A class representing a matrix, stored in the machine's free space.
Definition: types_basic.hpp:305
PowerPredictions & operator=(PowerPredictions &&other)
Move assignment operator.
Definition: types_power.hpp:95
~PowerPredictions()
Empty destructor.
Definition: types_power.hpp:98
virtual size_t samplesPerTrace() const
Returns number of samples per trace.
Definition: types_power.hpp:65
A class representing a Matrix with 'noOfTraces' power predictions, with 'noOfCandidates' key candidat...
Definition: types_power.hpp:82
virtual T & operator()(size_t keyCandidate, size_t trace)
Accesses an element in the matrix. Doesn't check for bounds.
Definition: types_power.hpp:107
virtual void init(size_t samplesPerTrace, size_t noOfTraces)
Initializes the matrix with a specified number of cols and rows.
Definition: types_power.hpp:62
PowerPredictions(size_t noOfCandidates, size_t noOfTraces, T initVal)
Constructs a Matrix with 'noOfCandidates' * 'noOfTraces' elements and fills it with 'initVal'.
Definition: types_power.hpp:90
virtual void init(size_t cols, size_t rows)
Initializes the matrix with a specified number of cols and rows.
Definition: types_basic.hpp:332
virtual size_t noOfCandidates() const
Returns number of key candidates per power prediction.
Definition: types_power.hpp:103
PowerPredictions(PowerPredictions &&other)
Move constructor.
Definition: types_power.hpp:93
A class representing a Matrix with 'noOfTraces' power traces, with 'samplesPerTrace' samples per powe...
Definition: types_power.hpp:44
virtual ~PowerTraces()
Empty destructor.
Definition: types_power.hpp:60