Ardour  9.0-pre0-582-g084a23a80d
ArdourCanvas::OptimizingLookupTable Class Reference

#include <lookup_table.h>

Inheritance diagram for ArdourCanvas::OptimizingLookupTable:
[legend]

Public Member Functions

 OptimizingLookupTable (Item const &, int)
 
 ~OptimizingLookupTable ()
 
std::vector< Item * > get (Rect const &)
 
std::vector< Item * > items_at_point (Duple const &) const
 
bool has_item_at_point (Duple const &point) const
 
- Public Member Functions inherited from ArdourCanvas::LookupTable
 LookupTable (Item const &)
 
virtual ~LookupTable ()
 

Static Public Attributes

static int default_items_per_cell
 

Private Types

typedef std::vector< Item * > Cell
 

Private Member Functions

void area_to_indices (Rect const &, int &, int &, int &, int &) const
 
void point_to_indices (Duple, int &, int &) const
 

Private Attributes

int _items_per_cell
 
int _dimension
 
Duple _cell_size
 
Duple _offset
 
Cell ** _cells
 
bool _added
 

Friends

class ::OptimizingLookupTableTest
 

Additional Inherited Members

- Protected Attributes inherited from ArdourCanvas::LookupTable
Item const & _item
 

Detailed Description

Definition at line 60 of file lookup_table.h.

Member Typedef Documentation

◆ Cell

typedef std::vector<Item*> ArdourCanvas::OptimizingLookupTable::Cell
private

Definition at line 78 of file lookup_table.h.

Constructor & Destructor Documentation

◆ OptimizingLookupTable()

ArdourCanvas::OptimizingLookupTable::OptimizingLookupTable ( Item const &  ,
int   
)

◆ ~OptimizingLookupTable()

ArdourCanvas::OptimizingLookupTable::~OptimizingLookupTable ( )

Member Function Documentation

◆ area_to_indices()

void ArdourCanvas::OptimizingLookupTable::area_to_indices ( Rect const &  ,
int &  ,
int &  ,
int &  ,
int &   
) const
private

◆ get()

std::vector<Item*> ArdourCanvas::OptimizingLookupTable::get ( Rect const &  )
virtual

◆ has_item_at_point()

bool ArdourCanvas::OptimizingLookupTable::has_item_at_point ( Duple const &  point) const
virtual

◆ items_at_point()

std::vector<Item*> ArdourCanvas::OptimizingLookupTable::items_at_point ( Duple const &  ) const
virtual

◆ point_to_indices()

void ArdourCanvas::OptimizingLookupTable::point_to_indices ( Duple  ,
int &  ,
int &   
) const
private

Friends And Related Function Documentation

◆ ::OptimizingLookupTableTest

friend class ::OptimizingLookupTableTest
friend

Definition at line 76 of file lookup_table.h.

Member Data Documentation

◆ _added

bool ArdourCanvas::OptimizingLookupTable::_added
private

Definition at line 84 of file lookup_table.h.

◆ _cell_size

Duple ArdourCanvas::OptimizingLookupTable::_cell_size
private

Definition at line 81 of file lookup_table.h.

◆ _cells

Cell** ArdourCanvas::OptimizingLookupTable::_cells
private

Definition at line 83 of file lookup_table.h.

◆ _dimension

int ArdourCanvas::OptimizingLookupTable::_dimension
private

Definition at line 80 of file lookup_table.h.

◆ _items_per_cell

int ArdourCanvas::OptimizingLookupTable::_items_per_cell
private

Definition at line 79 of file lookup_table.h.

◆ _offset

Duple ArdourCanvas::OptimizingLookupTable::_offset
private

Definition at line 82 of file lookup_table.h.

◆ default_items_per_cell

int ArdourCanvas::OptimizingLookupTable::default_items_per_cell
static

Definition at line 69 of file lookup_table.h.


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