Class that defines reflective interfaces for bounded strings. More...
#include <SPL/Runtime/Type/BString.h>
List of all members.
Protected Member Functions
|
virtual void |
assignFrom (const char *data, int32_t size)=0 |
Detailed Description
Class that defines reflective interfaces for bounded strings.
Constructor & Destructor Documentation
virtual SPL::BString::~BString |
( |
|
) |
|
|
inlinevirtual |
Member Function Documentation
virtual uint32_t SPL::BString::getBoundedSize |
( |
|
) |
const |
|
pure virtual |
virtual uint32_t SPL::BString::getUsedSize |
( |
|
) |
const |
|
pure virtual |
Get the number of used characters
- Returns:
- number of used characters
Implemented in SPL::bstring< msize >.
virtual char const* SPL::BString::getCString |
( |
|
) |
const |
|
pure virtual |
Get the C string representation (NULL-terminated)
- Returns:
- C string representation
Implemented in SPL::bstring< msize >.
virtual char const* SPL::BString::getData |
( |
|
) |
const |
|
pure virtual |
virtual void SPL::BString::serialize |
( |
std::ostream & |
ostr |
) |
const |
|
pure virtual |
virtual void SPL::BString::deserialize |
( |
std::istream & |
istr |
) |
|
|
pure virtual |
virtual void SPL::BString::assignFrom |
( |
const BString & |
ot |
) |
|
|
pure virtual |
Assign this string using another one
- Parameters:
-
ot |
other string to assign from |
Implemented in SPL::bstring< msize >.
virtual void SPL::BString::swapWith |
( |
BString & |
ot |
) |
|
|
pure virtual |
Swap this string with another one
- Parameters:
-
ot |
other collection to swap with |
Implemented in SPL::bstring< msize >.
bool SPL::BString::operator== |
( |
const BString & |
ov |
) |
const |
|
inline |
Equality comparison
- Parameters:
-
ov |
bounded size string to compare with |
- Returns:
- true if equal, false otherwise
bool SPL::BString::operator!= |
( |
const BString & |
ov |
) |
const |
|
inline |
Non-equality comparison
- Parameters:
-
ov |
bounded size string to compare with |
- Returns:
- true if not equal, false otherwise
Assign from another bounded size string
- Parameters:
-
ov |
bounded size string to assign from |
- Returns:
- this
const BString& SPL::BString::operator= |
( |
const std::string & |
ov |
) |
|
|
inline |
Assign from an STL string
- Parameters:
-
ov |
STL string to assign from |
- Returns:
- this
Reimplemented in SPL::bstring< msize >.
SPL::BString::operator rstring |
( |
|
) |
const |
|
inline |
Cast to a SPL string operator
- Returns:
- a SPL string
virtual BString* SPL::BString::clone |
( |
|
) |
const |
|
pure virtual |
virtual size_t SPL::BString::getSerializedSize |
( |
|
) |
const |
|
pure virtual |
Get the size in bytes when serialized
- Returns:
- size in bytes when serialized
Implemented in SPL::bstring< msize >.
virtual void SPL::BString::assignFrom |
( |
const char * |
data, |
|
|
int32_t |
size |
|
) |
|
|
|
protectedpure virtual |
Assign from a char buffer
- Parameters:
-
data |
char buffer |
size |
used size of the string |
Implemented in SPL::bstring< msize >.
virtual size_t SPL::BString::hashCode |
( |
|
) |
const |
|
pure virtual |
virtual void SPL::BString::clear |
( |
|
) |
|
|
pure virtual |
The documentation for this class was generated from the following file: