class
#include <bn_green_swap_hbe_ptr.h>
green_swap_hbe_ptr std::shared_ptr like smart pointer that retains shared ownership of a H-Blank effect which changes the state of green swap in each screen horizontal line.
Base classes
- class hbe_ptr
- std::shared_ptr like smart pointer that retains shared ownership of a H-Blank effect.
Public static functions
-
static auto create(const span<const bool>& states_ref) -> green_
swap_ hbe_ ptr - Creates a green_
swap_ hbe_ ptr which changes the state of green swap in each screen horizontal line. -
static auto create_optional(const span<const bool>& states_ref) -> optional<green_
swap_ hbe_ ptr> - Creates a green_
swap_ hbe_ ptr which changes the state of green swap in each screen horizontal line.
Public functions
- auto states_ref() const -> span<const bool>
- Returns the referenced array of 160 bool values which indicate the state of green swap in each screen horizontal line.
- void set_states_ref(const span<const bool>& states_ref)
- Sets the reference to an array of 160 bool values which indicate the state of green swap in each screen horizontal line.
- void reload_states_ref()
- Rereads the content of the referenced green swap states in each screen horizontal line.
-
void swap(green_
swap_ hbe_ ptr& other) - Exchanges the contents of this green_
swap_ hbe_ ptr with those of the other one.
Friends
-
void swap(green_
swap_ hbe_ ptr& a, green_ swap_ hbe_ ptr& b) - Exchanges the contents of a green_
swap_ hbe_ ptr with those of another one.
Function documentation
static green_ swap_ hbe_ ptr bn:: green_swap_hbe_ptr:: create(const span<const bool>& states_ref)
Creates a green_
Parameters | |
---|---|
states_ref | Reference to an array of 160 bool values which indicate the state of green swap in each screen horizontal line. |
Returns | The requested green_ |
The states are not copied but referenced, so they should outlive the green_
static optional<green_ swap_ hbe_ ptr> bn:: green_swap_hbe_ptr:: create_optional(const span<const bool>& states_ref)
Creates a green_
Parameters | |
---|---|
states_ref | Reference to an array of 160 bool values which indicate the state of green swap in each screen horizontal line. |
Returns | The requested green_ |
The states are not copied but referenced, so they should outlive the green_
span<const bool> bn:: green_swap_hbe_ptr:: states_ref() const
Returns the referenced array of 160 bool values which indicate the state of green swap in each screen horizontal line.
The states are not copied but referenced, so they should outlive the green_
void bn:: green_swap_hbe_ptr:: set_states_ref(const span<const bool>& states_ref)
Sets the reference to an array of 160 bool values which indicate the state of green swap in each screen horizontal line.
The states are not copied but referenced, so they should outlive the green_
void bn:: green_swap_hbe_ptr:: reload_states_ref()
Rereads the content of the referenced green swap states in each screen horizontal line.
The states are not copied but referenced, so they should outlive the green_
void bn:: green_swap_hbe_ptr:: swap(green_ swap_ hbe_ ptr& other)
Exchanges the contents of this green_
Parameters | |
---|---|
other | green_ |
void swap(green_ swap_ hbe_ ptr& a,
green_ swap_ hbe_ ptr& b)
Exchanges the contents of a green_
Parameters | |
---|---|
a | First green_ |
b | Second green_ |