makes an AND operator between two or more masks
More...
#include <mask.hpp>
|
std::string | dump_logical (const std::string &prefix, const std::string &boolop) const |
|
|
void | copy_from (const et_mask &m) |
|
void | move_from (et_mask &&m) noexcept |
|
void | detruit () |
|
template<class T > |
bool | t_is_covered (const T &expression) const |
|
makes an AND operator between two or more masks
Definition at line 272 of file mask.hpp.
◆ et_mask()
libdar::et_mask::et_mask |
( |
| ) |
|
|
inline |
the constructor to be used by libdar external programs
- Note
- at this stage the mask is not usable and will throw an exception until some mask are added to the AND thanks to the add_mask() method
Definition at line 281 of file mask.hpp.
Referenced by clone().
◆ add_mask()
void libdar::et_mask::add_mask |
( |
const mask & |
toadd | ) |
|
add a mask to the operator
- Parameters
-
[in] | toadd | a mask to add to the AND operator |
- Note
- the mask given in argument has not to survive the et_mask to which it has been added a internal copy of the mask has been done.
◆ clear()
void libdar::et_mask::clear |
( |
| ) |
|
|
inline |
clear the mask
remove all previously added masks
- Note
- that after this call the mask is no more usable as the AND operator cannot be done on any mask
Definition at line 325 of file mask.hpp.
◆ dump()
std::string libdar::et_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.
Reimplemented in libdar::ou_mask.
Definition at line 309 of file mask.hpp.
◆ is_covered()
bool libdar::et_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.
Reimplemented in libdar::ou_mask.
Definition at line 308 of file mask.hpp.
◆ size()
U_I libdar::et_mask::size |
( |
| ) |
const |
|
inline |
the number of mask on which is done the AND operator
- Returns
- the number of mask that has been added thanks to the add_mask() method
- Note
- there is no mean to remove a given mask once it has been added (see the clear method)
Definition at line 318 of file mask.hpp.
The documentation for this class was generated from the following file: