An extremely basic but native representation of a string class with SSO support. This exists to provide an interface between the AX C++ API and backend IR string logic. It is not designed to fulfill any other use and should very rarely be used directly. More...
#include <openvdb_ax/codegen/String.h>
Public Member Functions | |
| String () | |
| String (const char *str) | |
| Construct from null terminated character string. | |
| String (const std::string &str) | |
| String (const char *str, const int64_t size) | |
| ~String () | |
| String (const String &other) | |
| const std::string | str () const |
| const char * | c_str () const |
| int64_t | size () const |
| bool | isLocal () const |
| void | clear () |
| operator const char * () const | |
| const String & | operator= (const std::string &str) |
| const String & | operator= (const String &other) |
| bool | operator== (const String &other) const |
| bool | operator!= (const String &other) const |
| String | operator+ (const String &other) const |
| void | reset (const char *str, const int64_t size) |
| void | alloc (const size_t size) |
Public Attributes | |
| char * | ptr = nullptr |
| char | SSO [SSO_LENGTH] |
| int64_t | len = 0 |
Static Public Attributes | |
| static constexpr int64_t | SSO_LENGTH = 16 |
An extremely basic but native representation of a string class with SSO support. This exists to provide an interface between the AX C++ API and backend IR string logic. It is not designed to fulfill any other use and should very rarely be used directly.
|
inline |
|
inline |
Construct from null terminated character string.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| int64_t len = 0 |
| char* ptr = nullptr |
| char SSO[SSO_LENGTH] |
|
staticconstexpr |