|
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 |
| Public Member Functions inherited from zeroerr::Domain< ValueType, ValueType > | |
| virtual | ~Domain ()=default |
| virtual ValueType | GetRandomCorpus (Rng &rng) const=0 |
| virtual ValueType | GetRandomValue (Rng &rng) const |
| virtual ValueType | GetValue (const ValueType &v) const=0 |
| virtual ValueType | ParseCorpus (IRObject v) const |
| virtual IRObject | SerializeCorpus (const ValueType &v) const |
| virtual void | Mutate (Rng &rng, ValueType &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, ValueType >.
|
inlinevirtual |