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

#include <kiid.h>

Inheritance diagram for KIID_PATH:

Public Member Functions

 KIID_PATH ()
 
 KIID_PATH (const wxString &aString)
 
bool MakeRelativeTo (const KIID_PATH &aPath)
 
bool EndsWith (const KIID_PATH &aPath) const
 Test if aPath from the last path towards the first path.
 
wxString AsString () const
 
bool operator== (KIID_PATH const &rhs) const
 
bool operator< (KIID_PATH const &rhs) const
 
bool operator> (KIID_PATH const &rhs) const
 
KIID_PATHoperator+= (const KIID_PATH &aRhs)
 

Public Attributes

T elements
 STL member.
 

Friends

KIID_PATH operator+ (KIID_PATH aLhs, const KIID_PATH &aRhs)
 

Detailed Description

Definition at line 147 of file kiid.h.

Constructor & Destructor Documentation

◆ KIID_PATH() [1/2]

KIID_PATH::KIID_PATH ( )
inline

Definition at line 150 of file kiid.h.

Referenced by EndsWith(), MakeRelativeTo(), operator+, operator+=(), operator<(), operator==(), and operator>().

◆ KIID_PATH() [2/2]

KIID_PATH::KIID_PATH ( const wxString & aString)

Definition at line 310 of file kiid.cpp.

Member Function Documentation

◆ AsString()

◆ EndsWith()

bool KIID_PATH::EndsWith ( const KIID_PATH & aPath) const

Test if aPath from the last path towards the first path.

This is useful for testing for existing schematic symbol and sheet instances when copying or adding a new sheet that is lower in the hierarchy than the current path.

Parameters
aPathis the path to compare this path against.
Returns
true if this path ends with aPath or false if it does not.

Definition at line 344 of file kiid.cpp.

References KIID_PATH().

Referenced by BOOST_AUTO_TEST_CASE(), and SCH_EDITOR_CONTROL::updatePastedSymbol().

◆ MakeRelativeTo()

bool KIID_PATH::MakeRelativeTo ( const KIID_PATH & aPath)

Definition at line 320 of file kiid.cpp.

References copy, KIID_PATH(), and push_back().

Referenced by SCH_IO_KICAD_SEXPR::saveSymbol().

◆ operator+=()

KIID_PATH & KIID_PATH::operator+= ( const KIID_PATH & aRhs)
inline

Definition at line 219 of file kiid.h.

References KIID_PATH().

◆ operator<()

bool KIID_PATH::operator< ( KIID_PATH const & rhs) const
inline

Definition at line 185 of file kiid.h.

References KIID_PATH().

◆ operator==()

bool KIID_PATH::operator== ( KIID_PATH const & rhs) const
inline

Definition at line 171 of file kiid.h.

References KIID_PATH().

◆ operator>()

bool KIID_PATH::operator> ( KIID_PATH const & rhs) const
inline

Definition at line 202 of file kiid.h.

References KIID_PATH().

Friends And Related Symbol Documentation

◆ operator+

KIID_PATH operator+ ( KIID_PATH aLhs,
const KIID_PATH & aRhs )
friend

Definition at line 227 of file kiid.h.

References KIID_PATH().

Member Data Documentation

◆ elements

T std::vector< T >::elements
inherited

STL member.


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