QContiguousCache

#include <QtCore/QContiguousCache>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QContiguousCache


Overview

Public Types Index

const value_type *const_pointer
const value_type &const_reference
qptrdiffdifference_type
value_type *pointer
value_type &reference
intsize_type
Tvalue_type

Public Attributes Index

Public Functions Index

QContiguousCache (int capacity=0)
QContiguousCache (const QContiguousCache< T > &v)
~QContiguousCache ()
voidappend (const T &value)
boolareIndexesValid () const
const T &at (int pos) const
intavailable () const
intcapacity () const
voidclear ()
boolcontainsIndex (int pos) const
intcount () const
voiddetach ()
const T &first () const
T &first ()
intfirstIndex () const
voidinsert (int pos, const T &value)
boolisDetached () const
boolisEmpty () const
boolisFull () const
const T &last () const
T &last ()
intlastIndex () const
voidnormalizeIndexes ()
booloperator!= (const QContiguousCache< T > &other) const
QContiguousCache< T > &operator= (const QContiguousCache< T > &other)
booloperator== (const QContiguousCache< T > &other) const
T &operator[] (int i)
const T &operator[] (int i) const
voidprepend (const T &value)
voidremoveFirst ()
voidremoveLast ()
voidsetCapacity (int size)
voidsetSharable (bool sharable)
intsize () const
voidswap (QContiguousCache< T > &other)
TtakeFirst ()
TtakeLast ()

Public Types

typedef const value_type * const_pointer

typedef const value_type & const_reference

typedef qptrdiff difference_type

typedef value_type * pointer

typedef value_type & reference

typedef int size_type

typedef T value_type

Public Attributes

Public Functions

QContiguousCache (
  • intcapacity)

QContiguousCache (

~QContiguousCache ()

Destructor.

void append (
  • const T &value)

bool areIndexesValid ()

const T & at (
  • intpos)

int available ()

int capacity ()

void clear ()

bool containsIndex (
  • intpos)

int count ()

void detach ()

const T & first ()

T & first ()

int firstIndex ()

void insert (
  • intpos,
  • const T &value )

bool isDetached ()

bool isEmpty ()

bool isFull ()

const T & last ()

T & last ()

int lastIndex ()

void normalizeIndexes ()

bool operator!= (

QContiguousCache< T > & operator= (

bool operator== (

T & operator[] (
  • inti)

const T & operator[] (
  • inti)

void prepend (
  • const T &value)

void removeFirst ()

void removeLast ()

void setCapacity (
  • intsize)

void setSharable (
  • boolsharable)

int size ()

void swap (

T takeFirst ()

T takeLast ()

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus