Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
common_structures::heap_array< T, CmpT > Class Template Reference

#include <TriStrip_heap_array.h>

Classes

struct  heap_is_locked
 
struct  linker
 

Public Member Functions

 heap_array ()
 
void clear ()
 
void reserve (size_t Size)
 
size_t size () const
 
bool empty () const
 
bool locked () const
 
bool removed (size_t i) const
 
bool valid (size_t i) const
 
const T & top () const
 
const T & peek (size_t i) const
 
const T & operator[] (size_t i) const
 
size_t push (const T &Elem)
 
void pop ()
 
void erase (size_t i)
 
void update (size_t i, const T &Elem)
 

Protected Types

typedef std::vector< linkerlinked_heap
 
typedef std::vector< size_t > finder
 

Protected Member Functions

void Adjust (size_t i)
 
void Swap (size_t a, size_t b)
 
bool Less (const linker &a, const linker &b) const
 

Protected Attributes

linked_heap m_Heap
 
finder m_Finder
 
CmpT m_Compare
 
bool m_Locked
 

Detailed Description

template<class T, class CmpT = std::less<T>>
class common_structures::heap_array< T, CmpT >

Definition at line 55 of file TriStrip_heap_array.h.

Member Typedef Documentation

◆ finder

template<class T , class CmpT = std::less<T>>
typedef std::vector<size_t> common_structures::heap_array< T, CmpT >::finder
protected

Definition at line 96 of file TriStrip_heap_array.h.

◆ linked_heap

template<class T , class CmpT = std::less<T>>
typedef std::vector<linker> common_structures::heap_array< T, CmpT >::linked_heap
protected

Definition at line 95 of file TriStrip_heap_array.h.

Constructor & Destructor Documentation

◆ heap_array()

template<class T , class CmpT = std::less<T>>
common_structures::heap_array< T, CmpT >::heap_array ( )
inline

Member Function Documentation

◆ Adjust()

template<class T , class CmpT >
void common_structures::heap_array< T, CmpT >::Adjust ( size_t  i)
inlineprotected

◆ clear()

template<class T , class CmpT >
void common_structures::heap_array< T, CmpT >::clear ( )
inline

◆ empty()

template<class T , class CmpT >
bool common_structures::heap_array< T, CmpT >::empty ( ) const
inline

◆ erase()

template<class T , class CmpT >
void common_structures::heap_array< T, CmpT >::erase ( size_t  i)
inline

◆ Less()

template<class T , class CmpT >
bool common_structures::heap_array< T, CmpT >::Less ( const linker a,
const linker b 
) const
inlineprotected

◆ locked()

template<class T , class CmpT >
bool common_structures::heap_array< T, CmpT >::locked ( ) const
inline

◆ operator[]()

template<class T , class CmpT >
const T & common_structures::heap_array< T, CmpT >::operator[] ( size_t  i) const
inline

◆ peek()

template<class T , class CmpT >
const T & common_structures::heap_array< T, CmpT >::peek ( size_t  i) const
inline

◆ pop()

template<class T , class CmpT >
void common_structures::heap_array< T, CmpT >::pop ( )
inline

◆ push()

template<class T , class CmpT >
size_t common_structures::heap_array< T, CmpT >::push ( const T &  Elem)
inline

◆ removed()

template<class T , class CmpT >
bool common_structures::heap_array< T, CmpT >::removed ( size_t  i) const
inline

◆ reserve()

template<class T , class CmpT >
void common_structures::heap_array< T, CmpT >::reserve ( size_t  Size)
inline

◆ size()

template<class T , class CmpT >
size_t common_structures::heap_array< T, CmpT >::size ( ) const
inline

◆ Swap()

template<class T , class CmpT >
void common_structures::heap_array< T, CmpT >::Swap ( size_t  a,
size_t  b 
)
inlineprotected

◆ top()

template<class T , class CmpT >
const T & common_structures::heap_array< T, CmpT >::top ( ) const
inline

◆ update()

template<class T , class CmpT >
void common_structures::heap_array< T, CmpT >::update ( size_t  i,
const T &  Elem 
)
inline

◆ valid()

template<class T , class CmpT >
bool common_structures::heap_array< T, CmpT >::valid ( size_t  i) const
inline

Member Data Documentation

◆ m_Compare

template<class T , class CmpT = std::less<T>>
CmpT common_structures::heap_array< T, CmpT >::m_Compare
protected

◆ m_Finder

template<class T , class CmpT = std::less<T>>
finder common_structures::heap_array< T, CmpT >::m_Finder
protected

◆ m_Heap

template<class T , class CmpT = std::less<T>>
linked_heap common_structures::heap_array< T, CmpT >::m_Heap
protected

◆ m_Locked

template<class T , class CmpT = std::less<T>>
bool common_structures::heap_array< T, CmpT >::m_Locked
protected

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