libhext: C++ Library Documentation  1.0.12-3ea013c
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< ValueTestclone () 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

◆ ValueTest() [1/3]

hext::ValueTest::ValueTest ( )
defaultnoexcept

◆ ValueTest() [2/3]

hext::ValueTest::ValueTest ( const ValueTest )
default

◆ ValueTest() [3/3]

hext::ValueTest::ValueTest ( ValueTest &&  )
defaultnoexcept

◆ ~ValueTest()

virtual hext::ValueTest::~ValueTest ( )
virtualdefaultnoexcept

Member Function Documentation

◆ clone()

virtual std::unique_ptr<ValueTest> hext::ValueTest::clone ( ) const
pure virtual

◆ operator=() [1/2]

ValueTest& hext::ValueTest::operator= ( const ValueTest )
default

◆ operator=() [2/2]

ValueTest& hext::ValueTest::operator= ( ValueTest &&  )
defaultnoexcept

◆ test()

virtual bool hext::ValueTest::test ( const char *  ) const
pure virtual

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