CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
carta::TileCacheKey Struct Reference

Key for tiles used in TileCache. More...

#include <TileCacheKey.h>

Collaboration diagram for carta::TileCacheKey:
[legend]

Public Member Functions

 TileCacheKey ()
 Default constructor.
 
 TileCacheKey (int32_t x, int32_t y)
 Constructor from tile coordinates.
 
bool operator== (const TileCacheKey &other) const
 Equality operator.
 

Public Attributes

int32_t x
 The X coordinate.
 
int32_t y
 The Y coordinate.
 

Detailed Description

Key for tiles used in TileCache.

This is used in TileCache to identify tiles.

See also
std::hash<carta::TileCacheKey>

Constructor & Destructor Documentation

◆ TileCacheKey() [1/2]

carta::TileCacheKey::TileCacheKey ( )
inline

Default constructor.

◆ TileCacheKey() [2/2]

carta::TileCacheKey::TileCacheKey ( int32_t  x,
int32_t  y 
)
inline

Constructor from tile coordinates.

Parameters
xThe X coordinate of the tile
yThe Y coordinate of the tile

Member Function Documentation

◆ operator==()

bool carta::TileCacheKey::operator== ( const TileCacheKey other) const
inline

Equality operator.

Parameters
otherAnother key
Returns
Whether the keys are equal

Keys are equal if their coordinates are equal.

Member Data Documentation

◆ x

int32_t carta::TileCacheKey::x

The X coordinate.

◆ y

int32_t carta::TileCacheKey::y

The Y coordinate.


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