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 258 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 1051 of file gestfich.cpp.

References m_policy, m_root, m_visited, and ToFsPath().

Member Function Documentation

◆ IsRooted()

bool DIR_LOOP_GUARD::IsRooted ( ) const
inline

◆ 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 271 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 270 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 272 of file gestfich.h.

Referenced by DIR_LOOP_GUARD(), and ShouldDescend().


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