KiCad PCB EDA Suite
cmp_tree_model.cpp File Reference
#include <cmp_tree_model.h>
#include <class_library.h>
#include <eda_pattern_match.h>
#include <make_unique.h>
#include <utility>

Go to the source code of this file.

Functions

static int matchPosScore (int aPosition, int aMaximum)
 

Variables

static const unsigned kLowestDefaultScore = 1
 

Function Documentation

static int matchPosScore ( int  aPosition,
int  aMaximum 
)
static

Definition at line 46 of file cmp_tree_model.cpp.

Referenced by CMP_TREE_NODE_LIB_ID::UpdateScore().

47 {
48  return ( aPosition < aMaximum ) ? aMaximum - aPosition : 0;
49 }

Variable Documentation

const unsigned kLowestDefaultScore = 1
static

Definition at line 35 of file cmp_tree_model.cpp.

Referenced by CMP_TREE_NODE::ResetScore().