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 ()
 
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() [1/2]

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

◆ add() [2/2]

Entity * Entities::add ( )

◆ begin() [1/4]

auto Entities::begin ( void  )
inline

◆ begin() [2/4]

auto Entities::begin ( void  )
inline

◆ begin() [3/4]

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

◆ begin() [4/4]

auto Entities::begin ( void  ) const
inline

◆ cbegin() [1/4]

auto Entities::cbegin ( void  )
inline

◆ cbegin() [2/4]

auto Entities::cbegin ( void  )
inline

◆ cbegin() [3/4]

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

◆ cbegin() [4/4]

auto Entities::cbegin ( void  ) const
inline

◆ cend() [1/4]

auto Entities::cend ( void  )
inline

◆ cend() [2/4]

auto Entities::cend ( void  )
inline

◆ cend() [3/4]

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

◆ cend() [4/4]

auto Entities::cend ( void  ) const
inline

◆ clear_flags() [1/2]

void Entities::clear_flags ( )

◆ clear_flags() [2/2]

void Entities::clear_flags ( )

◆ end() [1/4]

auto Entities::end ( void  )
inline

◆ end() [2/4]

auto Entities::end ( void  )
inline

◆ end() [3/4]

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

◆ end() [4/4]

auto Entities::end ( void  ) const
inline

◆ max() [1/2]

size_t Entities::max ( ) const
inline
Here is the caller graph for this function:

◆ max() [2/2]

size_t Entities::max ( ) const
inline

◆ n() [1/2]

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

◆ n() [2/2]

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

◆ name() [1/2]

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

◆ name() [2/2]

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

◆ name_hash() [1/2]

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

◆ name_hash() [2/2]

nngn::Hash Entities::name_hash ( const Entity e) const

◆ name_hashes_begin() [1/4]

auto Entities::name_hashes_begin ( void  )
inline

◆ name_hashes_begin() [2/4]

auto Entities::name_hashes_begin ( void  )
inline

◆ name_hashes_begin() [3/4]

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

◆ name_hashes_begin() [4/4]

auto Entities::name_hashes_begin ( void  ) const
inline

◆ name_hashes_cbegin() [1/4]

auto Entities::name_hashes_cbegin ( void  )
inline

◆ name_hashes_cbegin() [2/4]

auto Entities::name_hashes_cbegin ( void  )
inline

◆ name_hashes_cbegin() [3/4]

auto Entities::name_hashes_cbegin ( void  ) const
inline

◆ name_hashes_cbegin() [4/4]

auto Entities::name_hashes_cbegin ( void  ) const
inline

◆ name_hashes_cend() [1/4]

auto Entities::name_hashes_cend ( void  )
inline

◆ name_hashes_cend() [2/4]

auto Entities::name_hashes_cend ( void  )
inline

◆ name_hashes_cend() [3/4]

auto Entities::name_hashes_cend ( void  ) const
inline

◆ name_hashes_cend() [4/4]

auto Entities::name_hashes_cend ( void  ) const
inline

◆ name_hashes_end() [1/4]

auto Entities::name_hashes_end ( void  )
inline

◆ name_hashes_end() [2/4]

auto Entities::name_hashes_end ( void  )
inline

◆ name_hashes_end() [3/4]

auto Entities::name_hashes_end ( void  ) const
inline

◆ name_hashes_end() [4/4]

auto Entities::name_hashes_end ( void  ) const
inline

◆ names_begin() [1/4]

auto Entities::names_begin ( void  )
inline

◆ names_begin() [2/4]

auto Entities::names_begin ( void  )
inline

◆ names_begin() [3/4]

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

◆ names_begin() [4/4]

auto Entities::names_begin ( void  ) const
inline

◆ names_cbegin() [1/4]

auto Entities::names_cbegin ( void  )
inline

◆ names_cbegin() [2/4]

auto Entities::names_cbegin ( void  )
inline

◆ names_cbegin() [3/4]

auto Entities::names_cbegin ( void  ) const
inline

◆ names_cbegin() [4/4]

auto Entities::names_cbegin ( void  ) const
inline

◆ names_cend() [1/4]

auto Entities::names_cend ( void  )
inline

◆ names_cend() [2/4]

auto Entities::names_cend ( void  )
inline

◆ names_cend() [3/4]

auto Entities::names_cend ( void  ) const
inline

◆ names_cend() [4/4]

auto Entities::names_cend ( void  ) const
inline

◆ names_end() [1/4]

auto Entities::names_end ( void  )
inline

◆ names_end() [2/4]

auto Entities::names_end ( void  )
inline

◆ names_end() [3/4]

auto Entities::names_end ( void  ) const
inline

◆ names_end() [4/4]

auto Entities::names_end ( void  ) const
inline

◆ remove() [1/2]

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

◆ remove() [2/2]

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

◆ set_max() [1/2]

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_max() [2/2]

void Entities::set_max ( std::size_t  n)

◆ set_name() [1/2]

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

◆ set_name() [2/2]

void Entities::set_name ( Entity e,
std::string_view  s 
)

◆ set_tag() [1/2]

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

◆ set_tag() [2/2]

void Entities::set_tag ( Entity e,
std::string_view  s 
)

◆ tag() [1/2]

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

◆ tag() [2/2]

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

◆ tag_hash() [1/2]

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

◆ tag_hash() [2/2]

nngn::Hash Entities::tag_hash ( const Entity e) const

◆ tag_hashes_begin() [1/4]

auto Entities::tag_hashes_begin ( void  )
inline

◆ tag_hashes_begin() [2/4]

auto Entities::tag_hashes_begin ( void  )
inline

◆ tag_hashes_begin() [3/4]

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

◆ tag_hashes_begin() [4/4]

auto Entities::tag_hashes_begin ( void  ) const
inline

◆ tag_hashes_cbegin() [1/4]

auto Entities::tag_hashes_cbegin ( void  )
inline

◆ tag_hashes_cbegin() [2/4]

auto Entities::tag_hashes_cbegin ( void  )
inline

◆ tag_hashes_cbegin() [3/4]

auto Entities::tag_hashes_cbegin ( void  ) const
inline

◆ tag_hashes_cbegin() [4/4]

auto Entities::tag_hashes_cbegin ( void  ) const
inline

◆ tag_hashes_cend() [1/4]

auto Entities::tag_hashes_cend ( void  )
inline

◆ tag_hashes_cend() [2/4]

auto Entities::tag_hashes_cend ( void  )
inline

◆ tag_hashes_cend() [3/4]

auto Entities::tag_hashes_cend ( void  ) const
inline

◆ tag_hashes_cend() [4/4]

auto Entities::tag_hashes_cend ( void  ) const
inline

◆ tag_hashes_end() [1/4]

auto Entities::tag_hashes_end ( void  )
inline

◆ tag_hashes_end() [2/4]

auto Entities::tag_hashes_end ( void  )
inline

◆ tag_hashes_end() [3/4]

auto Entities::tag_hashes_end ( void  ) const
inline

◆ tag_hashes_end() [4/4]

auto Entities::tag_hashes_end ( void  ) const
inline

◆ tags_begin() [1/4]

auto Entities::tags_begin ( void  )
inline

◆ tags_begin() [2/4]

auto Entities::tags_begin ( void  )
inline

◆ tags_begin() [3/4]

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

◆ tags_begin() [4/4]

auto Entities::tags_begin ( void  ) const
inline

◆ tags_cbegin() [1/4]

auto Entities::tags_cbegin ( void  )
inline

◆ tags_cbegin() [2/4]

auto Entities::tags_cbegin ( void  )
inline

◆ tags_cbegin() [3/4]

auto Entities::tags_cbegin ( void  ) const
inline

◆ tags_cbegin() [4/4]

auto Entities::tags_cbegin ( void  ) const
inline

◆ tags_cend() [1/4]

auto Entities::tags_cend ( void  )
inline

◆ tags_cend() [2/4]

auto Entities::tags_cend ( void  )
inline

◆ tags_cend() [3/4]

auto Entities::tags_cend ( void  ) const
inline

◆ tags_cend() [4/4]

auto Entities::tags_cend ( void  ) const
inline

◆ tags_end() [1/4]

auto Entities::tags_end ( void  )
inline

◆ tags_end() [2/4]

auto Entities::tags_end ( void  )
inline

◆ tags_end() [3/4]

auto Entities::tags_end ( void  ) const
inline

◆ tags_end() [4/4]

auto Entities::tags_end ( void  ) const
inline

◆ update() [1/2]

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

◆ update() [2/2]

void Entities::update ( const nngn::Timing t)

◆ update_children() [1/2]

void Entities::update_children ( )

◆ update_children() [2/2]

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: