|
HART
0.1.0
High level Audio Regression and Testing
|
Check audio. More...
Classes | |
| class | EqualsTo< SampleType > |
| Checks whether the audio is identical to some signal. More... | |
| class | Matcher< SampleType > |
| Base for audio matchers. More... | |
| struct | MatcherFailureDetails |
| Details about matcher failure. More... | |
| class | PeaksAt< SampleType > |
| Checks whether the audio peaks at specific level. More... | |
| class | PeaksBelow< SampleType > |
| Checks whether the audio peaks below specific level. More... | |
Macros | |
| #define | HART_MATCHER_DEFINE_COPY_AND_MOVE(ClassName) |
| Defines hart::Matcher::copy() and hart::Matcher::move() methods. | |
| #define | HART_MATCHER_FORBID_COPY_AND_MOVE |
| Forbids hart::Matcher::copy() and hart::Matcher::move() methods. | |
Functions | |
| template<typename SampleType > | |
| std::ostream & | operator<< (std::ostream &stream, const Matcher< SampleType > &dsp) |
| Prints readable text representation of the Matcher object into the I/O stream. | |
Check audio.
| #define HART_MATCHER_DEFINE_COPY_AND_MOVE | ( | ClassName | ) |
Defines hart::Matcher::copy() and hart::Matcher::move() methods.
Put this into your class body's public section if either is true:
If neither of those is true, or you're unsure, use HART_MATCHER_FORBID_COPY_AND_MOVE instead
Despite returning a smart pointer to an abstract Matcher class, those two methods must construct an object of a specific class, hence the mandatory boilerplate methods - sorry!
| ClassName | Name of your class |
Definition at line 117 of file hart_matcher.hpp.
| #define HART_MATCHER_FORBID_COPY_AND_MOVE |
Forbids hart::Matcher::copy() and hart::Matcher::move() methods.
Put this into your class body's public section if either is true:
Otherwise, use HART_MATCHER_DEFINE_COPY_AND_MOVE() instead. Obviously, you won't be able to pass your class to the host by reference, copy or explicit move, but you still can pass it wrapped into a smart pointer like so:
But it's still better to get your move and copy semantics figured out - this is a perfect chance to stress-test your effect's resource management, among other things!
Definition at line 140 of file hart_matcher.hpp.
|
related |
Prints readable text representation of the Matcher object into the I/O stream.
Definition at line 99 of file hart_matcher.hpp.