File StringList.hpp

Parent directory (DlSystem)

Definition (DlSystem/StringList.hpp)

Includes

Full File Listing

namespace DlSystem
class StringList
#include <StringList.hpp>

Public Functions

StringList()

Constructs a StringList and returns a handle to it.

Returns

the handle to the created StringList

explicit StringList(size_t length)

Constructs a StringList and returns a handle to it.

Parameters

length[in] : length of list

Returns

the handle to the created StringList

StringList(const StringList &other)

Constructs a StringList and returns a handle to it.

Parameters

other[in] : StringList handle to be copied from

Returns

the handle to the created StringList

StringList(StringList &&other) noexcept
StringList &operator=(const StringList &other)

Assigns the contents of this handle to other handle.

Parameters

other[in] Destination StringList handle

Returns

SNPE_SUCCESS on successful Assignment

StringList &operator=(StringList &&other) noexcept

Assigns the contents of this handle to other handle.

Parameters

other[in] Destination StringList handle

Returns

SNPE_SUCCESS on successful Assignment

DlSystem::ErrorCode append(const char *str)

Append a string to the list.

Parameters

str[in] Null-terminated ASCII string to append to the list.

Returns

SNPE_SUCCESS if Append operation successful.

const char *at(size_t idx) const noexcept

Returns the string at the indicated position, or an empty string if the positions is greater than the size of the list.

Parameters

idx[in] Position in the list of the desired string

Returns

the string at the indicated position

const char **begin() const noexcept

Pointer to the first string in the list. Can be used to iterate through the list.

Returns

Pointer to the first string in the list.

const char **end() const noexcept

Pointer to one after the last string in the list. Can be used to iterate through the list.

Returns

Pointer to one after the last string in the list

size_t size() const noexcept

Return the number of valid string pointers held by this list.

Returns

The size of the StringList