• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kget

bt::SampleQueue

bt::SampleQueue Class Reference

#include <timeestimator.h>

List of all members.


Detailed Description

Simple queue class for samples.

Optimized for speed and size without possibility to dynamically resize itself.

Author:
Ivan Vasic <ivasic@gmail.com>

Definition at line 35 of file timeestimator.h.


Public Member Functions

int count ()
Uint32 first ()
bool isFull ()
Uint32 last ()
void push (Uint32 sample)
 SampleQueue (int max)
Uint32 sum ()
 ~SampleQueue ()

Constructor & Destructor Documentation

bt::SampleQueue::SampleQueue ( int  max  ) 

Definition at line 179 of file timeestimator.cpp.

bt::SampleQueue::~SampleQueue (  ) 

Definition at line 192 of file timeestimator.cpp.


Member Function Documentation

int bt::SampleQueue::count (  ) 

This function will return the number of samples in queue until it counts m_size number of elements.

After this point it will always return m_size since no samples are being deleted.

Definition at line 231 of file timeestimator.cpp.

Uint32 bt::SampleQueue::first (  ) 

Definition at line 216 of file timeestimator.cpp.

bool bt::SampleQueue::isFull (  ) 

Definition at line 226 of file timeestimator.cpp.

Uint32 bt::SampleQueue::last (  ) 

Definition at line 221 of file timeestimator.cpp.

void bt::SampleQueue::push ( Uint32  sample  ) 

Inserts new sample into the queue.

The oldest sample is overwritten.

Definition at line 197 of file timeestimator.cpp.

Uint32 bt::SampleQueue::sum (  ) 

Returns the sum of all samples.

Definition at line 236 of file timeestimator.cpp.


The documentation for this class was generated from the following files:
  • timeestimator.h
  • timeestimator.cpp

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal