Recursively accumulated values for directories.
Definition at line 25 of file ftvalue.hpp.
#include <ftvalue.hpp>
Public Field Index: | |
| uint32_t | QtyErrsAccess = 0 |
| Number of access errors in the folder and subfolders. | |
| uint32_t | QtyErrsBrokenLink = 0 |
| Number of broken symbolic links in the directory and its subfolders. | |
| uint32_t | QtyStopsOnCircularLinks = 0 |
| Number of recursion aborts due to detected circular links reach of maximum recursion depth. | |
| uint32_t | QtyStopsOnMaxDepth = 0 |
| Number of recursion aborts due to reach of maximum recursion depth. | |
| uinteger | Size = 0 |
| The cumulated sizes of all files and directories. | |
| std::array< uint32_t, size_t(Types::MARKER_TYPES_END)> | TypeCounters = {0,0,0,0,0,0,0,0} |
| Per-type counters. | |
Public Method Index: | |
| constexpr | DirectorySums () noexcept=default |
| Defaulted default constructor. | |
| constexpr DirectorySums & | Add (const FTValue &finfo) noexcept |
| uint32_t | Count () const noexcept |
| uint32_t | Count (Types type) const noexcept |
| uint32_t | CountDirectories () const noexcept |
| uint32_t | CountNonDirectories () const noexcept |
| constexpr bool | IsDirType (Types type) const noexcept |
| DirectorySums & | operator+= (const DirectorySums &rhs) |
| DirectorySums & | operator-= (const DirectorySums &rhs) |
| uint32_t alib::filetree::FTValue::DirectorySums::QtyErrsAccess = 0 |
Number of access errors in the folder and subfolders.
Definition at line 28 of file ftvalue.hpp.
| uint32_t alib::filetree::FTValue::DirectorySums::QtyErrsBrokenLink = 0 |
Number of broken symbolic links in the directory and its subfolders.
Definition at line 29 of file ftvalue.hpp.
| uint32_t alib::filetree::FTValue::DirectorySums::QtyStopsOnCircularLinks = 0 |
Number of recursion aborts due to detected circular links reach of maximum recursion depth.
Definition at line 31 of file ftvalue.hpp.
| uint32_t alib::filetree::FTValue::DirectorySums::QtyStopsOnMaxDepth = 0 |
Number of recursion aborts due to reach of maximum recursion depth.
Definition at line 30 of file ftvalue.hpp.
The cumulated sizes of all files and directories.
Definition at line 26 of file ftvalue.hpp.
| std::array<uint32_t, size_t(Types::MARKER_TYPES_END)> alib::filetree::FTValue::DirectorySums::TypeCounters = {0,0,0,0,0,0,0,0} |
Per-type counters.
Definition at line 27 of file ftvalue.hpp.
|
inlineconstexprnoexcept |
Adds a file/directory to the counters
| finfo | The entry to add. |
this Definition at line 77 of file ftvalue.hpp.
|
inlinenoexcept |
Returns the cumulated number of entries (of any type).
Definition at line 86 of file ftvalue.hpp.
|
inlinenoexcept |
Returns the number of entries of the given type.
| type | The type to get the number of entries for. |
Definition at line 96 of file ftvalue.hpp.
|
inlinenoexcept |
Returns the sum of the number of entries of type DIRECTORY and SYMBOLIC_LINK_DIR
Definition at line 106 of file ftvalue.hpp.
|
inlinenoexcept |
Returns the sum of the number of entries which are not of type DIRECTORY and SYMBOLIC_LINK_DIR
Definition at line 115 of file ftvalue.hpp.
|
inlineconstexprnoexcept |
Returns true if the given type equals either DIRECTORY or SYMBOLIC_LINK_DIR
| type | returns false if the given type does not represent a directory and true if type equals DIRECTORY or SYMBOLIC_LINK_DIR |
false if the given type does not represent a directory, true otherwise. Definition at line 72 of file ftvalue.hpp.
|
inline |
Adds the values in the given summary object to this.
| rhs | The values to add. |
this Definition at line 40 of file ftvalue.hpp.
|
inline |
Subtracts the values in the given summary object from this.
| rhs | The values to subtract. |
this Definition at line 54 of file ftvalue.hpp.