Thorin 1.9.0
The Higher ORder INtermediate representation
Loading...
Searching...
No Matches
thorin::PooledSet< T > Class Template Reference

Ordered set maintained in a consecutive buffer and unified in Pool. More...

#include <thorin/util/pool.h>

Inheritance diagram for thorin::PooledSet< T >:
[legend]

Classes

struct  Data
 

Public Member Functions

Getters
constexpr operator bool () const noexcept
 Is not empty?
 
constexpr bool empty () const noexcept
 
constexpr size_t size () const noexcept
 
constexpr const T & operator[] (size_t i) const
 
constexpr const T & front () const
 
constexpr const T * elems () const
 
constexpr bool contains (const T &elem) const
 
Comparisons
constexpr bool operator== (PooledSet< T > other) const noexcept
 
constexpr bool operator!= (PooledSet< T > other) const noexcept
 
Iterators
constexpr auto begin () const noexcept
 
constexpr auto end () const noexcept
 
constexpr auto cbegin () const noexcept
 
constexpr auto cend () const noexcept
 
constexpr auto rbegin () const noexcept
 
constexpr auto rend () const noexcept
 
constexpr auto crbegin () const noexcept
 
constexpr auto crend () const noexcept
 

Construction & Destruction

constexpr PooledSet () noexcept=default
 
constexpr PooledSet (const PooledSet &) noexcept=default
 
constexpr PooledSetoperator= (const PooledSet &) noexcept=default
 
constexpr void clear () noexcept
 

Detailed Description

template<class T>
class thorin::PooledSet< T >

Ordered set maintained in a consecutive buffer and unified in Pool.

Definition at line 19 of file pool.h.

Constructor & Destructor Documentation

◆ PooledSet() [1/2]

template<class T >
constexpr thorin::PooledSet< T >::PooledSet ( )
constexprdefaultnoexcept

◆ PooledSet() [2/2]

template<class T >
constexpr thorin::PooledSet< T >::PooledSet ( const PooledSet< T > &  )
constexprdefaultnoexcept

Member Function Documentation

◆ begin()

template<class T >
constexpr auto thorin::PooledSet< T >::begin ( ) const
inlineconstexprnoexcept

◆ cbegin()

template<class T >
constexpr auto thorin::PooledSet< T >::cbegin ( ) const
inlineconstexprnoexcept

Definition at line 79 of file pool.h.

References thorin::PooledSet< T >::elems().

◆ cend()

template<class T >
constexpr auto thorin::PooledSet< T >::cend ( ) const
inlineconstexprnoexcept

Definition at line 80 of file pool.h.

References thorin::PooledSet< T >::end().

◆ clear()

template<class T >
constexpr void thorin::PooledSet< T >::clear ( )
inlineconstexprnoexcept

Definition at line 55 of file pool.h.

◆ contains()

template<class T >
constexpr bool thorin::PooledSet< T >::contains ( const T &  elem) const
inlineconstexpr

◆ crbegin()

template<class T >
constexpr auto thorin::PooledSet< T >::crbegin ( ) const
inlineconstexprnoexcept

Definition at line 83 of file pool.h.

References thorin::PooledSet< T >::rbegin().

◆ crend()

template<class T >
constexpr auto thorin::PooledSet< T >::crend ( ) const
inlineconstexprnoexcept

Definition at line 84 of file pool.h.

References thorin::PooledSet< T >::rend().

◆ elems()

template<class T >
constexpr const T * thorin::PooledSet< T >::elems ( ) const
inlineconstexpr

◆ empty()

template<class T >
constexpr bool thorin::PooledSet< T >::empty ( ) const
inlineconstexprnoexcept

◆ end()

◆ front()

template<class T >
constexpr const T & thorin::PooledSet< T >::front ( ) const
inlineconstexpr

Definition at line 64 of file pool.h.

◆ operator bool()

template<class T >
constexpr thorin::PooledSet< T >::operator bool ( ) const
inlineexplicitconstexprnoexcept

Is not empty?

Definition at line 60 of file pool.h.

◆ operator!=()

template<class T >
constexpr bool thorin::PooledSet< T >::operator!= ( PooledSet< T >  other) const
inlineconstexprnoexcept

Definition at line 72 of file pool.h.

◆ operator=()

template<class T >
constexpr PooledSet & thorin::PooledSet< T >::operator= ( const PooledSet< T > &  )
constexprdefaultnoexcept

◆ operator==()

template<class T >
constexpr bool thorin::PooledSet< T >::operator== ( PooledSet< T >  other) const
inlineconstexprnoexcept

Definition at line 71 of file pool.h.

◆ operator[]()

template<class T >
constexpr const T & thorin::PooledSet< T >::operator[] ( size_t  i) const
inlineconstexpr

Definition at line 63 of file pool.h.

References thorin::PooledSet< T >::Data::elems.

◆ rbegin()

template<class T >
constexpr auto thorin::PooledSet< T >::rbegin ( ) const
inlineconstexprnoexcept

Definition at line 81 of file pool.h.

References thorin::PooledSet< T >::end().

Referenced by thorin::PooledSet< T >::crbegin().

◆ rend()

template<class T >
constexpr auto thorin::PooledSet< T >::rend ( ) const
inlineconstexprnoexcept

Definition at line 82 of file pool.h.

References thorin::PooledSet< T >::begin().

Referenced by thorin::PooledSet< T >::crend().

◆ size()

template<class T >
constexpr size_t thorin::PooledSet< T >::size ( ) const
inlineconstexprnoexcept

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