string matches if it is subdir of mask or mask is a subdir of expression
More...
#include <mask.hpp>
Inherits libdar::mask.
|
| simple_path_mask (const path &p, bool case_sensit) |
| the constructor to be used by libdar external programs More...
|
|
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 More...
|
|
std::string | dump (const std::string &prefix) const |
| dump in human readable form the nature of the mask More...
|
|
mask * | clone () const |
| inherited from the mask class
|
|
void * | operator new (size_t n_byte) |
|
void * | operator new (size_t n_byte, const std::nothrow_t ¬hrow_value) |
|
void * | operator new[] (size_t n_byte) |
|
void * | operator new[] (size_t n_byte, const std::nothrow_t ¬hrow_value) |
|
void * | operator new (size_t n_byte, memory_pool *p) |
|
void * | operator new[] (size_t n_byte, memory_pool *p) |
|
void | operator delete (void *ptr, memory_pool *p) |
| this operator is called by the compiler if an exception is throw from the constructor of the allocated object
|
|
void | operator delete[] (void *ptr, memory_pool *p) |
| this operator is called by the compiler if an exception is throw from the constructor of the allocated objects
|
|
void | operator delete (void *ptr) |
| this is the usual delete operator, modified to handle allocated objects allocated on a memory pool or not
|
|
void | operator delete[] (void *ptr) |
| this is the usual delete[] operator, modified to handle allocated objects allocated on a memory pool or not
|
|
|
memory_pool * | get_pool () const |
|
template<class T > |
void | meta_new (T *&ptr, size_t num) |
|
template<class T > |
void | meta_delete (T *ptr) |
|
string matches if it is subdir of mask or mask is a subdir of expression
Definition at line 336 of file mask.hpp.
◆ simple_path_mask()
libdar::simple_path_mask::simple_path_mask |
( |
const path & |
p, |
|
|
bool |
case_sensit |
|
) |
| |
|
inline |
the constructor to be used by libdar external programs
- Parameters
-
[in] | p | the path the compare with |
[in] | case_sensit | whether the mask is case sensitive or not |
- Note
- p must be a valid path
Definition at line 344 of file mask.hpp.
◆ dump()
std::string libdar::simple_path_mask::dump |
( |
const std::string & |
prefix | ) |
const |
|
virtual |
dump in human readable form the nature of the mask
- Parameters
-
[in] | prefix | used for indentation withing the output string |
Implements libdar::mask.
◆ is_covered()
bool libdar::simple_path_mask::is_covered |
( |
const path & |
chemin | ) |
const |
|
virtual |
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.
The documentation for this class was generated from the following file: