neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::basic_vector_jar< T, CookieType, MutexType > Class Template Reference

#include <jar.hpp>

Public Types

typedef CookieType cookie_type
 
typedef T value_type
 
typedef std::vector< value_typecontainer_type
 
typedef container_type::const_iterator const_iterator
 
typedef container_type::iterator iterator
 
typedef MutexType mutex_type
 

Public Member Functions

 basic_vector_jar ()
 
bool empty () const
 
std::size_t size () const
 
bool contains (cookie_type aCookie) const
 
const_iterator find (cookie_type aCookie) const
 
iterator find (cookie_type aCookie)
 
const value_typeoperator[] (cookie_type aCookie) const
 
value_typeoperator[] (cookie_type aCookie)
 
const value_typeat_index (std::size_t aIndex) const
 
value_typeat_index (std::size_t aIndex)
 
cookie_type insert (abstract_t< value_type > const &aItem)
 
template<typename... Args>
cookie_type emplace (Args &&... aArgs)
 
iterator add (cookie_type aCookie, abstract_t< value_type > const &aItem)
 
iterator erase (const_iterator aItem)
 
template<typename... Args>
iterator add (cookie_type aCookie, Args &&... aArgs)
 
iterator remove (abstract_t< value_type > const &aItem)
 
iterator remove (cookie_type aCookie)
 
cookie_type item_cookie (abstract_t< value_type > const &aItem) const
 
cookie_type next_cookie ()
 
void return_cookie (cookie_type aCookie)
 
mutex_typemutex () const
 
const_iterator cbegin () const
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator cend () const
 
const_iterator end () const
 
iterator end ()
 
void clear ()
 
const container_typeitems () const
 
container_typeitems ()
 

Detailed Description

template<typename T, typename CookieType = cookie, typename MutexType = null_mutex>
class neolib::basic_vector_jar< T, CookieType, MutexType >

Definition at line 457 of file jar.hpp.

Member Typedef Documentation

◆ const_iterator

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
typedef container_type::const_iterator neolib::basic_vector_jar< T, CookieType, MutexType >::const_iterator

Definition at line 464 of file jar.hpp.

◆ container_type

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
typedef std::vector<value_type> neolib::basic_vector_jar< T, CookieType, MutexType >::container_type

Definition at line 463 of file jar.hpp.

◆ cookie_type

Definition at line 460 of file jar.hpp.

◆ iterator

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
typedef container_type::iterator neolib::basic_vector_jar< T, CookieType, MutexType >::iterator

Definition at line 465 of file jar.hpp.

◆ mutex_type

Definition at line 466 of file jar.hpp.

◆ value_type

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
typedef T neolib::basic_vector_jar< T, CookieType, MutexType >::value_type

Definition at line 462 of file jar.hpp.

Constructor & Destructor Documentation

◆ basic_vector_jar()

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
neolib::basic_vector_jar< T, CookieType, MutexType >::basic_vector_jar ( )
inline

Definition at line 475 of file jar.hpp.

Member Function Documentation

◆ add() [1/2]

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
iterator neolib::basic_vector_jar< T, CookieType, MutexType >::add ( cookie_type  aCookie,
abstract_t< value_type > const aItem 
)
inline

Definition at line 557 of file jar.hpp.

◆ add() [2/2]

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
template<typename... Args>
iterator neolib::basic_vector_jar< T, CookieType, MutexType >::add ( cookie_type  aCookie,
Args &&...  aArgs 
)
inline

Definition at line 566 of file jar.hpp.

◆ at_index() [1/2]

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
value_type & neolib::basic_vector_jar< T, CookieType, MutexType >::at_index ( std::size_t  aIndex)
inline

Definition at line 524 of file jar.hpp.

◆ at_index() [2/2]

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
const value_type & neolib::basic_vector_jar< T, CookieType, MutexType >::at_index ( std::size_t  aIndex) const
inline

Definition at line 520 of file jar.hpp.

◆ begin() [1/2]

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
iterator neolib::basic_vector_jar< T, CookieType, MutexType >::begin ( )
inline

Definition at line 664 of file jar.hpp.

◆ begin() [2/2]

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
const_iterator neolib::basic_vector_jar< T, CookieType, MutexType >::begin ( ) const
inline

Definition at line 660 of file jar.hpp.

◆ cbegin()

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
const_iterator neolib::basic_vector_jar< T, CookieType, MutexType >::cbegin ( ) const
inline

Definition at line 656 of file jar.hpp.

◆ cend()

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
const_iterator neolib::basic_vector_jar< T, CookieType, MutexType >::cend ( ) const
inline

Definition at line 668 of file jar.hpp.

◆ clear()

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
void neolib::basic_vector_jar< T, CookieType, MutexType >::clear ( )
inline

Definition at line 681 of file jar.hpp.

◆ contains()

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
bool neolib::basic_vector_jar< T, CookieType, MutexType >::contains ( cookie_type  aCookie) const
inline

Definition at line 487 of file jar.hpp.

◆ emplace()

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
template<typename... Args>
cookie_type neolib::basic_vector_jar< T, CookieType, MutexType >::emplace ( Args &&...  aArgs)
inline

Definition at line 543 of file jar.hpp.

◆ empty()

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
bool neolib::basic_vector_jar< T, CookieType, MutexType >::empty ( ) const
inline

Definition at line 479 of file jar.hpp.

◆ end() [1/2]

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
iterator neolib::basic_vector_jar< T, CookieType, MutexType >::end ( )
inline

Definition at line 676 of file jar.hpp.

◆ end() [2/2]

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
const_iterator neolib::basic_vector_jar< T, CookieType, MutexType >::end ( ) const
inline

Definition at line 672 of file jar.hpp.

◆ erase()

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
iterator neolib::basic_vector_jar< T, CookieType, MutexType >::erase ( const_iterator  aItem)
inline

Definition at line 561 of file jar.hpp.

◆ find() [1/2]

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
iterator neolib::basic_vector_jar< T, CookieType, MutexType >::find ( cookie_type  aCookie)
inline

Definition at line 499 of file jar.hpp.

◆ find() [2/2]

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
const_iterator neolib::basic_vector_jar< T, CookieType, MutexType >::find ( cookie_type  aCookie) const
inline

Definition at line 492 of file jar.hpp.

◆ insert()

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
cookie_type neolib::basic_vector_jar< T, CookieType, MutexType >::insert ( abstract_t< value_type > const aItem)
inline

Definition at line 528 of file jar.hpp.

◆ item_cookie()

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
cookie_type neolib::basic_vector_jar< T, CookieType, MutexType >::item_cookie ( abstract_t< value_type > const aItem) const
inline

Definition at line 623 of file jar.hpp.

◆ items() [1/2]

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
container_type & neolib::basic_vector_jar< T, CookieType, MutexType >::items ( )
inline

Definition at line 694 of file jar.hpp.

◆ items() [2/2]

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
const container_type & neolib::basic_vector_jar< T, CookieType, MutexType >::items ( ) const
inline

Definition at line 690 of file jar.hpp.

◆ mutex()

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
mutex_type & neolib::basic_vector_jar< T, CookieType, MutexType >::mutex ( ) const
inline

Definition at line 652 of file jar.hpp.

◆ next_cookie()

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
cookie_type neolib::basic_vector_jar< T, CookieType, MutexType >::next_cookie ( )
inline

Definition at line 630 of file jar.hpp.

◆ operator[]() [1/2]

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
value_type & neolib::basic_vector_jar< T, CookieType, MutexType >::operator[] ( cookie_type  aCookie)
inline

Definition at line 516 of file jar.hpp.

◆ operator[]() [2/2]

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
const value_type & neolib::basic_vector_jar< T, CookieType, MutexType >::operator[] ( cookie_type  aCookie) const
inline

Definition at line 506 of file jar.hpp.

◆ remove() [1/2]

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
iterator neolib::basic_vector_jar< T, CookieType, MutexType >::remove ( abstract_t< value_type > const aItem)
inline

Definition at line 593 of file jar.hpp.

◆ remove() [2/2]

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
iterator neolib::basic_vector_jar< T, CookieType, MutexType >::remove ( cookie_type  aCookie)
inline

Definition at line 598 of file jar.hpp.

◆ return_cookie()

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
void neolib::basic_vector_jar< T, CookieType, MutexType >::return_cookie ( cookie_type  aCookie)
inline

Definition at line 645 of file jar.hpp.

◆ size()

template<typename T , typename CookieType = cookie, typename MutexType = null_mutex>
std::size_t neolib::basic_vector_jar< T, CookieType, MutexType >::size ( ) const
inline

Definition at line 483 of file jar.hpp.


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