Public Member Functions | Private Member Functions | Private Attributes | List of all members
Mediator< Item > Class Template Reference

#include <Mediator.h>

Public Member Functions

Item getMedian ()
 
void insert (const Item &v)
 
 Mediator (int nItems)
 
 ~Mediator ()
 

Private Member Functions

void maxSortDown (int i)
 
int maxSortUp (int i)
 
void minSortDown (int i)
 
int minSortUp (int i)
 
int mmCmpExch (const int i, const int j)
 
int mmexchange (const int i, const int j)
 
int mmless (const int i, const int j)
 

Private Attributes

int * allocatedHeap
 
Item * data
 
int * heap
 
int idx
 
int maxCt
 
int minCt
 
const int N
 
int * pos
 

Detailed Description

template<typename Item>
class Mediator< Item >

Definition at line 9 of file Mediator.h.

Constructor & Destructor Documentation

template<typename Item>
Mediator< Item >::Mediator ( int  nItems)
inline

Definition at line 13 of file Mediator.h.

template<typename Item>
Mediator< Item >::~Mediator ( )
inline

Definition at line 28 of file Mediator.h.

Member Function Documentation

template<typename Item>
Item Mediator< Item >::getMedian ( )
inline

Definition at line 91 of file Mediator.h.

template<typename Item>
void Mediator< Item >::insert ( const Item &  v)
inline

Definition at line 36 of file Mediator.h.

template<typename Item>
void Mediator< Item >::maxSortDown ( int  i)
inlineprivate

Definition at line 131 of file Mediator.h.

template<typename Item>
int Mediator< Item >::maxSortUp ( int  i)
inlineprivate

Definition at line 171 of file Mediator.h.

template<typename Item>
void Mediator< Item >::minSortDown ( int  i)
inlineprivate

Definition at line 115 of file Mediator.h.

template<typename Item>
int Mediator< Item >::minSortUp ( int  i)
inlineprivate

Definition at line 160 of file Mediator.h.

template<typename Item>
int Mediator< Item >::mmCmpExch ( const int  i,
const int  j 
)
inlineprivate

Definition at line 153 of file Mediator.h.

template<typename Item>
int Mediator< Item >::mmexchange ( const int  i,
const int  j 
)
inlineprivate

Definition at line 104 of file Mediator.h.

template<typename Item>
int Mediator< Item >::mmless ( const int  i,
const int  j 
)
inlineprivate

Definition at line 147 of file Mediator.h.

Member Data Documentation

template<typename Item>
int* Mediator< Item >::allocatedHeap
private

Definition at line 188 of file Mediator.h.

template<typename Item>
Item* Mediator< Item >::data
private

Definition at line 182 of file Mediator.h.

template<typename Item>
int* Mediator< Item >::heap
private

Definition at line 186 of file Mediator.h.

template<typename Item>
int Mediator< Item >::idx
private

Definition at line 190 of file Mediator.h.

template<typename Item>
int Mediator< Item >::maxCt
private

Definition at line 194 of file Mediator.h.

template<typename Item>
int Mediator< Item >::minCt
private

Definition at line 192 of file Mediator.h.

template<typename Item>
const int Mediator< Item >::N
private

Definition at line 178 of file Mediator.h.

template<typename Item>
int* Mediator< Item >::pos
private

Definition at line 184 of file Mediator.h.


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


timesync_ros
Author(s): Juraj Oršulić
autogenerated on Mon Jun 10 2019 15:28:33