#include <qdatabuffer_p.h>
Inheritance diagram for QDataBuffer< Type >:


Definition at line 40 of file qdatabuffer_p.h.
Public Member Functions | |
| QDataBuffer (int res=64) | |
| ~QDataBuffer () | |
| void | reset () |
| bool | isEmpty () const |
| int | size () const |
| Type * | data () const |
| const Type & | at (int i) const |
| const Type & | last () const |
| const Type & | first () const |
| void | add (const Type &t) |
| QDataBuffer & | operator<< (const Type &t) |
Private Attributes | |
| int | capacity |
| int | siz |
| Type * | buffer |
| QDataBuffer< Type >::QDataBuffer | ( | int | res = 64 |
) | [inline] |
| QDataBuffer< Type >::~QDataBuffer | ( | ) | [inline] |
| void QDataBuffer< Type >::reset | ( | ) | [inline] |
Definition at line 55 of file qdatabuffer_p.h.
Referenced by QFTOutlineMapper::beginOutline(), QOpenGLPaintEnginePrivate::beginPath(), QPolygonClipper< QRasterFloatPoint, QRasterFloatPoint, qreal >::clipPolygon(), and qt_painterpath_split().
00055 { siz = 0; }
| bool QDataBuffer< Type >::isEmpty | ( | ) | const [inline] |
Definition at line 57 of file qdatabuffer_p.h.
Referenced by QDataBuffer< QStrokerOps::Element >::first(), and QDataBuffer< QStrokerOps::Element >::last().
00057 { return siz==0; }
| int QDataBuffer< Type >::size | ( | ) | const [inline] |
Definition at line 59 of file qdatabuffer_p.h.
Referenced by QPolygonClipper< QRasterFloatPoint, QRasterFloatPoint, qreal >::clipPolygon(), QFTOutlineMapper::closeSubpath(), QFTOutlineMapper::convertElements(), QOpenGLPaintEnginePrivate::curveTo(), QFTOutlineMapper::endOutline(), QSubpathForwardIterator::hasNext(), QSubpathFlatIterator::hasNext(), QOpenGLPaintEnginePrivate::lineTo(), QFTOutlineMapper::moveTo(), QSubpathBackwardIterator::next(), and qt_painterpath_split().
00059 { return siz; }
| Type* QDataBuffer< Type >::data | ( | ) | const [inline] |
Definition at line 60 of file qdatabuffer_p.h.
Referenced by QPolygonClipper< QRasterFloatPoint, QRasterFloatPoint, qreal >::clipPolygon(), QFTOutlineMapper::convertElements(), QFTOutlineMapper::endOutline(), QOpenGLPaintEnginePrivate::lineTo(), and qt_painterpath_split().
00060 { return buffer; }
| const Type& QDataBuffer< Type >::at | ( | int | i | ) | const [inline] |
Definition at line 62 of file qdatabuffer_p.h.
Referenced by QPolygonClipper< QRasterFloatPoint, QRasterFloatPoint, qreal >::clipPolygon(), QFTOutlineMapper::closeSubpath(), QOpenGLPaintEnginePrivate::curveTo(), QFTOutlineMapper::endOutline(), QSubpathBackwardIterator::next(), QSubpathForwardIterator::next(), QSubpathFlatIterator::next(), and qt_painterpath_split().
| const Type& QDataBuffer< Type >::last | ( | ) | const [inline] |
| const Type& QDataBuffer< Type >::first | ( | ) | const [inline] |
| void QDataBuffer< Type >::add | ( | const Type & | t | ) | [inline] |
Definition at line 66 of file qdatabuffer_p.h.
Referenced by QPolygonClipper< QRasterFloatPoint, QRasterFloatPoint, qreal >::clipPolygon(), QFTOutlineMapper::lineTo(), QOpenGLPaintEnginePrivate::lineTo(), QDataBuffer< QStrokerOps::Element >::operator<<(), and qt_painterpath_split().
00066 { 00067 if (siz >= capacity) { 00068 capacity *= 2; 00069 buffer = (Type*) qRealloc(buffer, capacity * sizeof(Type)); 00070 } 00071 buffer[siz] = t; 00072 ++siz; 00073 }
| QDataBuffer& QDataBuffer< Type >::operator<< | ( | const Type & | t | ) | [inline] |
int QDataBuffer< Type >::capacity [private] |
Definition at line 78 of file qdatabuffer_p.h.
Referenced by QDataBuffer< QStrokerOps::Element >::add(), and QDataBuffer< QStrokerOps::Element >::QDataBuffer().
int QDataBuffer< Type >::siz [private] |
Definition at line 79 of file qdatabuffer_p.h.
Referenced by QDataBuffer< QStrokerOps::Element >::add(), QDataBuffer< QStrokerOps::Element >::at(), QDataBuffer< QStrokerOps::Element >::isEmpty(), QDataBuffer< QStrokerOps::Element >::last(), QDataBuffer< QStrokerOps::Element >::QDataBuffer(), QDataBuffer< QStrokerOps::Element >::reset(), and QDataBuffer< QStrokerOps::Element >::size().
Type* QDataBuffer< Type >::buffer [private] |
Definition at line 80 of file qdatabuffer_p.h.
Referenced by QDataBuffer< QStrokerOps::Element >::add(), QDataBuffer< QStrokerOps::Element >::at(), QDataBuffer< QStrokerOps::Element >::data(), QDataBuffer< QStrokerOps::Element >::first(), QDataBuffer< QStrokerOps::Element >::last(), QDataBuffer< QStrokerOps::Element >::QDataBuffer(), and QDataBuffer< QStrokerOps::Element >::~QDataBuffer().
1.5.1