Disk ARchive  2.5.7
Full featured and portable backup and archiving tool
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
Public Member Functions | List of all members
libdar::bool_mask Class Reference

boolean mask, either always true or false More...

#include <mask.hpp>

Inherits libdar::mask.

Public Member Functions

 bool_mask (bool always)
 the constructor 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...
 
maskclone () const
 inherited from the mask class
 
- Public Member Functions inherited from libdar::on_pool
void * operator new (size_t n_byte)
 
void * operator new (size_t n_byte, const std::nothrow_t &nothrow_value)
 
void * operator new[] (size_t n_byte)
 
void * operator new[] (size_t n_byte, const std::nothrow_t &nothrow_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
 

Additional Inherited Members

- Protected Member Functions inherited from libdar::on_pool
memory_pool * get_pool () const
 
template<class T >
void meta_new (T *&ptr, size_t num)
 
template<class T >
void meta_delete (T *ptr)
 

Detailed Description

boolean mask, either always true or false

it matches all files or no files at all

Definition at line 90 of file mask.hpp.

Constructor & Destructor Documentation

libdar::bool_mask::bool_mask ( bool  always)
inline

the constructor

Parameters
[in]alwaysis 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 98 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]cheminis 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 102 of file mask.hpp.


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