ZeroErr
|
DomainConvertable is a base class for domains that can be converted to and from a ValueType. More...
#include <domain.h>
Public Member Functions | |
virtual ValueType | GetValue (const CorpusType &v) const |
virtual CorpusType | FromValue (const ValueType &v) const |
![]() | |
virtual | ~Domain ()=default |
virtual CorpusType | GetRandomCorpus (Rng &rng) const =0 |
virtual ValueType | GetRandomValue (Rng &rng) const |
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 |
DomainConvertable is a base class for domains that can be converted to and from a ValueType.
This class provides default implementations for the GetValue and FromValue methods. It is used to convert between the corpus types and the value types.
|
inlinevirtual |
Implements zeroerr::Domain< ValueType, CorpusType >.
|
inlinevirtual |
Implements zeroerr::Domain< ValueType, CorpusType >.