libhext: C++ Library Documentation
1.0.12-3ea013c
|
Abstract base for every ValueTest. More...
Public Member Functions | |
ValueTest () noexcept=default | |
ValueTest (const ValueTest &)=default | |
ValueTest (ValueTest &&) noexcept=default | |
ValueTest & | operator= (const ValueTest &)=default |
ValueTest & | operator= (ValueTest &&) noexcept=default |
virtual | ~ValueTest () noexcept=default |
virtual std::unique_ptr< ValueTest > | clone () const =0 |
Clones derived object. More... | |
virtual bool | test (const char *) const =0 |
Returns true if subject passes this ValueTest. More... | |
Abstract base for every ValueTest.
ValueTests determine whether a string passes a certain test.
Note: You probably don't want to inherit from this class directly, unless you want to provide your own ValueTest::clone() method. If your subclass has a copy constructor, you can extend from hext::Cloneable<YourSubclass, hext::ValueTest> which provides a generic clone method.
Definition at line 37 of file ValueTest.h.
|
defaultnoexcept |
|
default |
|
defaultnoexcept |
|
virtualdefaultnoexcept |
|
pure virtual |
Clones derived object.
Implemented in hext::Cloneable< ContainsTest, ValueTest >, hext::Cloneable< EndsWithTest, ValueTest >, hext::Cloneable< EqualsTest, ValueTest >, hext::Cloneable< BeginsWithTest, ValueTest >, hext::Cloneable< ContainsWordsTest, ValueTest >, hext::Cloneable< NegateTest, ValueTest >, and hext::Cloneable< RegexTest, ValueTest >.
|
pure virtual |
Returns true if subject passes this ValueTest.
Implemented in hext::RegexTest, hext::NegateTest, hext::EqualsTest, hext::EndsWithTest, hext::ContainsWordsTest, hext::ContainsTest, and hext::BeginsWithTest.