KiCad PCB EDA Suite
EDA_PATTERN_MATCH::FIND_RESULT Struct Reference

#include <eda_pattern_match.h>

Public Member Functions

bool valid () const
 
 operator bool () const
 

Public Attributes

int start = EDA_PATTERN_NOT_FOUND
 
int length = 0
 

Detailed Description

Definition at line 46 of file eda_pattern_match.h.

Member Function Documentation

◆ operator bool()

EDA_PATTERN_MATCH::FIND_RESULT::operator bool ( ) const
inlineexplicit

Definition at line 56 of file eda_pattern_match.h.

57  {
58  return valid();
59  }

References valid().

◆ valid()

bool EDA_PATTERN_MATCH::FIND_RESULT::valid ( ) const
inline

Definition at line 51 of file eda_pattern_match.h.

52  {
53  return start != EDA_PATTERN_NOT_FOUND;
54  }
static const int EDA_PATTERN_NOT_FOUND

References EDA_PATTERN_NOT_FOUND, and start.

Referenced by operator bool().

Member Data Documentation

◆ length

int EDA_PATTERN_MATCH::FIND_RESULT::length = 0

◆ start


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