Gaia-ECS v1.0.0
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::ecs::pair< Entity, Entity > Class Reference

Wrapper for two Entities forming a relationship pair. More...

#include <id.h>

+ Inheritance diagram for gaia::ecs::pair< Entity, Entity >:

Public Member Functions

 pair (Entity a, Entity b) noexcept
 
 operator Entity () const noexcept
 
Entity first () const noexcept
 First entity of the pair.
 
Entity second () const noexcept
 Second entity of the pair.
 
bool operator== (const pair &other) const
 
bool operator!= (const pair &other) const
 

Detailed Description

Wrapper for two Entities forming a relationship pair.

Member Function Documentation

◆ first()

Entity gaia::ecs::pair< Entity, Entity >::first ( ) const
inlinenoexcept

First entity of the pair.

Returns
First entity of the pair.

◆ second()

Entity gaia::ecs::pair< Entity, Entity >::second ( ) const
inlinenoexcept

Second entity of the pair.

Returns
Second entity of the pair.

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