ZeroErr
|
#include <in_range.h>
Public Types | |
using | ValueType = T |
using | CorpusType = T |
Public Member Functions | |
InRange (T min, T max) | |
CorpusType | GetRandomCorpus (Rng &rng) const override |
void | Mutate (Rng &rng, CorpusType &v, bool only_shrink) const override |
Public Member Functions inherited from zeroerr::DomainConvertable< T > | |
virtual T | GetValue (const T &v) const |
virtual T | FromValue (const T &v) const |
Public Member Functions inherited from zeroerr::Domain< ValueType, CorpusType > | |
virtual | ~Domain ()=default |
virtual ValueType | GetRandomValue (Rng &rng) const |
virtual CorpusType | FromValue (const ValueType &v) const =0 |
virtual ValueType | GetValue (const CorpusType &v) const =0 |
virtual CorpusType | ParseCorpus (IRObject v) const |
virtual IRObject | SerializeCorpus (const CorpusType &v) const |
virtual void | Mutate (Rng &rng, CorpusType &v, bool only_shrink=false) const =0 |
Public Attributes | |
ValueType | min |
ValueType | max |
using zeroerr::InRange< T >::CorpusType = T |
using zeroerr::InRange< T >::ValueType = T |
|
inline |
|
inlineoverridevirtual |
Implements zeroerr::Domain< ValueType, CorpusType >.
|
inlineoverride |
ValueType zeroerr::InRange< T >::max |
ValueType zeroerr::InRange< T >::min |