Helios Engine
A modular ECS based data-oriented C++23 game engine framework
Loading...
Searching...
No Matches
helios::ecs::ResourceConflictInfo Struct Reference

Describes a single resource access conflict between two policies. More...

#include <access_policy.hpp>

Public Member Functions

constexpr bool operator== (const ResourceConflictInfo &) const noexcept=default

Public Attributes

ResourceTypeId lhs
 Resource type from this policy.
ResourceTypeId rhs
 Same resource type from the other policy.
bool lhs_writes = false
 True if this policy writes the resource.
bool rhs_writes = false
 True if the other policy writes the resource.

Detailed Description

Describes a single resource access conflict between two policies.

lhs is the resource type as seen from this policy's side; rhs is the same resource type from the other policy. lhs_writes / rhs_writes indicate which side holds write access. At least one of lhs_writes / rhs_writes is always true in a conflict (read–read is never a conflict).

Definition at line 96 of file access_policy.hpp.

Member Function Documentation

◆ operator==()

bool helios::ecs::ResourceConflictInfo::operator== ( const ResourceConflictInfo & ) const
nodiscardconstexprdefaultnoexcept

Member Data Documentation

◆ lhs

ResourceTypeId helios::ecs::ResourceConflictInfo::lhs

Resource type from this policy.

Definition at line 97 of file access_policy.hpp.

◆ lhs_writes

bool helios::ecs::ResourceConflictInfo::lhs_writes = false

True if this policy writes the resource.

Definition at line 99 of file access_policy.hpp.

◆ rhs

ResourceTypeId helios::ecs::ResourceConflictInfo::rhs

Same resource type from the other policy.

Definition at line 98 of file access_policy.hpp.

◆ rhs_writes

bool helios::ecs::ResourceConflictInfo::rhs_writes = false

True if the other policy writes the resource.

Definition at line 100 of file access_policy.hpp.