Class LayerStack#

Class Documentation#

class LayerStack#

Public Functions

constexpr LayerStack() = default#

Constructor.

consteval LayerStack(const LayerStack&) noexcept = delete#

Copy constructor.

constexpr LayerStack(LayerStack&&) noexcept = default#

Move constructor.

consteval LayerStack &operator=(const LayerStack&) noexcept = delete#

Copy assignment operator.

constexpr LayerStack &operator=(LayerStack&&) noexcept = default#

Move assignment operator.

constexpr ~LayerStack() = default#

Destructor.

void Shutdown()#

Shut down the LayerStack. This detaches and destroys all Layers.

void PushLayer(std::unique_ptr<Layer> layer)#

Push a layer to the layer stack.

Parameters:

layerLayer to push.

void PushOverlay(std::unique_ptr<Layer> overlay)#

Push an overlay to the layer stack.

Parameters:

overlay – Overlay to push.

void PopLayer(Layer *layer)#

Pop a layer from the layer stack.

Parameters:

layerLayer to pop.

void PopOverlay(Layer *overlay)#

Pop an overlay from the layer stack.

Parameters:

overlay – Overlay to pop.

constexpr std::vector<std::unique_ptr<Layer>>::iterator begin() noexcept#

Layer stack begin iterator.

Returns:

Layer stack iterator.

constexpr std::vector<std::unique_ptr<Layer>>::iterator end() noexcept#

Layer stack end iterator.

Returns:

Layer stack iterator.

constexpr std::vector<std::unique_ptr<Layer>>::reverse_iterator rbegin() noexcept#

Layer stack reverse begin iterator.

Returns:

Layer stack reverse iterator.

constexpr std::vector<std::unique_ptr<Layer>>::reverse_iterator rend() noexcept#

Layer stack reverse end iterator.

Returns:

Layer stack reverse iterator.

constexpr std::vector<std::unique_ptr<Layer>>::const_iterator begin() const noexcept#

Layer stack const begin iterator.

Returns:

Layer stack const iterator.

constexpr std::vector<std::unique_ptr<Layer>>::const_iterator end() const noexcept#

Layer stack const end iterator.

Returns:

Layer stack const iterator.

constexpr std::vector<std::unique_ptr<Layer>>::const_reverse_iterator rbegin() const noexcept#

Layer stack const reverse begin iterator.

Returns:

Layer stack reverse iterator.

constexpr std::vector<std::unique_ptr<Layer>>::const_reverse_iterator rend() const noexcept#

Layer stack const reverse end iterator.

Returns:

Layer stack reverse iterator.