GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::StringPoolBase< CharT, Allocator > Class Template Reference

#include <GREM/core/data/StringPool.hpp>

Public Types

using allocator_type = Allocator

Public Member Functions

constexpr StringPoolBase () noexcept
constexpr StringPoolBase (std::size_t initialCapacity, const Allocator &allocator=Allocator())
constexpr StringPoolBase (const Allocator &allocator)
constexpr StringPoolBase (const StringPoolBase &other)
constexpr StringPoolBase (const StringPoolBase &other, const Allocator &allocator)
constexpr StringPoolBase (StringPoolBase &&other) noexcept=default
constexpr StringPoolBase (StringPoolBase &&other, const Allocator &allocator) noexcept
constexpr ~StringPoolBase ()=default
constexpr StringPoolBase & operator= (const StringPoolBase &other)=default
constexpr StringPoolBase & operator= (StringPoolBase &&other) noexcept=default
constexpr void clear () noexcept
constexpr StringID insert (StringViewBase< CharT > string)
constexpr StringID find (StringViewBase< CharT > string) const noexcept
constexpr StringViewBase< CharT > operator[] (StringID id) const
constexpr const CharT * c_str (StringID id) const
constexpr allocator_type get_allocator () const noexcept

Static Public Attributes

static constexpr std::size_t MAX_STRING_LENGTH {std::numeric_limits<Length>::max()}

Member Typedef Documentation

◆ allocator_type

template<typename CharT, typename Allocator = std::allocator<CharT>>
using grem::StringPoolBase< CharT, Allocator >::allocator_type = Allocator

Constructor & Destructor Documentation

◆ StringPoolBase() [1/7]

template<typename CharT, typename Allocator = std::allocator<CharT>>
grem::StringPoolBase< CharT, Allocator >::StringPoolBase ( )
inlineconstexprnoexcept

◆ StringPoolBase() [2/7]

template<typename CharT, typename Allocator = std::allocator<CharT>>
grem::StringPoolBase< CharT, Allocator >::StringPoolBase ( std::size_t initialCapacity,
const Allocator & allocator = Allocator() )
inlineexplicitconstexpr

◆ StringPoolBase() [3/7]

template<typename CharT, typename Allocator = std::allocator<CharT>>
grem::StringPoolBase< CharT, Allocator >::StringPoolBase ( const Allocator & allocator)
inlineexplicitconstexpr

◆ StringPoolBase() [4/7]

template<typename CharT, typename Allocator = std::allocator<CharT>>
grem::StringPoolBase< CharT, Allocator >::StringPoolBase ( const StringPoolBase< CharT, Allocator > & other)
inlineconstexpr

◆ StringPoolBase() [5/7]

template<typename CharT, typename Allocator = std::allocator<CharT>>
grem::StringPoolBase< CharT, Allocator >::StringPoolBase ( const StringPoolBase< CharT, Allocator > & other,
const Allocator & allocator )
inlineconstexpr

◆ StringPoolBase() [6/7]

template<typename CharT, typename Allocator = std::allocator<CharT>>
grem::StringPoolBase< CharT, Allocator >::StringPoolBase ( StringPoolBase< CharT, Allocator > && other)
constexprdefaultnoexcept

◆ StringPoolBase() [7/7]

template<typename CharT, typename Allocator = std::allocator<CharT>>
grem::StringPoolBase< CharT, Allocator >::StringPoolBase ( StringPoolBase< CharT, Allocator > && other,
const Allocator & allocator )
inlineconstexprnoexcept

◆ ~StringPoolBase()

template<typename CharT, typename Allocator = std::allocator<CharT>>
grem::StringPoolBase< CharT, Allocator >::~StringPoolBase ( )
constexprdefault

Member Function Documentation

◆ operator=() [1/2]

template<typename CharT, typename Allocator = std::allocator<CharT>>
StringPoolBase & grem::StringPoolBase< CharT, Allocator >::operator= ( const StringPoolBase< CharT, Allocator > & other)
constexprdefault

◆ operator=() [2/2]

template<typename CharT, typename Allocator = std::allocator<CharT>>
StringPoolBase & grem::StringPoolBase< CharT, Allocator >::operator= ( StringPoolBase< CharT, Allocator > && other)
constexprdefaultnoexcept

◆ clear()

template<typename CharT, typename Allocator = std::allocator<CharT>>
void grem::StringPoolBase< CharT, Allocator >::clear ( )
inlineconstexprnoexcept

◆ insert()

template<typename CharT, typename Allocator = std::allocator<CharT>>
StringID grem::StringPoolBase< CharT, Allocator >::insert ( StringViewBase< CharT > string)
inlinenodiscardconstexpr

◆ find()

template<typename CharT, typename Allocator = std::allocator<CharT>>
StringID grem::StringPoolBase< CharT, Allocator >::find ( StringViewBase< CharT > string) const
inlinenodiscardconstexprnoexcept

◆ operator[]()

template<typename CharT, typename Allocator = std::allocator<CharT>>
StringViewBase< CharT > grem::StringPoolBase< CharT, Allocator >::operator[] ( StringID id) const
inlinenodiscardconstexpr

◆ c_str()

template<typename CharT, typename Allocator = std::allocator<CharT>>
const CharT * grem::StringPoolBase< CharT, Allocator >::c_str ( StringID id) const
inlinenodiscardconstexpr

◆ get_allocator()

template<typename CharT, typename Allocator = std::allocator<CharT>>
allocator_type grem::StringPoolBase< CharT, Allocator >::get_allocator ( ) const
inlinenodiscardconstexprnoexcept

Member Data Documentation

◆ MAX_STRING_LENGTH

template<typename CharT, typename Allocator = std::allocator<CharT>>
std::size_t grem::StringPoolBase< CharT, Allocator >::MAX_STRING_LENGTH {std::numeric_limits<Length>::max()}
staticconstexpr

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