KiCad PCB EDA Suite
Loading...
Searching...
No Matches
construction_manager.cpp File Reference
#include "tool/construction_manager.h"
#include <algorithm>
#include <chrono>
#include <cmath>
#include <limits>
#include <numeric>
#include <utility>
#include <wx/timer.h>
#include <wx/debug.h>
#include <advanced_config.h>
#include <math/util.h>
#include <hash.h>

Go to the source code of this file.

Classes

class  ACTIVATION_HELPER< T >
 A helper class to manage the activation of a "proposal" after a timeout. More...
 
struct  CONSTRUCTION_MANAGER::PENDING_BATCH
 

Functions

static std::size_t HashConstructionBatchSources (const CONSTRUCTION_MANAGER::CONSTRUCTION_ITEM_BATCH &aBatch, bool aIsPersistent)
 Construct a hash based on the sources of the items in the batch.
 
static VECTOR2I normalizeDirection (const VECTOR2I &aDir)
 
static std::optional< int > findDirectionIndex (const std::vector< VECTOR2I > &aDirections, const VECTOR2I &aDelta)
 

Function Documentation

◆ findDirectionIndex()

static std::optional< int > findDirectionIndex ( const std::vector< VECTOR2I > & aDirections,
const VECTOR2I & aDelta )
static

◆ HashConstructionBatchSources()

static std::size_t HashConstructionBatchSources ( const CONSTRUCTION_MANAGER::CONSTRUCTION_ITEM_BATCH & aBatch,
bool aIsPersistent )
static

Construct a hash based on the sources of the items in the batch.

Definition at line 204 of file construction_manager.cpp.

References hash_combine(), and hash_val().

Referenced by CONSTRUCTION_MANAGER::ProposeConstructionItems().

◆ normalizeDirection()

static VECTOR2I normalizeDirection ( const VECTOR2I & aDir)
static