All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros 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

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

Constructor & Destructor Documentation

hext::ValueTest::ValueTest ( )
hext::ValueTest::ValueTest ( const ValueTest )
hext::ValueTest::ValueTest ( ValueTest &&  )
virtual hext::ValueTest::~ValueTest ( )

Member Function Documentation

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

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