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

#include <set.hpp>

Inheritance diagram for neolib::multiset< T, Pred, Alloc >:
neolib::reference_counted< i_multiset< abstract_t< T > > > neolib::i_multiset< abstract_t< T > > neolib::i_container< T, ConstIteratorType, IteratorType > neolib::i_reference_counted

Public Types

typedef i_multiset< abstract_t< T > > abstract_type
 
typedef abstract_t< Tabstract_key_type
 
typedef abstract_t< Tabstract_value_type
 
typedef T key_type
 
typedef T value_type
 
typedef Pred compare_type
 
typedef Alloc allocator_type
 
typedef mutable_multiset< value_type, compare_type, allocator_typestd_type
 
typedef abstract_type::size_type size_type
 
typedef container::const_iterator< abstract_value_type, typename std_type::const_iteratorcontainer_const_iterator
 
typedef container::iterator< abstract_value_type, typename std_type::iterator, typename std_type::const_iteratorcontainer_iterator
 
typedef abstract_type::const_iterator const_iterator
 
typedef abstract_type::iterator iterator
 
- Public Types inherited from neolib::i_multiset< abstract_t< T > >
typedef self_type abstract_type
 
typedef abstract_t< T > abstract_key_type
 
typedef abstract_t< T > abstract_value_type
 
typedef base_type abstract_container
 
typedef base_type::const_iterator const_iterator
 
typedef base_type::iterator iterator
 
- Public Types inherited from neolib::i_container< T, ConstIteratorType, IteratorType >
typedef T value_type
 
typedef size_t size_type
 
typedef ConstIteratorType abstract_const_iterator
 
typedef IteratorType abstract_iterator
 
typedef abstract_const_iterator::iterator_wrapper const_iterator
 
typedef abstract_iterator::iterator_wrapper iterator
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef std::reverse_iterator< iteratorreverse_iterator
 

Public Member Functions

 multiset ()
 
 multiset (const abstract_container &aOther)
 
 multiset (std::initializer_list< value_type > aElements)
 
template<typename InputIter >
 multiset (InputIter aFirst, InputIter aLast)
 
const std_typeas_std_multiset () const
 
std_typeas_std_multiset ()
 
std_type to_std_multiset () const
 
constexpr bool operator== (const self_type &that) const noexcept
 
constexpr std::partial_ordering operator<=> (const self_type &that) const noexcept
 
size_type size () const noexcept final
 
size_type max_size () const noexcept final
 
void clear () final
 
void assign (const abstract_container &aOther) final
 
abstract_iteratordo_insert (void *memory, const abstract_value_type &aValue) final
 
abstract_const_iteratordo_find (void *memory, const abstract_key_type &aKey) const final
 
abstract_iteratordo_find (void *memory, const abstract_key_type &aKey) final
 
- Public Member Functions inherited from neolib::reference_counted< i_multiset< abstract_t< T > > >
 reference_counted () noexcept
 
 reference_counted (const reference_counted &aOther) noexcept
 
 ~reference_counted ()
 
reference_countedoperator= (const reference_counted &)
 
void add_ref () const noexcept override
 
void release () const override
 
int32_t use_count () const noexcept override
 
const base_typerelease_and_take_ownership () const override
 
base_typerelease_and_take_ownership () override
 
void pin () const noexcept override
 
void unpin () const override
 
i_ref_control_blockcontrol_block () override
 
- Public Member Functions inherited from neolib::i_multiset< abstract_t< T > >
iterator insert (const abstract_value_type &aValue)
 
const_iterator find (const abstract_key_type &aKey) const
 
iterator find (const abstract_key_type &aKey)
 
- Public Member Functions inherited from neolib::i_container< T, ConstIteratorType, IteratorType >
bool empty () const noexcept
 
const_iterator cbegin () const
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator cend () const
 
const_iterator end () const
 
iterator end ()
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator rbegin () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator crend () const
 
const_reverse_iterator rend () const
 
reverse_iterator rend ()
 
iterator erase (const abstract_iterator &aPosition)
 
iterator erase (const abstract_const_iterator &aPosition)
 
iterator erase (const abstract_iterator &aFirst, const abstract_iterator &aLast)
 
iterator erase (const abstract_const_iterator &aFirst, const abstract_const_iterator &aLast)
 
virtual void assign (const i_container &aRhs)=0
 
i_containeroperator= (const i_container &aRhs)
 
- Public Member Functions inherited from neolib::i_reference_counted
virtual ~i_reference_counted ()=default
 

Protected Types

typedef abstract_type::abstract_const_iterator abstract_const_iterator
 
typedef abstract_type::abstract_iterator abstract_iterator
 
- Protected Types inherited from neolib::i_multiset< abstract_t< T > >
typedef base_type::abstract_const_iterator abstract_const_iterator
 
typedef base_type::abstract_iterator abstract_iterator
 
- Protected Types inherited from neolib::i_container< T, ConstIteratorType, IteratorType >
typedef i_container< T, ConstIteratorType, IteratorTypegeneric_container_type
 

Detailed Description

template<typename T, typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
class neolib::multiset< T, Pred, Alloc >

Definition at line 135 of file set.hpp.

Member Typedef Documentation

◆ abstract_const_iterator

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
typedef abstract_type::abstract_const_iterator neolib::multiset< T, Pred, Alloc >::abstract_const_iterator
protected

Definition at line 156 of file set.hpp.

◆ abstract_iterator

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
typedef abstract_type::abstract_iterator neolib::multiset< T, Pred, Alloc >::abstract_iterator
protected

Definition at line 157 of file set.hpp.

◆ abstract_key_type

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
typedef abstract_t<T> neolib::multiset< T, Pred, Alloc >::abstract_key_type

Definition at line 142 of file set.hpp.

◆ abstract_type

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
typedef i_multiset<abstract_t<T> > neolib::multiset< T, Pred, Alloc >::abstract_type

Definition at line 141 of file set.hpp.

◆ abstract_value_type

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
typedef abstract_t<T> neolib::multiset< T, Pred, Alloc >::abstract_value_type

Definition at line 143 of file set.hpp.

◆ allocator_type

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
typedef Alloc neolib::multiset< T, Pred, Alloc >::allocator_type

Definition at line 147 of file set.hpp.

◆ compare_type

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
typedef Pred neolib::multiset< T, Pred, Alloc >::compare_type

Definition at line 146 of file set.hpp.

◆ const_iterator

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
typedef abstract_type::const_iterator neolib::multiset< T, Pred, Alloc >::const_iterator

Definition at line 159 of file set.hpp.

◆ container_const_iterator

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
typedef container::const_iterator<abstract_value_type, typename std_type::const_iterator> neolib::multiset< T, Pred, Alloc >::container_const_iterator

Definition at line 153 of file set.hpp.

◆ container_iterator

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
typedef container::iterator<abstract_value_type, typename std_type::iterator, typename std_type::const_iterator> neolib::multiset< T, Pred, Alloc >::container_iterator

Definition at line 154 of file set.hpp.

◆ iterator

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
typedef abstract_type::iterator neolib::multiset< T, Pred, Alloc >::iterator

Definition at line 160 of file set.hpp.

◆ key_type

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
typedef T neolib::multiset< T, Pred, Alloc >::key_type

Definition at line 144 of file set.hpp.

◆ size_type

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
typedef abstract_type::size_type neolib::multiset< T, Pred, Alloc >::size_type

Definition at line 152 of file set.hpp.

◆ std_type

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
typedef mutable_multiset<value_type, compare_type, allocator_type> neolib::multiset< T, Pred, Alloc >::std_type

Definition at line 148 of file set.hpp.

◆ value_type

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
typedef T neolib::multiset< T, Pred, Alloc >::value_type

Definition at line 145 of file set.hpp.

Constructor & Destructor Documentation

◆ multiset() [1/4]

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
neolib::multiset< T, Pred, Alloc >::multiset ( )
inline

Definition at line 163 of file set.hpp.

◆ multiset() [2/4]

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
neolib::multiset< T, Pred, Alloc >::multiset ( const abstract_container aOther)
inline

Definition at line 165 of file set.hpp.

◆ multiset() [3/4]

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
neolib::multiset< T, Pred, Alloc >::multiset ( std::initializer_list< value_type aElements)
inline

Definition at line 169 of file set.hpp.

◆ multiset() [4/4]

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
template<typename InputIter >
neolib::multiset< T, Pred, Alloc >::multiset ( InputIter  aFirst,
InputIter  aLast 
)
inline

Definition at line 173 of file set.hpp.

Member Function Documentation

◆ as_std_multiset() [1/2]

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
std_type & neolib::multiset< T, Pred, Alloc >::as_std_multiset ( )
inline

Definition at line 179 of file set.hpp.

◆ as_std_multiset() [2/2]

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
const std_type & neolib::multiset< T, Pred, Alloc >::as_std_multiset ( ) const
inline

Definition at line 178 of file set.hpp.

◆ assign()

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
void neolib::multiset< T, Pred, Alloc >::assign ( const abstract_container aOther)
inlinefinal

Definition at line 197 of file set.hpp.

◆ clear()

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
void neolib::multiset< T, Pred, Alloc >::clear ( )
inlinefinalvirtual

◆ do_find() [1/2]

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
abstract_const_iterator * neolib::multiset< T, Pred, Alloc >::do_find ( void memory,
const abstract_key_type aKey 
) const
inlinefinalvirtual

Implements neolib::i_multiset< abstract_t< T > >.

Definition at line 216 of file set.hpp.

◆ do_find() [2/2]

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
abstract_iterator * neolib::multiset< T, Pred, Alloc >::do_find ( void memory,
const abstract_key_type aKey 
)
inlinefinalvirtual

Implements neolib::i_multiset< abstract_t< T > >.

Definition at line 217 of file set.hpp.

◆ do_insert()

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
abstract_iterator * neolib::multiset< T, Pred, Alloc >::do_insert ( void memory,
const abstract_value_type aValue 
)
inlinefinalvirtual

Implements neolib::i_multiset< abstract_t< T > >.

Definition at line 215 of file set.hpp.

◆ max_size()

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
size_type neolib::multiset< T, Pred, Alloc >::max_size ( ) const
inlinefinalvirtualnoexcept

◆ operator<=>()

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
constexpr std::partial_ordering neolib::multiset< T, Pred, Alloc >::operator<=> ( const self_type &  that) const
inlineconstexprnoexcept

Definition at line 187 of file set.hpp.

◆ operator==()

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
constexpr bool neolib::multiset< T, Pred, Alloc >::operator== ( const self_type &  that) const
inlineconstexprnoexcept

Definition at line 183 of file set.hpp.

◆ size()

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
size_type neolib::multiset< T, Pred, Alloc >::size ( ) const
inlinefinalvirtualnoexcept

◆ to_std_multiset()

template<typename T , typename Pred = std::less<typename crack_key<T>::key_type>, typename Alloc = std::allocator<T>>
std_type neolib::multiset< T, Pred, Alloc >::to_std_multiset ( ) const
inline

Definition at line 180 of file set.hpp.


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