Public Member Functions | |
| void | alloc (vsize len) |
| Allocate the VString's internal buffer and initialize to 'len' 0 bytes. | |
| int | compare (const VString *other) const |
| Compares this VString to another. | |
| void | copy (const VString &from) |
| Copy data from another VString. | |
| void | copy (const VString *from) |
| Copy data from another VString. | |
| void | copy (const std::string &s) |
| Copy character data from std::string. | |
| void | copy (const char *s) |
| Copy character data from null terminated C string to the VString's internal buffer. | |
| void | copy (const char *s, vsize len) |
| Copy character data from C string to the VString's internal buffer. | |
| char * | data () |
| Provides a writeable pointer to this VString's internal data. | |
| const char * | data () const |
| Provides a read-only pointer to this VString's internal data. | |
| int | equal (const VString *other) const |
| Indicates whether some other VString is equal to this one. | |
| bool | isNull () const |
| Indicates if this VString contains the SQL NULL value. | |
| vsize | length () const |
| Returns the length of this VString. | |
| void | setNull () |
| Sets this VString to the SQL NULL value. | |
| std::string | str () const |
| Provides a copy of this VString's data as a std::string. | |
| void Vertica::VString::alloc | ( | vsize | len | ) | [inline] |
| int Vertica::VString::compare | ( | const VString * | other | ) | const [inline] |
Compares this VString to another.
| void Vertica::VString::copy | ( | const VString & | from | ) | [inline] |
| void Vertica::VString::copy | ( | const VString * | from | ) | [inline] |
| void Vertica::VString::copy | ( | const std::string & | s | ) | [inline] |
Copy character data from std::string.
| s | null-terminated character input data |
| void Vertica::VString::copy | ( | const char * | s | ) | [inline] |
Copy character data from null terminated C string to the VString's internal buffer.
| s | null-terminated character input data |
| void Vertica::VString::copy | ( | const char * | s, | |
| vsize | len | |||
| ) | [inline] |
Copy character data from C string to the VString's internal buffer.
Data is copied from s into this VString. It is the caller's responsibility to not provide a value of 'len' that is larger than the maximum size of this VString
| s | character input data | |
| len | length in bytes, not including the terminating null character |
| char* Vertica::VString::data | ( | ) | [inline] |
Provides a writeable pointer to this VString's internal data.
| const char* Vertica::VString::data | ( | ) | const [inline] |
Provides a read-only pointer to this VString's internal data.
| int Vertica::VString::equal | ( | const VString * | other | ) | const [inline] |
Indicates whether some other VString is equal to this one.
| bool Vertica::VString::isNull | ( | ) | const [inline] |
Indicates if this VString contains the SQL NULL value.
| vsize Vertica::VString::length | ( | ) | const [inline] |
Returns the length of this VString.
| std::string Vertica::VString::str | ( | ) | const [inline] |
Provides a copy of this VString's data as a std::string.