boolean mask, either always true or false
More...
#include <mask.hpp>
|
| bool_mask (bool always) |
| the constructor More...
|
|
| bool_mask (const bool_mask &ref)=default |
|
| bool_mask (bool_mask &&ref) noexcept=default |
|
bool_mask & | operator= (const bool_mask &ref)=default |
|
bool_mask & | operator= (bool_mask &&ref) noexcept=default |
|
bool | is_covered (const std::string &expression) const override |
| inherited from the mask class More...
|
|
bool | is_covered (const path &chemin) const override |
| check whether the given path is covered by the mask More...
|
|
std::string | dump (const std::string &prefix) const override |
| dump in human readable form the nature of the mask More...
|
|
mask * | clone () const override |
| inherited from the mask class More...
|
|
| mask (const mask &ref)=default |
|
| mask (mask &&ref) noexcept=default |
|
mask & | operator= (const mask &ref)=default |
|
mask & | operator= (mask &&ref) noexcept=default |
|
virtual bool | is_covered (const std::string &expression) const =0 |
| check wether the given string is covered by the mask More...
|
|
virtual bool | is_covered (const path &chemin) const |
| check whether the given path is covered by the mask More...
|
|
virtual std::string | dump (const std::string &prefix="") const =0 |
| dump in human readable form the nature of the mask More...
|
|
virtual mask * | clone () const =0 |
|
boolean mask, either always true or false
it matches all files or no files at all
Definition at line 100 of file mask.hpp.
◆ bool_mask()
libdar::bool_mask::bool_mask |
( |
bool |
always | ) |
|
|
inline |
the constructor
- Parameters
-
[in] | always | is the value that this mask will always return when the is_covered method will be used |
- Note
- once initialized an object cannot change its behavior
Definition at line 108 of file mask.hpp.
Referenced by clone().
◆ clone()
mask * libdar::bool_mask::clone |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ dump()
std::string libdar::bool_mask::dump |
( |
const std::string & |
prefix | ) |
const |
|
inlineoverridevirtual |
dump in human readable form the nature of the mask
- Parameters
-
[in] | prefix | used for indentation withing the output string |
Implements libdar::mask.
Definition at line 118 of file mask.hpp.
◆ is_covered() [1/2]
bool libdar::bool_mask::is_covered |
( |
const path & |
chemin | ) |
const |
|
inlineoverridevirtual |
check whether the given path is covered by the mask
- Parameters
-
[in] | chemin | is the path to check |
- Returns
- true if the given path is covered by the mask
- Note
- only libdar internally needs to call this method
-
this is an optional method to the previous one, it can be overwritten
Reimplemented from libdar::mask.
Definition at line 117 of file mask.hpp.
◆ is_covered() [2/2]
bool libdar::bool_mask::is_covered |
( |
const std::string & |
expression | ) |
const |
|
inlineoverridevirtual |
◆ val
bool libdar::bool_mask::val |
|
private |
The documentation for this class was generated from the following file: