UDBElement(3)
| UDBElement(3) | Library Functions Manual | UDBElement(3) |
NAME
UDBElement - The UDBElement class.
SYNOPSIS
#include <UDBElement.h>
Public Member Functions
UDBElement (const UDBElement &other)
UDBElement (UDBElement &&other)
UDBElement & operator= (const UDBElement &other)
operator = UDBElement & operator= (UDBElement
&&other)
operator = bool operator== (const UDBElement &other) const
operator == bool operator!= (const UDBElement &other) const
operator != void writeToBuffer (std::vector< char > &buf)
size_t readFromBuffer (const std::vector< char > &buf, const
size_t &start_pos)
size_t calculateWriteSize ()
void shrinkToFit ()
Public Attributes
std::string id
Elements identification value (if any). std::string content
Elements content (if any). std::vector< UDBElement >
subelements
Elements subelement (if any).
Detailed Description
The UDBElement class.
This class is suitable for database elements keeping.
Constructor & Destructor Documentation
UDBElement::UDBElement (const UDBElement & other)
Copy constructor.
Parameters
UDBElement::UDBElement (UDBElement && other)
Move constructor.
Parameters
Member Function Documentation
size_t UDBElement::calculateWriteSize ()
Calculates quantity of bytes will be written by writeToBuffer() method.
Returns
bool UDBElement::operator!= (const UDBElement & other) const
operator !=
Parameters
Returns
UDBElement & UDBElement::operator= (const UDBElement & other)
operator =
Parameters
Returns
UDBElement & UDBElement::operator= (UDBElement && other)
operator =
Parameters
Returns
bool UDBElement::operator== (const UDBElement & other) const
operator ==
Parameters
Returns
size_t UDBElement::readFromBuffer (const std::vector< char > & buf, const size_t & start_pos)
Tries to read UDBElement from buffer.
Note
Parameters
start_pos Offset of first byte to be read.
Returns
void UDBElement::shrinkToFit ()
Reduces memory usage by freeing unused memory in internal containers.
void UDBElement::writeToBuffer (std::vector< char > & buf)
Writes this UDBElement to buffer buf.
Parameters
Author
Generated automatically by Doxygen for LibUDB from the source code.
| Version 1.0.1 | LibUDB |
