KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIRTREE::PACKED_RTREE< DATATYPE, ELEMTYPE, NUMDIMS, FANOUT >::Builder Class Reference

Builder for constructing a PACKED_RTREE from a set of items. More...

#include <packed_rtree.h>

Classes

struct  ITEM
 

Public Member Functions

 Builder ()=default
 
void Reserve (size_t aCount)
 
void Add (const ELEMTYPE aMin[NUMDIMS], const ELEMTYPE aMax[NUMDIMS], const DATATYPE &aData)
 
PACKED_RTREE Build ()
 

Private Attributes

std::vector< ITEMm_items
 

Detailed Description

template<class DATATYPE, class ELEMTYPE = int, int NUMDIMS = 2, int FANOUT = 16>
class KIRTREE::PACKED_RTREE< DATATYPE, ELEMTYPE, NUMDIMS, FANOUT >::Builder

Builder for constructing a PACKED_RTREE from a set of items.

Usage: Builder builder; builder.Reserve( N ); for each item: builder.Add( min, max, data ); PACKED_RTREE tree = builder.Build();

Definition at line 180 of file packed_rtree.h.

Constructor & Destructor Documentation

◆ Builder()

template<class DATATYPE, class ELEMTYPE = int, int NUMDIMS = 2, int FANOUT = 16>
KIRTREE::PACKED_RTREE< DATATYPE, ELEMTYPE, NUMDIMS, FANOUT >::Builder::Builder ( )
default

Member Function Documentation

◆ Add()

◆ Build()

◆ Reserve()

template<class DATATYPE, class ELEMTYPE = int, int NUMDIMS = 2, int FANOUT = 16>
void KIRTREE::PACKED_RTREE< DATATYPE, ELEMTYPE, NUMDIMS, FANOUT >::Builder::Reserve ( size_t aCount)
inline

Member Data Documentation

◆ m_items

template<class DATATYPE, class ELEMTYPE = int, int NUMDIMS = 2, int FANOUT = 16>
std::vector<ITEM> KIRTREE::PACKED_RTREE< DATATYPE, ELEMTYPE, NUMDIMS, FANOUT >::Builder::m_items
private

Definition at line 404 of file packed_rtree.h.

Referenced by Add(), Build(), and Reserve().


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