Chunk data structure without ownership for keys and values of the database cursor.
More...
#include <databaseCursorInterface.hpp>
Chunk data structure without ownership for keys and values of the database cursor.
strus::DatabaseCursorInterface::Slice::Slice |
( |
| ) |
|
|
inline |
strus::DatabaseCursorInterface::Slice::Slice |
( |
const char * |
ptr_, |
|
|
std::size_t |
size_ |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
[in] | ptr_ | pointer to data chunk |
[in] | size_ | size of ptr_ in bytes |
strus::DatabaseCursorInterface::Slice::Slice |
( |
const Slice & |
o | ) |
|
|
inline |
Copy constructor.
- Parameters
-
[in] | o | chunk reference to copy |
bool strus::DatabaseCursorInterface::Slice::defined |
( |
| ) |
const |
|
inline |
Evaluate if the chunk is defined or a NULL reference.
- Returns
- true, if yes
strus::DatabaseCursorInterface::Slice::operator std::string |
( |
| ) |
const |
|
inline |
Cast of the data to a string.
const char* strus::DatabaseCursorInterface::Slice::ptr |
( |
| ) |
const |
|
inline |
Get the pointer to data.
- Returns
- the pointer
std::size_t strus::DatabaseCursorInterface::Slice::size |
( |
| ) |
const |
|
inline |
Get the size of the data in bytes.
- Returns
- the size
std::string strus::DatabaseCursorInterface::Slice::tostring |
( |
| ) |
const |
|
inline |
Return the data as a string.
The documentation for this class was generated from the following file: