OpenTTD Source: SpriteCollMap< T > Class Template Reference

OpenTTD Source 15.3

Public Member Functions | Private Attributes
SpriteCollMap< T > Class Template Reference

Map zoom level to data. More...

`#include <spriteloader.hpp>`

## Public Member Functions
constexpr T & | operator[] (const ZoomLevel &zoom)
constexpr const T & | operator[] (const ZoomLevel &zoom) const
T & | Root ()
const T & | Root () const

## Private Attributes
std::array< T, to_underlying(ZoomLevel::End)> | data {}

## Detailed Description

template<class T>
class SpriteCollMap< T >

Map zoom level to data.

Definition at line 34 of file spriteloader.hpp.

## Member Function Documentation

## ◆ operator[]() [1/2]

template<class T >

constexpr T & SpriteCollMap< T >::operator[] | ( | const ZoomLevel & | zoom | ) |
| inlineconstexpr

Definition at line 37 of file spriteloader.hpp.

## ◆ operator[]() [2/2]

template<class T >

constexpr const T & SpriteCollMap< T >::operator[] | ( | const ZoomLevel & | zoom | ) | const
| inlineconstexpr

Definition at line 38 of file spriteloader.hpp.

## ◆ Root() [1/2]

template<class T >

T & SpriteCollMap< T >::Root | ( |  | ) |
| inline

Definition at line 40 of file spriteloader.hpp.

## ◆ Root() [2/2]

template<class T >

const T & SpriteCollMap< T >::Root | ( |  | ) | const
| inline

Definition at line 41 of file spriteloader.hpp.

## Field Documentation

## ◆ data

template<class T >

std::array<T, to_underlying(ZoomLevel::End)> SpriteCollMap< T >::data {}
| private

Definition at line 35 of file spriteloader.hpp.

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

- src/spriteloader/spriteloader.hpp