CCF
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
ccf::ds::ContiguousSet< T > Class Template Reference

#include <contiguous_set.h>

Classes

struct  ConstIterator
 

Public Types

using Range = std::pair< T, size_t >
 
using Ranges = std::vector< Range >
 

Public Member Functions

 ContiguousSet ()=default
 
template<typename It >
 ContiguousSet (It &&begin, It &&end)
 
 ContiguousSet (const T &from, size_t additional)
 
bool operator== (const ContiguousSet &other) const
 
bool operator!= (const ContiguousSet &other) const
 
const Rangesget_ranges () const
 
size_t size () const
 
bool empty () const
 
bool insert (const T &t)
 
bool erase (const T &t)
 
void extend (const T &from, size_t additional)
 
bool contains (const T &t) const
 
ConstIterator find (const T &t) const
 
ConstIterator lower_bound (const T &t) const
 
ConstIterator upper_bound (const T &t) const
 
void clear ()
 
front () const
 
back () const
 
ConstIterator begin () const
 
ConstIterator end () const
 

Member Typedef Documentation

◆ Range

template<typename T >
using ccf::ds::ContiguousSet< T >::Range = std::pair<T, size_t>

◆ Ranges

template<typename T >
using ccf::ds::ContiguousSet< T >::Ranges = std::vector<Range>

Constructor & Destructor Documentation

◆ ContiguousSet() [1/3]

template<typename T >
ccf::ds::ContiguousSet< T >::ContiguousSet ( )
default

◆ ContiguousSet() [2/3]

template<typename T >
template<typename It >
ccf::ds::ContiguousSet< T >::ContiguousSet ( It &&  begin,
It &&  end 
)
inline

◆ ContiguousSet() [3/3]

template<typename T >
ccf::ds::ContiguousSet< T >::ContiguousSet ( const T &  from,
size_t  additional 
)
inline

Member Function Documentation

◆ back()

template<typename T >
T ccf::ds::ContiguousSet< T >::back ( ) const
inline

◆ begin()

template<typename T >
ConstIterator ccf::ds::ContiguousSet< T >::begin ( ) const
inline

◆ clear()

template<typename T >
void ccf::ds::ContiguousSet< T >::clear ( )
inline

◆ contains()

template<typename T >
bool ccf::ds::ContiguousSet< T >::contains ( const T &  t) const
inline

◆ empty()

template<typename T >
bool ccf::ds::ContiguousSet< T >::empty ( ) const
inline

◆ end()

template<typename T >
ConstIterator ccf::ds::ContiguousSet< T >::end ( ) const
inline

◆ erase()

template<typename T >
bool ccf::ds::ContiguousSet< T >::erase ( const T &  t)
inline

◆ extend()

template<typename T >
void ccf::ds::ContiguousSet< T >::extend ( const T &  from,
size_t  additional 
)
inline

◆ find()

template<typename T >
ConstIterator ccf::ds::ContiguousSet< T >::find ( const T &  t) const
inline

◆ front()

template<typename T >
T ccf::ds::ContiguousSet< T >::front ( ) const
inline

◆ get_ranges()

template<typename T >
const Ranges & ccf::ds::ContiguousSet< T >::get_ranges ( ) const
inline

◆ insert()

template<typename T >
bool ccf::ds::ContiguousSet< T >::insert ( const T &  t)
inline

◆ lower_bound()

template<typename T >
ConstIterator ccf::ds::ContiguousSet< T >::lower_bound ( const T &  t) const
inline

◆ operator!=()

template<typename T >
bool ccf::ds::ContiguousSet< T >::operator!= ( const ContiguousSet< T > &  other) const
inline

◆ operator==()

template<typename T >
bool ccf::ds::ContiguousSet< T >::operator== ( const ContiguousSet< T > &  other) const
inline

◆ size()

template<typename T >
size_t ccf::ds::ContiguousSet< T >::size ( ) const
inline

◆ upper_bound()

template<typename T >
ConstIterator ccf::ds::ContiguousSet< T >::upper_bound ( const T &  t) const
inline

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