KiCad PCB EDA Suite
Loading...
Searching...
No Matches
DIR_LOOP_GUARD Class Reference

#include <gestfich.h>

Public Member Functions

 DIR_LOOP_GUARD (const wxString &aRoot, DIR_LOOP_POLICY aPolicy=DIR_LOOP_POLICY::CONFINE_TO_ROOT)
 
bool IsRooted () const
 
bool ShouldDescend (const wxString &aDir)
 

Private Attributes

std::filesystem::path m_root
 
DIR_LOOP_POLICY m_policy
 
std::unordered_set< std::string > m_visited
 

Detailed Description

Definition at line 208 of file gestfich.h.

Constructor & Destructor Documentation

◆ DIR_LOOP_GUARD()

DIR_LOOP_GUARD::DIR_LOOP_GUARD ( const wxString & aRoot,
DIR_LOOP_POLICY aPolicy = DIR_LOOP_POLICY::CONFINE_TO_ROOT )
explicit

Definition at line 814 of file gestfich.cpp.

References m_policy, m_root, and m_visited.

Member Function Documentation

◆ IsRooted()

bool DIR_LOOP_GUARD::IsRooted ( ) const
inline

Definition at line 215 of file gestfich.h.

References m_root.

Referenced by LOCAL_HISTORY::CollectAutosaveFilePairs(), and collectProjectFiles().

◆ ShouldDescend()

bool DIR_LOOP_GUARD::ShouldDescend ( const wxString & aDir)

Member Data Documentation

◆ m_policy

DIR_LOOP_POLICY DIR_LOOP_GUARD::m_policy
private

Definition at line 221 of file gestfich.h.

Referenced by DIR_LOOP_GUARD(), and ShouldDescend().

◆ m_root

std::filesystem::path DIR_LOOP_GUARD::m_root
private

Definition at line 220 of file gestfich.h.

Referenced by DIR_LOOP_GUARD(), IsRooted(), and ShouldDescend().

◆ m_visited

std::unordered_set<std::string> DIR_LOOP_GUARD::m_visited
private

Definition at line 222 of file gestfich.h.

Referenced by DIR_LOOP_GUARD(), and ShouldDescend().


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