QGIS API Documentation  3.20.0-Odense (decaadbb31)
Public Member Functions | List of all members
QgsWkbPtr Class Reference

WKB pointer handler. More...

#include <qgswkbptr.h>

Public Member Functions

 QgsWkbPtr (QByteArray &wkb)
 Construct WKB pointer from QByteArray. More...
 
 QgsWkbPtr (unsigned char *p, int size)
 
 operator unsigned char * () const
 
void operator+= (int n)
 
QgsWkbPtroperator<< (char v)
 Writes a char to the pointer. More...
 
QgsWkbPtroperator<< (const QByteArray &data)
 Append data from a byte array. More...
 
QgsWkbPtroperator<< (double v)
 Writes a double to the pointer. More...
 
QgsWkbPtroperator<< (float r)
 Writes a float to the pointer. More...
 
QgsWkbPtroperator<< (int v)
 Writes an int to the pointer. More...
 
QgsWkbPtroperator<< (QgsWkbTypes::Type v)
 Writes a WKB type value to the pointer. More...
 
QgsWkbPtroperator<< (qsizetype r)
 Writes a size as int to the pointer. More...
 
QgsWkbPtroperator<< (unsigned int v)
 Writes an unsigned int to the pointer. More...
 
const QgsWkbPtroperator>> (char &v) const
 
const QgsWkbPtroperator>> (double &v) const
 
const QgsWkbPtroperator>> (float &r) const
 
const QgsWkbPtroperator>> (int &v) const
 
const QgsWkbPtroperator>> (QgsWkbTypes::Type &v) const
 
const QgsWkbPtroperator>> (qsizetype &r) const
 Reads an integer value into a qsizetype. More...
 
const QgsWkbPtroperator>> (unsigned int &v) const
 
int remaining () const
 remaining More...
 
int size () const
 size More...
 
int writtenSize () const
 writtenSize More...
 

Detailed Description

WKB pointer handler.

Definition at line 43 of file qgswkbptr.h.

Constructor & Destructor Documentation

◆ QgsWkbPtr() [1/2]

QgsWkbPtr::QgsWkbPtr ( QByteArray &  wkb)

Construct WKB pointer from QByteArray.

Definition at line 18 of file qgswkbptr.cpp.

◆ QgsWkbPtr() [2/2]

QgsWkbPtr::QgsWkbPtr ( unsigned char *  p,
int  size 
)

Definition at line 25 of file qgswkbptr.cpp.

Member Function Documentation

◆ operator unsigned char *()

QgsWkbPtr::operator unsigned char * ( ) const
inline

Definition at line 110 of file qgswkbptr.h.

◆ operator+=()

void QgsWkbPtr::operator+= ( int  n)
inline

Definition at line 108 of file qgswkbptr.h.

◆ operator<<() [1/8]

QgsWkbPtr& QgsWkbPtr::operator<< ( char  v)
inline

Writes a char to the pointer.

Definition at line 102 of file qgswkbptr.h.

◆ operator<<() [2/8]

QgsWkbPtr& QgsWkbPtr::operator<< ( const QByteArray &  data)
inline

Append data from a byte array.

Definition at line 106 of file qgswkbptr.h.

◆ operator<<() [3/8]

QgsWkbPtr& QgsWkbPtr::operator<< ( double  v)
inline

Writes a double to the pointer.

Definition at line 90 of file qgswkbptr.h.

◆ operator<<() [4/8]

QgsWkbPtr& QgsWkbPtr::operator<< ( float  r)
inline

Writes a float to the pointer.

Definition at line 92 of file qgswkbptr.h.

◆ operator<<() [5/8]

QgsWkbPtr& QgsWkbPtr::operator<< ( int  v)
inline

Writes an int to the pointer.

Definition at line 94 of file qgswkbptr.h.

◆ operator<<() [6/8]

QgsWkbPtr& QgsWkbPtr::operator<< ( QgsWkbTypes::Type  v)
inline

Writes a WKB type value to the pointer.

Definition at line 104 of file qgswkbptr.h.

◆ operator<<() [7/8]

QgsWkbPtr& QgsWkbPtr::operator<< ( qsizetype  r)
inline

Writes a size as int to the pointer.

Definition at line 97 of file qgswkbptr.h.

◆ operator<<() [8/8]

QgsWkbPtr& QgsWkbPtr::operator<< ( unsigned int  v)
inline

Writes an unsigned int to the pointer.

Definition at line 100 of file qgswkbptr.h.

◆ operator>>() [1/7]

const QgsWkbPtr& QgsWkbPtr::operator>> ( char &  v) const
inline

Definition at line 86 of file qgswkbptr.h.

◆ operator>>() [2/7]

const QgsWkbPtr& QgsWkbPtr::operator>> ( double &  v) const
inline

Definition at line 78 of file qgswkbptr.h.

◆ operator>>() [3/7]

const QgsWkbPtr& QgsWkbPtr::operator>> ( float &  r) const
inline

Definition at line 79 of file qgswkbptr.h.

◆ operator>>() [4/7]

const QgsWkbPtr& QgsWkbPtr::operator>> ( int &  v) const
inline

Definition at line 80 of file qgswkbptr.h.

◆ operator>>() [5/7]

const QgsWkbPtr& QgsWkbPtr::operator>> ( QgsWkbTypes::Type v) const
inline

Definition at line 87 of file qgswkbptr.h.

◆ operator>>() [6/7]

const QgsWkbPtr& QgsWkbPtr::operator>> ( qsizetype &  r) const
inline

Reads an integer value into a qsizetype.

Definition at line 83 of file qgswkbptr.h.

◆ operator>>() [7/7]

const QgsWkbPtr& QgsWkbPtr::operator>> ( unsigned int &  v) const
inline

Definition at line 85 of file qgswkbptr.h.

◆ remaining()

int QgsWkbPtr::remaining ( ) const
inline

remaining

Note
not available in Python bindings

Definition at line 122 of file qgswkbptr.h.

◆ size()

int QgsWkbPtr::size ( ) const
inline

size

Note
not available in Python bindings

Definition at line 116 of file qgswkbptr.h.

◆ writtenSize()

int QgsWkbPtr::writtenSize ( ) const
inline

writtenSize

Note
not available in Python bindings

Definition at line 128 of file qgswkbptr.h.


The documentation for this class was generated from the following files: