Class that represents bounded size rstring type. More...

#include <SPL/Runtime/Type/BString.h>

Inheritance diagram for SPL::bstring< msize >:
Inheritance graph
node
[legend]

Detailed Description

template<int32_t msize>
class SPL::bstring< msize >

Class that represents bounded size rstring type.

Member Typedef Documentation

◆ size_type

template<int32_t msize>

size type

◆ iterator

template<int32_t msize>

iterator type

◆ const_iterator

template<int32_t msize>

const iterator type

◆ reverse_iterator

template<int32_t msize>

reverse iterator type

◆ const_reverse_iterator

template<int32_t msize>

constant reverse iterator type

Member Enumeration Documentation

◆ anonymous enum

template<int32_t msize>
Enumerator
bounded_size 

bounded size

◆ anonymous enum

template<int32_t msize>
Enumerator
npos 

Invalid position.

Constructor & Destructor Documentation

◆ bstring() [1/9]

template<int32_t msize>

Empty constructor

◆ bstring() [2/9]

template<int32_t msize>

Copy constructor

Parameters

◆ bstring() [3/9]

template<int32_t msize>
template<int32_t osize>

Copy constructor

Parameters

◆ bstring() [4/9]

template<int32_t msize>

Construct from an STL string

Parameters

◆ bstring() [5/9]

template<int32_t msize>

Construct from an SPL string

Parameters

◆ bstring() [6/9]

template<int32_t msize>

Construct from a C string

Parameters

◆ bstring() [7/9]

template<int32_t msize>

Construct from a C string with a known length

Parameters

◆ bstring() [8/9]

template<int32_t msize>

Construct from an BString

Parameters

◆ bstring() [9/9]

template<int32_t msize>

Construct from a value handle

Parameters

◆ ~bstring()

template<int32_t msize>

Destructor

Member Function Documentation

◆ clone()

template<int32_t msize>

Make a copy of this bounded size string

Implements SPL::BString.

◆ operator=() [1/5]

template<int32_t msize>

Assignment operator (from another bounded size string)

Parameters
Returns
self

◆ operator=() [2/5]

template<int32_t msize>
template<int32_t osize>

Assignment operator (from another bounded size string)

Parameters
Returns
self

◆ operator=() [3/5]

template<int32_t msize>

Assignment operator (from an STL string)

Parameters
Returns
self

◆ operator=() [4/5]

template<int32_t msize>

Assignment operator (from an SPL string)

Parameters
Returns
self

◆ operator=() [5/5]

template<int32_t msize>

Assignment operator (from a C string)

Parameters
Returns
self

◆ assignFrom() [1/2]

template<int32_t msize>

Assign from a char buffer

Parameters

Implements SPL::BString.

◆ assignFrom() [2/2]

template<int32_t msize>

Assign this string using another one

Parameters

Implements SPL::BString.

◆ swapWith()

template<int32_t msize>

Swap this string with another one

Parameters

Implements SPL::BString.

◆ operator==() [1/5]

template<int32_t msize>

Equality comparison

Parameters
Returns
true if the contained strings are the same, false otherwise

◆ operator==() [2/5]

template<int32_t msize>
template<int32_t osize>

Equality comparison

Parameters
Returns
true if the contained strings are the same, false otherwise

◆ operator==() [3/5]

template<int32_t msize>

Equality comparison

Parameters
Returns
true if the contained strings are the same, false otherwise

◆ operator==() [4/5]

template<int32_t msize>

Equality comparison

Parameters
Returns
true if the contained strings are the same, false otherwise

◆ operator==() [5/5]

template<int32_t msize>

Equality comparison

Parameters
Returns
true if the contained strings are the same, false otherwise

◆ operator!=() [1/5]

template<int32_t msize>

Non-equality comparison

Parameters
Returns
true if the contained strings are not the same, false otherwise

◆ operator!=() [2/5]

template<int32_t msize>
template<int32_t osize>

Non-equality comparison

Parameters
Returns
true if the contained strings are not the same, false otherwise

◆ operator!=() [3/5]

template<int32_t msize>

Non-equality comparison

Parameters
Returns
true if the contained strings are not the same, false otherwise

◆ operator!=() [4/5]

template<int32_t msize>

Non-equality comparison

Parameters
Returns
true if the contained strings are not the same, false otherwise

◆ operator!=() [5/5]

template<int32_t msize>

Non-equality comparison

Parameters
Returns
true if the contained strings are not the same, false otherwise

◆ operator>() [1/4]

template<int32_t msize>
template<int32_t osize>

Greater than comparison

Parameters
Returns
true if (*this) > ot

◆ operator>() [2/4]

template<int32_t msize>

Greater than comparison

Parameters
Returns
true if (*this) > ot

◆ operator>() [3/4]

template<int32_t msize>

Greater than comparison

Parameters
Returns
true if (*this) > ot

◆ operator>() [4/4]

template<int32_t msize>

Greater than comparison

Parameters
Returns
true if (*this) > ot

◆ operator<=() [1/4]

template<int32_t msize>
template<int32_t osize>

Less Than or Equal comparison

Parameters
Returns
true if (*this) <= ot

◆ operator<=() [2/4]

template<int32_t msize>

Less Than or Equal comparison

Parameters
Returns
true if (*this) <= ot

◆ operator<=() [3/4]

template<int32_t msize>

Less Than or Equal comparison

Parameters
Returns
true if (*this) <= ot

◆ operator<=() [4/4]

template<int32_t msize>

Less Than or Equal comparison

Parameters
Returns
true if (*this) <= ot

◆ operator<() [1/4]

template<int32_t msize>
template<int32_t osize>

Less than comparison

Parameters
Returns
true if (*this) < ot

◆ operator<() [2/4]

template<int32_t msize>

Less than comparison

Parameters
Returns
true if (*this) < ot

◆ operator<() [3/4]

template<int32_t msize>

Less than comparison

Parameters
Returns
true if (*this) < ot

◆ operator<() [4/4]

template<int32_t msize>

Less than comparison

Parameters
Returns
true if (*this) < ot

◆ operator>=() [1/4]

template<int32_t msize>
template<int32_t osize>

Greater Than or Equal comparison

Parameters
Returns
true if (*this) >= ot

◆ operator>=() [2/4]

template<int32_t msize>

Greater Than or Equal comparison

Parameters
Returns
true if (*this) >= ot

◆ operator>=() [3/4]

template<int32_t msize>

Greater Than or Equal comparison

Parameters
Returns
true if (*this) >= ot

◆ operator>=() [4/4]

template<int32_t msize>

Greater Than or Equal comparison

Parameters
Returns
true if (*this) >= ot

◆ at()

template<int32_t msize>

Character subscript

Parameters
Returns
bstring containing the character at index idx
Exceptions

◆ operator[]() [1/2]

template<int32_t msize>

Character access (read-only)

Parameters
Returns
character at index idx

◆ operator[]() [2/2]

template<int32_t msize>

Character access (read-write)

Parameters
Returns
character at index idx

◆ getBoundedSize()

template<int32_t msize>

Get the bounded size of the string

Returns
bounded size of the string

Implements SPL::BString.

◆ max_size()

template<int32_t msize>

Get the bounded size of the string

Returns
bounded size of the string

◆ getUsedSize()

template<int32_t msize>

Get the number of used characters

Returns
number of used characters

Implements SPL::BString.

◆ size()

template<int32_t msize>

Get the number of used characters

Returns
number of used characters

◆ resize()

template<int32_t msize>

Resize the string

Parameters

◆ clear()

template<int32_t msize>

Remove all characters.

Implements SPL::BString.

◆ empty()

template<int32_t msize>

Check if empty

Returns
true if empty, false otherwise

◆ begin() [1/2]

template<int32_t msize>

Get a begin iterator

Returns
begin iterator

◆ begin() [2/2]

template<int32_t msize>

Get a begin const iterator

Returns
begin const iterator

◆ end() [1/2]

template<int32_t msize>

Get an end iterator

Returns
end iterator

◆ end() [2/2]

template<int32_t msize>

Get an end const iterator

Returns
end const iterator

◆ rbegin() [1/2]

template<int32_t msize>

Get a reverse begin iterator

Returns
reverse begin iterator

◆ rbegin() [2/2]

template<int32_t msize>

Get a reverse begin const iterator

Returns
reverse begin const iterator

◆ rend() [1/2]

template<int32_t msize>

Get a reverse end iterator

Returns
reverse end iterator

◆ rend() [2/2]

template<int32_t msize>

Get a reverse end const iterator

Returns
reverse end const iterator

◆ operator+=() [1/5]

template<int32_t msize>
template<int32_t osize>

Append bounded size string

Parameters
Returns
self

◆ operator+=() [2/5]

template<int32_t msize>

Append STL string

Parameters
Returns
self

◆ operator+=() [3/5]

template<int32_t msize>

Append SPL string

Parameters
Returns
self

◆ operator+=() [4/5]

template<int32_t msize>

Append C string

Parameters
Returns
self

◆ operator+=() [5/5]

template<int32_t msize>

Append character

Parameters
Returns
self

◆ append() [1/11]

template<int32_t msize>
template<int32_t osize>

Append bounded size string

Parameters
Returns
self

◆ append() [2/11]

template<int32_t msize>

Append STL string

Parameters
Returns
self

◆ append() [3/11]

template<int32_t msize>

Append SPL string

Parameters
Returns
self

◆ append() [4/11]

template<int32_t msize>
template<int32_t osize>

Append bounded size string

Parameters
Returns
self

◆ append() [5/11]

template<int32_t msize>

Append STL string

Parameters
Returns
self

◆ append() [6/11]

template<int32_t msize>

Append SPL string

Parameters
Returns
self

◆ append() [7/11]

template<int32_t msize>

Append C string

Parameters
Returns
self

◆ append() [8/11]

template<int32_t msize>

Append C string

Parameters
Returns
self

◆ append() [9/11]

template<int32_t msize>

Append character

Parameters
Returns
self

◆ append() [10/11]

template<int32_t msize>

Append character

Parameters
Returns
self

◆ append() [11/11]

template<int32_t msize>
template<class InputIterator >

Append a sequence of characters

Parameters
Returns
self

◆ push_back()

template<int32_t msize>

Append character

Parameters
Returns
self

◆ assign() [1/10]

template<int32_t msize>
template<int32_t osize>

Assign from a bounded size string

Parameters
Returns
self

◆ assign() [2/10]

template<int32_t msize>

Assign from an STL string

Parameters
Returns
self

◆ assign() [3/10]

template<int32_t msize>

Assign from an SPL string

Parameters
Returns
self

◆ assign() [4/10]

template<int32_t msize>
template<int32_t osize>

Assign from a bounded size string

Parameters
Returns
self

◆ assign() [5/10]

template<int32_t msize>

Assign from an STL string

Parameters
Returns
self

◆ assign() [6/10]

template<int32_t msize>

Assign from an SPL string

Parameters
Returns
self

◆ assign() [7/10]

template<int32_t msize>

Assign from a C string

Parameters
Returns
self

◆ assign() [8/10]

template<int32_t msize>

Assign from a C string

Parameters
Returns
self

◆ assign() [9/10]

template<int32_t msize>

Assign from a character

Parameters
Returns
self

◆ assign() [10/10]

template<int32_t msize>
template<class InputIterator >

Assign from a sequence of characters

Parameters
Returns
self

◆ getCString()

template<int32_t msize>

Get the C string representation

Returns
C string representation

Implements SPL::BString.

◆ c_str()

template<int32_t msize>

Get the C string representation

Returns
C string representation

◆ data()

template<int32_t msize>

Get the character array representation (not necessarily NULL-terminated)

Returns
character array representation

◆ getData()

template<int32_t msize>

Get the character array representation (not necessarily NULL-terminated)

Returns
character array representation

Implements SPL::BString.

◆ swap()

template<int32_t msize>
template<int32_t osize>

Swap

Parameters

◆ serialize() [1/5]

template<int32_t msize>

Serialize (binary)

Parameters

◆ deserialize() [1/5]

template<int32_t msize>

Deserialize (binary)

Parameters

◆ serialize() [2/5]

template<int32_t msize>
template<class BufferType >

Serialize (binary)

Parameters

◆ serialize() [3/5]

template<int32_t msize>

Serialize (binary)

Parameters

◆ serialize() [4/5]

template<int32_t msize>

Serialize (binary)

Parameters

◆ deserialize() [2/5]

template<int32_t msize>
template<class BufferType >

Deserialize (binary)

Parameters

◆ deserialize() [3/5]

template<int32_t msize>

Deserialize (binary)

Parameters

◆ deserialize() [4/5]

template<int32_t msize>

Deserialize (binary)

Parameters

◆ serialize() [5/5]

template<int32_t msize>

Serialize (character)

Parameters

Implements SPL::BString.

◆ deserialize() [5/5]

template<int32_t msize>

Deserialize (character)

Parameters

Implements SPL::BString.

◆ hashCode()

template<int32_t msize>

Get hash code

Returns
hash code

Implements SPL::BString.

◆ getSerializedSize()

template<int32_t msize>

Get the size in bytes when serialized

Returns
size in bytes when serialized

Implements SPL::BString.


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