entttree 0.1.0
Hierarchical entity management for EnTT
Loading...
Searching...
No Matches
entttree::ChildEntry Struct Reference

Internal representation of a child in the sorted children cache. More...

#include <hierarchy_types.h>

Public Member Functions

std::strong_ordering operator<=> (const ChildEntry &other) const
 
bool operator== (const ChildEntry &other) const =default
 
bool operator< (const ChildEntry &other) const
 

Public Attributes

entt::entity eid
 Child entity.
 
Position position
 Sibling ordering key.
 

Detailed Description

Internal representation of a child in the sorted children cache.

Ordered first by Position, then by entity ID to break ties.

Definition at line 106 of file hierarchy_types.h.

Member Function Documentation

◆ operator<()

bool entttree::ChildEntry::operator< ( const ChildEntry other) const
inline

Definition at line 117 of file hierarchy_types.h.

◆ operator<=>()

std::strong_ordering entttree::ChildEntry::operator<=> ( const ChildEntry other) const
inline

Definition at line 110 of file hierarchy_types.h.

Member Data Documentation

◆ eid

◆ position

Position entttree::ChildEntry::position

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