Disk ARchive 2.7.16
Full featured and portable backup and archiving tool
Loading...
Searching...
No Matches
libdar5::criterium Class Referenceabstract

the generic criterium class, parent of all criterium More...

#include <criterium.hpp>

Inheritance diagram for libdar5::criterium:
Collaboration diagram for libdar5::criterium:

Public Member Functions

 criterium (const criterium &ref)=default
 criterium (criterium &&ref) noexcept=default
criteriumoperator= (const criterium &ref)=default
criteriumoperator= (criterium &&ref) noexcept=default
virtual bool evaluate (const cat_nomme &first, const cat_nomme &second) const=0
 criterum interface method
virtual criteriumclone () const=0
 clone construction method

Detailed Description

the generic criterium class, parent of all criterium

this is a pure virtual class that is used in API call it is used to federate under a single type all the criterium classes defined below. It defines a common interface for all of them.

Definition at line 51 of file criterium.hpp.

Constructor & Destructor Documentation

◆ criterium()

libdar::criterium::criterium ( )
inline

Definition at line 54 of file criterium.hpp.

◆ ~criterium()

virtual libdar::criterium::~criterium ( )
inlinevirtual

Definition at line 59 of file criterium.hpp.

Member Function Documentation

◆ clone()

virtual criterium * libdar::criterium::clone ( ) const
pure virtual

clone construction method

Returns
a new object of the same type,
Note
this method must be implemented in all the leaf classes of the class hierarchy rooted at the criterium class

◆ evaluate()

virtual bool libdar::criterium::evaluate ( const cat_nomme & first,
const cat_nomme & second ) const
pure virtual

criterum interface method

Parameters
[in]firstentry to compare with the following (this is the original or 'in place' entry)
[in]secondthe other entry to compare with the previous one (this is the new entry to add)
Returns
the result of the criterium evaluation (true or false)

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