nngn
Loading...
Searching...
No Matches
Entities Class Reference

#include <entity.h>

Collaboration diagram for Entities:

Public Member Functions

size_t max () const
 
size_t n () const
 
void set_max (std::size_t n)
 
Entityadd ()
 
void remove (Entity *e)
 
auto cbegin (void) const
 
auto cbegin (void)
 
auto cend (void) const
 
auto cend (void)
 
auto begin (void) const
 
auto begin (void)
 
auto end (void) const
 
auto end (void)
 
auto names_cbegin (void) const
 
auto names_cbegin (void)
 
auto names_cend (void) const
 
auto names_cend (void)
 
auto names_begin (void) const
 
auto names_begin (void)
 
auto names_end (void) const
 
auto names_end (void)
 
auto tags_cbegin (void) const
 
auto tags_cbegin (void)
 
auto tags_cend (void) const
 
auto tags_cend (void)
 
auto tags_begin (void) const
 
auto tags_begin (void)
 
auto tags_end (void) const
 
auto tags_end (void)
 
auto name_hashes_cbegin (void) const
 
auto name_hashes_cbegin (void)
 
auto name_hashes_cend (void) const
 
auto name_hashes_cend (void)
 
auto name_hashes_begin (void) const
 
auto name_hashes_begin (void)
 
auto name_hashes_end (void) const
 
auto name_hashes_end (void)
 
auto tag_hashes_cbegin (void) const
 
auto tag_hashes_cbegin (void)
 
auto tag_hashes_cend (void) const
 
auto tag_hashes_cend (void)
 
auto tag_hashes_begin (void) const
 
auto tag_hashes_begin (void)
 
auto tag_hashes_end (void) const
 
auto tag_hashes_end (void)
 
std::span< const char, 32 > name (const Entity &e) const
 
std::span< const char, 32 > tag (const Entity &e) const
 
nngn::Hash name_hash (const Entity &e) const
 
nngn::Hash tag_hash (const Entity &e) const
 
void set_name (Entity *e, std::string_view s)
 
void set_tag (Entity *e, std::string_view s)
 
void update (const nngn::Timing &t)
 
void update_children ()
 
void clear_flags ()
 

Private Attributes

nngn::static_vector< Entityv = {}
 
std::vector< std::array< char, 32 > > names = {}
 
std::vector< std::array< char, 32 > > tags = {}
 
std::vector< nngn::Hashname_hashes = {}
 
std::vector< nngn::Hashtag_hashes = {}
 

Member Function Documentation

◆ add()

Entity * Entities::add ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ begin() [1/2]

auto Entities::begin ( void )
inline

◆ begin() [2/2]

auto Entities::begin ( void ) const
inline
Here is the caller graph for this function:

◆ cbegin() [1/2]

auto Entities::cbegin ( void )
inline

◆ cbegin() [2/2]

auto Entities::cbegin ( void ) const
inline
Here is the caller graph for this function:

◆ cend() [1/2]

auto Entities::cend ( void )
inline

◆ cend() [2/2]

auto Entities::cend ( void ) const
inline
Here is the caller graph for this function:

◆ clear_flags()

void Entities::clear_flags ( )

◆ end() [1/2]

auto Entities::end ( void )
inline

◆ end() [2/2]

auto Entities::end ( void ) const
inline
Here is the caller graph for this function:

◆ max()

size_t Entities::max ( ) const
inline

◆ n()

size_t Entities::n ( ) const
inline
Here is the call graph for this function:

◆ name()

std::span< const char, 32 > Entities::name ( const Entity & e) const

◆ name_hash()

nngn::Hash Entities::name_hash ( const Entity & e) const
Here is the caller graph for this function:

◆ name_hashes_begin() [1/2]

auto Entities::name_hashes_begin ( void )
inline

◆ name_hashes_begin() [2/2]

auto Entities::name_hashes_begin ( void ) const
inline
Here is the caller graph for this function:

◆ name_hashes_cbegin() [1/2]

auto Entities::name_hashes_cbegin ( void )
inline

◆ name_hashes_cbegin() [2/2]

auto Entities::name_hashes_cbegin ( void ) const
inline

◆ name_hashes_cend() [1/2]

auto Entities::name_hashes_cend ( void )
inline

◆ name_hashes_cend() [2/2]

auto Entities::name_hashes_cend ( void ) const
inline

◆ name_hashes_end() [1/2]

auto Entities::name_hashes_end ( void )
inline

◆ name_hashes_end() [2/2]

auto Entities::name_hashes_end ( void ) const
inline

◆ names_begin() [1/2]

auto Entities::names_begin ( void )
inline

◆ names_begin() [2/2]

auto Entities::names_begin ( void ) const
inline
Here is the caller graph for this function:

◆ names_cbegin() [1/2]

auto Entities::names_cbegin ( void )
inline

◆ names_cbegin() [2/2]

auto Entities::names_cbegin ( void ) const
inline

◆ names_cend() [1/2]

auto Entities::names_cend ( void )
inline

◆ names_cend() [2/2]

auto Entities::names_cend ( void ) const
inline

◆ names_end() [1/2]

auto Entities::names_end ( void )
inline

◆ names_end() [2/2]

auto Entities::names_end ( void ) const
inline

◆ remove()

void Entities::remove ( Entity * e)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_max()

void Entities::set_max ( std::size_t n)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_name()

void Entities::set_name ( Entity * e,
std::string_view s )
Here is the call graph for this function:

◆ set_tag()

void Entities::set_tag ( Entity * e,
std::string_view s )
Here is the call graph for this function:

◆ tag()

std::span< const char, 32 > Entities::tag ( const Entity & e) const
Here is the caller graph for this function:

◆ tag_hash()

nngn::Hash Entities::tag_hash ( const Entity & e) const
Here is the caller graph for this function:

◆ tag_hashes_begin() [1/2]

auto Entities::tag_hashes_begin ( void )
inline

◆ tag_hashes_begin() [2/2]

auto Entities::tag_hashes_begin ( void ) const
inline
Here is the caller graph for this function:

◆ tag_hashes_cbegin() [1/2]

auto Entities::tag_hashes_cbegin ( void )
inline

◆ tag_hashes_cbegin() [2/2]

auto Entities::tag_hashes_cbegin ( void ) const
inline

◆ tag_hashes_cend() [1/2]

auto Entities::tag_hashes_cend ( void )
inline

◆ tag_hashes_cend() [2/2]

auto Entities::tag_hashes_cend ( void ) const
inline

◆ tag_hashes_end() [1/2]

auto Entities::tag_hashes_end ( void )
inline

◆ tag_hashes_end() [2/2]

auto Entities::tag_hashes_end ( void ) const
inline

◆ tags_begin() [1/2]

auto Entities::tags_begin ( void )
inline

◆ tags_begin() [2/2]

auto Entities::tags_begin ( void ) const
inline
Here is the caller graph for this function:

◆ tags_cbegin() [1/2]

auto Entities::tags_cbegin ( void )
inline

◆ tags_cbegin() [2/2]

auto Entities::tags_cbegin ( void ) const
inline

◆ tags_cend() [1/2]

auto Entities::tags_cend ( void )
inline

◆ tags_cend() [2/2]

auto Entities::tags_cend ( void ) const
inline

◆ tags_end() [1/2]

auto Entities::tags_end ( void )
inline

◆ tags_end() [2/2]

auto Entities::tags_end ( void ) const
inline

◆ update()

void Entities::update ( const nngn::Timing & t)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_children()

void Entities::update_children ( )

Member Data Documentation

◆ name_hashes

std::vector<nngn::Hash> Entities::name_hashes = {}
private

◆ names

std::vector<std::array<char, 32> > Entities::names = {}
private

◆ tag_hashes

std::vector<nngn::Hash> Entities::tag_hashes = {}
private

◆ tags

std::vector<std::array<char, 32> > Entities::tags = {}
private

◆ v

nngn::static_vector<Entity> Entities::v = {}
private

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