opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Friends | List of all members
osc::SharedPreHashedString Class Reference

#include <shared_pre_hashed_string.h>

Inheritance diagram for osc::SharedPreHashedString:
[legend]

Public Types

using traits_type = std::string_view::traits_type
 
using value_type = std::string_view::value_type
 
using size_type = std::string_view::size_type
 
using difference_type = std::string_view::difference_type
 
using reference = std::string_view::const_reference
 
using const_reference = std::string_view::const_reference
 
using iterator = std::string_view::const_iterator
 
using const_iterator = std::string_view::const_iterator
 
using reverse_iterator = std::string_view::const_reverse_iterator
 
using const_reverse_iterator = std::string_view::const_reverse_iterator
 

Public Member Functions

 SharedPreHashedString ()
 
 SharedPreHashedString (std::string_view str)
 
 SharedPreHashedString (const char *s)
 
 SharedPreHashedString (std::nullptr_t)=delete
 
 SharedPreHashedString (const SharedPreHashedString &src) noexcept
 
 SharedPreHashedString (SharedPreHashedString &&tmp) noexcept
 
SharedPreHashedStringoperator= (const SharedPreHashedString &src) noexcept
 
SharedPreHashedStringoperator= (SharedPreHashedString &&tmp) noexcept
 
 ~SharedPreHashedString () noexcept
 
const_reference at (size_type pos) const
 
const_reference operator[] (size_type pos) const
 
const_reference front () const
 
const_reference back () const
 
const value_typedata () const
 
const value_typec_str () const
 
 operator std::string_view () const noexcept
 
 operator CStringView () const noexcept
 
const_iterator begin () const noexcept
 
const_iterator cbegin () const noexcept
 
const_iterator end () const noexcept
 
const_iterator cend () const noexcept
 
bool empty () const noexcept
 
bool starts_with (std::string_view sv) const noexcept
 
size_type size () const
 
long use_count () const noexcept
 

Friends

struct std::hash< SharedPreHashedString >
 
void swap (SharedPreHashedString &a, SharedPreHashedString &b) noexcept
 
constexpr bool operator== (const SharedPreHashedString &lhs, const SharedPreHashedString &rhs)
 
template<typename StringViewLike >
requires std::constructible_from<std::string_view, StringViewLike>
constexpr bool operator== (const SharedPreHashedString &lhs, const StringViewLike &rhs)
 
template<typename StringViewLike >
requires std::constructible_from<std::string_view, StringViewLike>
constexpr bool operator== (const StringViewLike &lhs, const SharedPreHashedString &rhs)
 
constexpr auto operator<=> (const SharedPreHashedString &lhs, const SharedPreHashedString &rhs)
 
template<typename StringViewLike >
requires std::constructible_from<std::string_view, StringViewLike>
constexpr auto operator<=> (const SharedPreHashedString &lhs, const StringViewLike &rhs)
 
template<typename StringViewLike >
requires std::constructible_from<std::string_view, StringViewLike>
constexpr auto operator<=> (const StringViewLike &lhs, const SharedPreHashedString &rhs)
 
std::ostream & operator<< (std::ostream &lhs, const SharedPreHashedString &rhs)
 

Member Typedef Documentation

◆ const_iterator

using osc::SharedPreHashedString::const_iterator = std::string_view::const_iterator

◆ const_reference

using osc::SharedPreHashedString::const_reference = std::string_view::const_reference

◆ const_reverse_iterator

using osc::SharedPreHashedString::const_reverse_iterator = std::string_view::const_reverse_iterator

◆ difference_type

using osc::SharedPreHashedString::difference_type = std::string_view::difference_type

◆ iterator

using osc::SharedPreHashedString::iterator = std::string_view::const_iterator

◆ reference

using osc::SharedPreHashedString::reference = std::string_view::const_reference

◆ reverse_iterator

using osc::SharedPreHashedString::reverse_iterator = std::string_view::const_reverse_iterator

◆ size_type

using osc::SharedPreHashedString::size_type = std::string_view::size_type

◆ traits_type

using osc::SharedPreHashedString::traits_type = std::string_view::traits_type

◆ value_type

using osc::SharedPreHashedString::value_type = std::string_view::value_type

Constructor & Destructor Documentation

◆ SharedPreHashedString() [1/6]

osc::SharedPreHashedString::SharedPreHashedString ( )
inlineexplicit

◆ SharedPreHashedString() [2/6]

osc::SharedPreHashedString::SharedPreHashedString ( std::string_view  str)
inlineexplicit

◆ SharedPreHashedString() [3/6]

osc::SharedPreHashedString::SharedPreHashedString ( const char s)
inlineexplicit

◆ SharedPreHashedString() [4/6]

osc::SharedPreHashedString::SharedPreHashedString ( std::nullptr_t  )
explicitdelete

◆ SharedPreHashedString() [5/6]

osc::SharedPreHashedString::SharedPreHashedString ( const SharedPreHashedString src)
inlinenoexcept

◆ SharedPreHashedString() [6/6]

osc::SharedPreHashedString::SharedPreHashedString ( SharedPreHashedString &&  tmp)
inlinenoexcept

◆ ~SharedPreHashedString()

osc::SharedPreHashedString::~SharedPreHashedString ( )
inlinenoexcept

Member Function Documentation

◆ at()

const_reference osc::SharedPreHashedString::at ( size_type  pos) const
inline

◆ back()

const_reference osc::SharedPreHashedString::back ( ) const
inline

◆ begin()

const_iterator osc::SharedPreHashedString::begin ( ) const
inlinenoexcept

◆ c_str()

const value_type * osc::SharedPreHashedString::c_str ( ) const
inline

◆ cbegin()

const_iterator osc::SharedPreHashedString::cbegin ( ) const
inlinenoexcept

◆ cend()

const_iterator osc::SharedPreHashedString::cend ( ) const
inlinenoexcept

◆ data()

const value_type * osc::SharedPreHashedString::data ( ) const
inline

◆ empty()

bool osc::SharedPreHashedString::empty ( ) const
inlinenoexcept

◆ end()

const_iterator osc::SharedPreHashedString::end ( ) const
inlinenoexcept

◆ front()

const_reference osc::SharedPreHashedString::front ( ) const
inline

◆ operator CStringView()

osc::SharedPreHashedString::operator CStringView ( ) const
inlinenoexcept

◆ operator std::string_view()

osc::SharedPreHashedString::operator std::string_view ( ) const
inlinenoexcept

◆ operator=() [1/2]

SharedPreHashedString & osc::SharedPreHashedString::operator= ( const SharedPreHashedString src)
inlinenoexcept

◆ operator=() [2/2]

SharedPreHashedString & osc::SharedPreHashedString::operator= ( SharedPreHashedString &&  tmp)
inlinenoexcept

◆ operator[]()

const_reference osc::SharedPreHashedString::operator[] ( size_type  pos) const
inline

◆ size()

size_type osc::SharedPreHashedString::size ( ) const
inline

◆ starts_with()

bool osc::SharedPreHashedString::starts_with ( std::string_view  sv) const
inlinenoexcept

◆ use_count()

long osc::SharedPreHashedString::use_count ( ) const
inlinenoexcept

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  lhs,
const SharedPreHashedString rhs 
)
friend

◆ operator<=> [1/3]

◆ operator<=> [2/3]

template<typename StringViewLike >
requires std::constructible_from<std::string_view, StringViewLike>
constexpr auto operator<=> ( const SharedPreHashedString lhs,
const StringViewLike rhs 
)
friend

◆ operator<=> [3/3]

template<typename StringViewLike >
requires std::constructible_from<std::string_view, StringViewLike>
constexpr auto operator<=> ( const StringViewLike lhs,
const SharedPreHashedString rhs 
)
friend

◆ operator== [1/3]

◆ operator== [2/3]

template<typename StringViewLike >
requires std::constructible_from<std::string_view, StringViewLike>
constexpr bool operator== ( const SharedPreHashedString lhs,
const StringViewLike rhs 
)
friend

◆ operator== [3/3]

template<typename StringViewLike >
requires std::constructible_from<std::string_view, StringViewLike>
constexpr bool operator== ( const StringViewLike lhs,
const SharedPreHashedString rhs 
)
friend

◆ std::hash< SharedPreHashedString >

friend struct std::hash< SharedPreHashedString >
friend

◆ swap

void swap ( SharedPreHashedString a,
SharedPreHashedString b 
)
friend

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