entity
Entity/Component System for C++
entity::entity Class Reference

Description

Definition at line 31 of file entity.hpp.

+ Inheritance diagram for entity::entity:

Friends

entity make_entity (entity_index_t) BOOST_NOEXCEPT_OR_NOTHROW
 

Public Member Functions

entity_index_t index () const
 
bool operator< (entity const &rhs) const
 
bool operator== (entity const &rhs) const
 

Methods

entity make_entity ( entity_index_t  idx)
friend

Definition at line 64 of file entity.hpp.

65  {
66  return entity(idx);
67  }

Member Function Documentation

entity_index_t entity::entity::index ( ) const

Definition at line 35 of file entity.hpp.

36  {
37  return idx_;
38  }
bool entity::entity::operator< ( entity const &  rhs) const

Definition at line 45 of file entity.hpp.

46  {
47  return index() < rhs.index();
48  }
entity_index_t index() const
Definition: entity.hpp:35
bool entity::entity::operator== ( entity const &  rhs) const

Definition at line 40 of file entity.hpp.

41  {
42  return index() == rhs.index();
43  }
entity_index_t index() const
Definition: entity.hpp:35