boolean mask, either always true or false
More...
#include <mask.hpp>
Inherits libdar::mask.
Public Member Functions |
| bool_mask (bool always) |
| the constructor
|
bool | is_covered (const std::string &expression) const |
| inherited from the mask class
|
bool | is_covered (const path &chemin) const |
| check whether the given path is covered by the mask
|
mask * | clone () const |
| inherited from the mask class
|
Detailed Description
boolean mask, either always true or false
it matches all files or no files at all
Definition at line 91 of file mask.hpp.
Constructor & Destructor Documentation
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 99 of file mask.hpp.
Referenced by clone().
Member Function Documentation
bool libdar::bool_mask::is_covered |
( |
const path & |
chemin | ) |
const |
|
inlinevirtual |
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 103 of file mask.hpp.
The documentation for this class was generated from the following file: