ZeroErr
|
DomainConvertable is a base class for domains that can be converted to and from a ValueType 更多...
#include <domain.h>
Public 成员函数 | |
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 |
|
inlinevirtual |