opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
osc::StringName Class Referencefinal

#include <string_name.h>

Inheritance diagram for osc::StringName:
[legend]
Collaboration diagram for osc::StringName:
[legend]

Public Member Functions

 StringName ()=default
 
 StringName (std::string_view)
 
 StringName (const char *s)
 
 StringName (std::nullptr_t)=delete
 
 StringName (const StringName &)=default
 
 StringName (StringName &&) noexcept=default
 
StringNameoperator= (const StringName &)=default
 
StringNameoperator= (StringName &&) noexcept=default
 
 ~StringName () noexcept
 
std::string_view name () const
 
- Public Member Functions inherited from osc::SharedPreHashedString
 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

bool operator== (const StringName &, const StringName &)=default
 
template<typename StringViewLike >
requires std::constructible_from<std::string_view, StringViewLike>
bool operator== (const StringName &lhs, const StringViewLike &rhs)
 
template<typename StringViewLike >
requires std::constructible_from<std::string_view, StringViewLike>
bool operator== (const StringViewLike &lhs, const StringName &rhs)
 
auto operator<=> (const StringName &, const StringName &)=default
 
template<typename StringViewLike >
requires std::constructible_from<std::string_view, StringViewLike>
auto operator<=> (const StringName &lhs, const StringViewLike &rhs)
 
template<typename StringViewLike >
requires std::constructible_from<std::string_view, StringViewLike>
auto operator<=> (const StringViewLike &lhs, const StringName &rhs)
 

Additional Inherited Members

- Public Types inherited from osc::SharedPreHashedString
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
 

Constructor & Destructor Documentation

◆ StringName() [1/6]

osc::StringName::StringName ( )
default

◆ StringName() [2/6]

osc::StringName::StringName ( std::string_view  )
explicit

◆ StringName() [3/6]

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

◆ StringName() [4/6]

osc::StringName::StringName ( std::nullptr_t  )
explicitdelete

◆ StringName() [5/6]

osc::StringName::StringName ( const StringName )
default

◆ StringName() [6/6]

osc::StringName::StringName ( StringName &&  )
defaultnoexcept

◆ ~StringName()

osc::StringName::~StringName ( )
noexcept

Member Function Documentation

◆ name()

std::string_view osc::StringName::name ( ) const
inline

◆ operator=() [1/2]

StringName & osc::StringName::operator= ( const StringName )
default

◆ operator=() [2/2]

StringName & osc::StringName::operator= ( StringName &&  )
defaultnoexcept

Friends And Related Symbol Documentation

◆ operator<=> [1/3]

auto operator<=> ( const StringName ,
const StringName  
)
friend

◆ operator<=> [2/3]

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

◆ operator<=> [3/3]

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

◆ operator== [1/3]

bool operator== ( const StringName ,
const StringName  
)
friend

◆ operator== [2/3]

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

◆ operator== [3/3]

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

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