stmm-games-doc  0.32.0
Public Member Functions | List of all members
stmg::AssignableNamedObjIndex< T > Class Template Reference
Inheritance diagram for stmg::AssignableNamedObjIndex< T >:
Inheritance graph
[legend]

Public Member Functions

 AssignableNamedObjIndex () noexcept
 
 AssignableNamedObjIndex (const AssignableNamedObjIndex< T > &oSource) noexcept
 
 AssignableNamedObjIndex (AssignableNamedObjIndex< T > &&oSource) noexcept
 
AssignableNamedObjIndexoperator= (const AssignableNamedObjIndex &oSource) noexcept
 
AssignableNamedObjIndexoperator= (AssignableNamedObjIndex &&oSource) noexcept
 
- Public Member Functions inherited from stmg::NamedObjIndex< T >
 NamedObjIndex () noexcept
 Constructor. More...
 
 NamedObjIndex (const NamedObjIndex< T > &oSource) noexcept
 
 NamedObjIndex (NamedObjIndex< T > &&oSource) noexcept
 
int32_t size () const noexcept
 The number names in the named object index. More...
 
bool isIndex (int32_t nIndex) const noexcept
 Whether an index is associated with a named object. More...
 
const std::string & getName (int32_t nIndex) const noexcept
 Get the name associated with an index. More...
 
const T & getObj (int32_t nIndex) const noexcept
 Get the object associated with the index. More...
 
int32_t addNamedObj (const std::string &sName, const T &oT) noexcept
 Add a named object. More...
 
int32_t addNamedObj (std::string &&sName, T &&oT) noexcept
 Add a named object. More...
 
int32_t getIndex (const std::string &sName) const noexcept
 The index associated with a name. More...
 
int32_t findIndexNameStarts (const std::string &sStartOfName) const noexcept
 Find the first index with a name that starts with a string. More...
 

Additional Inherited Members

- Protected Member Functions inherited from stmg::NamedObjIndex< T >
NamedObjIndex< T > & operator= (const NamedObjIndex< T > &oSource) noexcept
 
NamedObjIndex< T > & operator= (NamedObjIndex< T > &&oSource) noexcept
 
T & getModifiableObj (int32_t nIndex) noexcept
 Get the modifiable object associated with the index. More...
 
void clear () noexcept
 Clear all objects. More...
 

Constructor & Destructor Documentation

◆ AssignableNamedObjIndex() [1/3]

template<class T >
stmg::AssignableNamedObjIndex< T >::AssignableNamedObjIndex ( )
noexcept

◆ AssignableNamedObjIndex() [2/3]

template<class T>
stmg::AssignableNamedObjIndex< T >::AssignableNamedObjIndex ( const AssignableNamedObjIndex< T > &  oSource)
noexcept

◆ AssignableNamedObjIndex() [3/3]

template<class T>
stmg::AssignableNamedObjIndex< T >::AssignableNamedObjIndex ( AssignableNamedObjIndex< T > &&  oSource)
noexcept

Member Function Documentation

◆ operator=() [1/2]

template<class T >
AssignableNamedObjIndex< T > & stmg::AssignableNamedObjIndex< T >::operator= ( const AssignableNamedObjIndex< T > &  oSource)
noexcept

◆ operator=() [2/2]

template<class T >
AssignableNamedObjIndex< T > & stmg::AssignableNamedObjIndex< T >::operator= ( AssignableNamedObjIndex< T > &&  oSource)
noexcept