All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
hext::ValueTest Class Referenceabstract

Abstract base for every ValueTest. More...

Inheritance diagram for hext::ValueTest:
Inheritance graph
[legend]

Public Member Functions

 ValueTest () noexcept=default
 
 ValueTest (const ValueTest &)=default
 
 ValueTest (ValueTest &&) noexcept=default
 
ValueTestoperator= (const ValueTest &)=default
 
ValueTestoperator= (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...
 

Detailed Description

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 35 of file ValueTest.h.

Constructor & Destructor Documentation

hext::ValueTest::ValueTest ( )
defaultnoexcept
hext::ValueTest::ValueTest ( const ValueTest )
default
hext::ValueTest::ValueTest ( ValueTest &&  )
defaultnoexcept
virtual hext::ValueTest::~ValueTest ( )
virtualdefaultnoexcept

Member Function Documentation

virtual std::unique_ptr<ValueTest> hext::ValueTest::clone ( ) const
pure virtual
ValueTest& hext::ValueTest::operator= ( const ValueTest )
default
ValueTest& hext::ValueTest::operator= ( ValueTest &&  )
defaultnoexcept
virtual bool hext::ValueTest::test ( const char *  ) const
pure virtual

The documentation for this class was generated from the following file: