Bash++
Bash++ compiler internal documentation
Public Member Functions | Private Attributes | List of all members
bpp::OwnedEntityList< T > Class Template Reference

#include <bpp.h>

Public Member Functions

bool add (std::shared_ptr< T > entity)
 
std::shared_ptr< T > find (const std::string &name, size_t max_visible_index=SIZE_MAX)
 
size_t size () const
 
const std::vector< std::shared_ptr< T > > & get_entities () const
 

Private Attributes

std::vector< std::shared_ptr< T > > entities
 
std::unordered_map< std::string, size_t > name_to_index
 

Member Function Documentation

◆ add()

template<class T >
bool bpp::OwnedEntityList< T >::add ( std::shared_ptr< T >  entity)
inline

◆ find()

template<class T >
std::shared_ptr< T > bpp::OwnedEntityList< T >::find ( const std::string &  name,
size_t  max_visible_index = SIZE_MAX 
)
inline

◆ get_entities()

template<class T >
const std::vector< std::shared_ptr< T > > & bpp::OwnedEntityList< T >::get_entities ( ) const
inline

◆ size()

template<class T >
size_t bpp::OwnedEntityList< T >::size ( ) const
inline

Member Data Documentation

◆ entities

template<class T >
std::vector<std::shared_ptr<T> > bpp::OwnedEntityList< T >::entities
private

◆ name_to_index

template<class T >
std::unordered_map<std::string, size_t> bpp::OwnedEntityList< T >::name_to_index
private

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