|
Monado OpenXR Runtime
|
An immutable collection of strings, like a list of extensions to enable. More...
#include <util/u_extension_list.hpp>
Public Member Functions | |
| ExtensionList ()=default | |
| Default constructor - creates an empty list. More... | |
| ExtensionList (ExtensionList &&)=default | |
| Move constructor. More... | |
| ExtensionList (ExtensionList const &other) | |
| Copy constructor, makes sure to do a deep copy. More... | |
| ExtensionList & | operator= (ExtensionList &&)=default |
| Move assignment. More... | |
| ExtensionList & | operator= (ExtensionList const &other) |
| Copy assignment. More... | |
| uint32_t | size () const noexcept |
| Get the size of the array (the number of strings) More... | |
| const char *const * | data () const noexcept |
| Get the data pointer of the array (array of const char*) More... | |
| bool | contains (std::string_view str) const |
| Check if the string is in the list. More... | |
Friends | |
| class | ExtensionListBuilder |
An immutable collection of strings, like a list of extensions to enable.
This class stores copies of strings internally and provides read-only access.
Size is limited to one less than the max value of uint32_t which shouldn't be a problem, the size really should be much smaller.
|
default |
Default constructor - creates an empty list.
Referenced by operator=().
|
default |
Move constructor.
|
inline |
Copy constructor, makes sure to do a deep copy.
|
inline |
Check if the string is in the list.
(Comparing string contents)
| str | a string view to search for. |
Referenced by u_extension_list::u_extension_list_contains().
|
inlinenoexcept |
Get the data pointer of the array (array of const char*)
Referenced by u_extension_list::u_extension_list_get_data().
|
default |
Move assignment.
|
inline |
Copy assignment.
References ExtensionList().
|
inlinenoexcept |
Get the size of the array (the number of strings)
Referenced by u_extension_list::u_extension_list_get_size().