Wrapping template for a rvalue reference of an IString interface for the type T (see Supported types for adtf_string<T> for writing and reading strings via interface IString).
More...
|
| adtf_string (value_type *pstrAssignValue) |
| CTOR with pointer to the value of value_type. More...
|
|
| ~adtf_string () |
| DTOR.
|
|
tResult | Set (const char *strValue) override |
| Sets the given null-terminated string to the implementation. More...
|
|
const char * | Get () const override |
| Gets the pointer to the current associated nullterminated-string. More...
|
|
size_t | GetLength () const override |
| Gets the current size of the strng. More...
|
|
|
static constexpr size_t | InvalidPos = g_npos |
| Invalid Position size.
|
|
static const char * | GetConstChar (const T *const pValue) |
| Retrieves a const char pointer (null-terminated). More...
|
|
static size_t | GetCurrentLength (const T *const pValue) |
| Retrieves the string size of the given pValue . More...
|
|
static tResult | SetValue (T *const pValue, const char *strValue) |
| Sets the given strValue to the string type implementation of the given pValue . More...
|
|
template<typename T>
class adtf::base::ant::adtf_string< T >
Wrapping template for a rvalue reference of an IString interface for the type T (see Supported types for adtf_string<T> for writing and reading strings via interface IString).
Usually the IString is given as rvalue reference to a function call. This template used adtf_string_forward for special types.
- Template Parameters
-
T | The String implementation to wrap into IString. |
Definition at line 194 of file string_intf.h.
◆ adtf_string() [1/3]
copy CTOR
- Parameters
-
[in] | strValue | initial value |
◆ adtf_string() [2/3]
move CTOR
- Parameters
-
[in] | strValue | initial value |
◆ adtf_string() [3/3]
◆ Get()
const char* Get |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetLength()
size_t GetLength |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ operator=() [1/2]
move operator
- Parameters
-
[in] | strValue | value to move from |
- Returns
- this
◆ operator=() [2/2]
copy operator
- Parameters
-
[in] | strValue | value to copy from |
- Returns
- this
◆ Set()
tResult Set |
( |
const char * |
strValue | ) |
|
|
inlineoverridevirtual |