|
co_ecs 0.9.0
Cobalt ECS
|
Class representing an access pattern for components. More...
#include <access.hpp>
Public Member Functions | |
| access_pattern_t ()=default | |
| Default constructor. | |
| access_pattern_t (access_type registry_access) | |
| Constructs an access pattern with specified registry access. | |
| access_pattern_t (access_type access, component_meta meta) | |
| Constructs an access pattern for a specific component. | |
| auto | allows (const access_pattern_t &other) const noexcept -> bool |
| Checks if this access pattern allows another access pattern. | |
| auto | writes_all () const noexcept -> bool |
| Checks if this access pattern writes to all components. | |
| auto | reads_all () const noexcept -> bool |
| Checks if this access pattern reads from all components. | |
| auto | writes (component_id_t id) const noexcept -> bool |
| Checks if this access pattern writes to a specific component. | |
| auto | reads (component_id_t id) const noexcept -> bool |
| Checks if this access pattern reads from a specific component. | |
| auto | operator& (const access_pattern_t &rhs) -> access_pattern_t |
| Combines two access patterns using the bitwise AND operator. | |
| auto | operator&= (const access_pattern_t &rhs) -> access_pattern_t & |
| Combines this access pattern with another using the bitwise AND assignment operator. | |
Class representing an access pattern for components.
This class is used to manage and check access permissions for components within a registry.
|
default |
Default constructor.
Constructs an access pattern with no registry access.
|
inline |
Constructs an access pattern with specified registry access.
| registry_access | The type of access for the registry. |
|
inline |
Constructs an access pattern for a specific component.
| access | The type of access for the component. |
| meta | Metadata for the component. |
|
inlinenoexcept |
Checks if this access pattern allows another access pattern.
| other | The other access pattern to check against. |
|
inline |
Combines two access patterns using the bitwise AND operator.
| rhs | The other access pattern to combine with. |
|
inline |
Combines this access pattern with another using the bitwise AND assignment operator.
| rhs | The other access pattern to combine with. |
|
inlinenoexcept |
Checks if this access pattern reads from a specific component.
| id | The ID of the component. |
|
inlinenoexcept |
Checks if this access pattern reads from all components.
|
inlinenoexcept |
Checks if this access pattern writes to a specific component.
| id | The ID of the component. |
|
inlinenoexcept |
Checks if this access pattern writes to all components.