CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
RE::GString Class Reference

#include <GString.h>

Inheritance diagram for RE::GString:
RE::GStringDH

Classes

struct  DataDesc
 
union  DataDescUnion
 
struct  FlagConstants
 
class  HashFunctor
 
class  NoCaseHashFunctor
 

Public Types

enum class  HeapType { kGlobal = 0 , kLocal = 1 , kDynamic = 2 , kMask = 3 }
 
using value_type = char
 
using size_type = UPInt
 
using reference = value_type &
 
using const_reference = const value_type &
 
using FlagConstant = FlagConstants::FlagConstant
 

Public Member Functions

 GString ()
 
 GString (const GString &a_rhs)
 
 GString (GString &&a_rhs)
 
 GString (const char *a_rhs)
 
 GString (const std::string_view &a_rhs)
 
 ~GString ()
 
GStringoperator= (const GString &a_rhs)
 
GStringoperator= (GString &&a_rhs)
 
GStringoperator= (const char *a_rhs)
 
GStringoperator= (const std::string_view &a_rhs)
 
reference operator[] (size_type a_pos)
 
const_reference operator[] (size_type a_pos) const
 
char & front ()
 
const char & front () const
 
char & back ()
 
const char & back () const
 
const char * data () const noexcept
 
char * data () noexcept
 
const char * c_str () const noexcept
 
 operator std::string_view () const noexcept
 
bool empty () const noexcept
 
size_type size () const noexcept
 
size_type length () const noexcept
 
void clear () noexcept
 

Static Public Member Functions

static UPInt BernsteinHashFunction (const void *a_dataIn, UPInt a_size, UPInt a_seed=5381)
 
static UPInt BernsteinHashFunctionCIS (const void *a_dataIn, UPInt a_size, UPInt a_seed=5381)
 

Protected Member Functions

GStringctor (const char *a_str)
 
HeapType heap_type () const
 
DataDescget_desc () const
 
void set_desc (DataDesc *a_desc)
 

Protected Attributes

DataDescUnion _dataDesc
 

Friends

bool operator== (const GString &a_lhs, const char *a_rhs)
 
bool operator!= (const GString &a_lhs, const char *a_rhs)
 
bool operator== (const char *a_lhs, const GString &a_rhs)
 
bool operator!= (const char *a_lhs, const GString &a_rhs)
 
bool operator== (const GString &a_lhs, const GString &a_rhs)
 
bool operator!= (const GString &a_lhs, const GString &a_rhs)
 
bool operator== (const GString &a_lhs, const std::string_view &a_rhs)
 
bool operator!= (const GString &a_lhs, const std::string_view &a_rhs)
 
bool operator== (const std::string_view &a_lhs, const GString &a_rhs)
 
bool operator!= (const std::string_view &a_lhs, const GString &a_rhs)
 

Member Typedef Documentation

◆ const_reference

◆ FlagConstant

◆ reference

◆ size_type

◆ value_type

Member Enumeration Documentation

◆ HeapType

enum class RE::GString::HeapType
strong
Enumerator
kGlobal 
kLocal 
kDynamic 
kMask 

Constructor & Destructor Documentation

◆ GString() [1/5]

RE::GString::GString ( )

◆ GString() [2/5]

RE::GString::GString ( const GString a_rhs)

◆ GString() [3/5]

RE::GString::GString ( GString &&  a_rhs)

◆ GString() [4/5]

RE::GString::GString ( const char *  a_rhs)

◆ GString() [5/5]

RE::GString::GString ( const std::string_view &  a_rhs)

◆ ~GString()

RE::GString::~GString ( )

Member Function Documentation

◆ back() [1/2]

char & RE::GString::back ( )

◆ back() [2/2]

const char & RE::GString::back ( ) const

◆ BernsteinHashFunction()

static UPInt RE::GString::BernsteinHashFunction ( const void *  a_dataIn,
UPInt  a_size,
UPInt  a_seed = 5381 
)
static

◆ BernsteinHashFunctionCIS()

static UPInt RE::GString::BernsteinHashFunctionCIS ( const void *  a_dataIn,
UPInt  a_size,
UPInt  a_seed = 5381 
)
static

◆ c_str()

const char * RE::GString::c_str ( ) const
noexcept

◆ clear()

void RE::GString::clear ( )
noexcept

◆ ctor()

GString * RE::GString::ctor ( const char *  a_str)
protected

◆ data() [1/2]

const char * RE::GString::data ( ) const
noexcept

◆ data() [2/2]

char * RE::GString::data ( )
noexcept

◆ empty()

bool RE::GString::empty ( ) const
noexcept

◆ front() [1/2]

char & RE::GString::front ( )

◆ front() [2/2]

const char & RE::GString::front ( ) const

◆ get_desc()

DataDesc * RE::GString::get_desc ( ) const
protected

◆ heap_type()

HeapType RE::GString::heap_type ( ) const
protected

◆ length()

size_type RE::GString::length ( ) const
noexcept

◆ operator std::string_view()

RE::GString::operator std::string_view ( ) const
noexcept

◆ operator=() [1/4]

GString & RE::GString::operator= ( const char *  a_rhs)

◆ operator=() [2/4]

GString & RE::GString::operator= ( const GString a_rhs)

◆ operator=() [3/4]

GString & RE::GString::operator= ( const std::string_view &  a_rhs)

◆ operator=() [4/4]

GString & RE::GString::operator= ( GString &&  a_rhs)

◆ operator[]() [1/2]

reference RE::GString::operator[] ( size_type  a_pos)

◆ operator[]() [2/2]

const_reference RE::GString::operator[] ( size_type  a_pos) const

◆ set_desc()

void RE::GString::set_desc ( DataDesc a_desc)
protected

◆ size()

size_type RE::GString::size ( ) const
noexcept

Friends And Related Function Documentation

◆ operator!= [1/5]

bool operator!= ( const char *  a_lhs,
const GString a_rhs 
)
friend

◆ operator!= [2/5]

bool operator!= ( const GString a_lhs,
const char *  a_rhs 
)
friend

◆ operator!= [3/5]

bool operator!= ( const GString a_lhs,
const GString a_rhs 
)
friend

◆ operator!= [4/5]

bool operator!= ( const GString a_lhs,
const std::string_view &  a_rhs 
)
friend

◆ operator!= [5/5]

bool operator!= ( const std::string_view &  a_lhs,
const GString a_rhs 
)
friend

◆ operator== [1/5]

bool operator== ( const char *  a_lhs,
const GString a_rhs 
)
friend

◆ operator== [2/5]

bool operator== ( const GString a_lhs,
const char *  a_rhs 
)
friend

◆ operator== [3/5]

bool operator== ( const GString a_lhs,
const GString a_rhs 
)
friend

◆ operator== [4/5]

bool operator== ( const GString a_lhs,
const std::string_view &  a_rhs 
)
friend

◆ operator== [5/5]

bool operator== ( const std::string_view &  a_lhs,
const GString a_rhs 
)
friend

Member Data Documentation

◆ _dataDesc

DataDescUnion RE::GString::_dataDesc
protected

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