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]
Public Member Functions | Protected Types | Protected Attributes | List of all members
triangle_stripper::detail::cache_simulator Class Reference

#include <cache_simulator.h>

Public Member Functions

 cache_simulator ()
 
void clear ()
 
void resize (size_t Size)
 
void reset ()
 
void push_cache_hits (bool Enabled=true)
 
size_t size () const
 
void push (index i, bool CountCacheHit=false)
 
void merge (const cache_simulator &Backward, size_t PossibleOverlap)
 
void reset_hitcount ()
 
size_t hitcount () const
 

Protected Types

typedef std::deque< indexindices_deque
 

Protected Attributes

indices_deque m_Cache
 
size_t m_NbHits
 
bool m_PushHits
 

Detailed Description

Definition at line 27 of file cache_simulator.h.

Member Typedef Documentation

◆ indices_deque

Definition at line 45 of file cache_simulator.h.

Constructor & Destructor Documentation

◆ cache_simulator()

triangle_stripper::detail::cache_simulator::cache_simulator ( )
inline

Definition at line 60 of file cache_simulator.h.

Member Function Documentation

◆ clear()

void triangle_stripper::detail::cache_simulator::clear ( )
inline

Definition at line 68 of file cache_simulator.h.

References m_Cache, and reset_hitcount().

◆ hitcount()

size_t triangle_stripper::detail::cache_simulator::hitcount ( ) const
inline

Definition at line 139 of file cache_simulator.h.

References m_NbHits.

Referenced by triangle_stripper::tri_stripper::Strip().

◆ merge()

void triangle_stripper::detail::cache_simulator::merge ( const cache_simulator Backward,
size_t  PossibleOverlap 
)
inline

Definition at line 122 of file cache_simulator.h.

References i, m_Cache, m_NbHits, vl::min(), push(), and size().

Referenced by triangle_stripper::tri_stripper::Strip().

◆ push()

void triangle_stripper::detail::cache_simulator::push ( index  i,
bool  CountCacheHit = false 
)
inline

Definition at line 100 of file cache_simulator.h.

References i, m_Cache, m_NbHits, and m_PushHits.

Referenced by merge(), and triangle_stripper::tri_stripper::Strip().

◆ push_cache_hits()

void triangle_stripper::detail::cache_simulator::push_cache_hits ( bool  Enabled = true)
inline

Definition at line 88 of file cache_simulator.h.

References m_PushHits.

Referenced by triangle_stripper::tri_stripper::SetPushCacheHits().

◆ reset()

void triangle_stripper::detail::cache_simulator::reset ( )
inline

Definition at line 81 of file cache_simulator.h.

References m_Cache, max, and reset_hitcount().

Referenced by triangle_stripper::tri_stripper::Strip().

◆ reset_hitcount()

void triangle_stripper::detail::cache_simulator::reset_hitcount ( )
inline

Definition at line 133 of file cache_simulator.h.

References m_NbHits.

Referenced by clear(), and reset().

◆ resize()

void triangle_stripper::detail::cache_simulator::resize ( size_t  Size)
inline

Definition at line 75 of file cache_simulator.h.

References m_Cache, and max.

Referenced by triangle_stripper::tri_stripper::SetCacheSize().

◆ size()

size_t triangle_stripper::detail::cache_simulator::size ( ) const
inline

Definition at line 94 of file cache_simulator.h.

References m_Cache.

Referenced by merge(), and triangle_stripper::tri_stripper::Strip().

Member Data Documentation

◆ m_Cache

indices_deque triangle_stripper::detail::cache_simulator::m_Cache
protected

Definition at line 47 of file cache_simulator.h.

Referenced by clear(), merge(), push(), reset(), resize(), and size().

◆ m_NbHits

size_t triangle_stripper::detail::cache_simulator::m_NbHits
protected

Definition at line 48 of file cache_simulator.h.

Referenced by hitcount(), merge(), push(), and reset_hitcount().

◆ m_PushHits

bool triangle_stripper::detail::cache_simulator::m_PushHits
protected

Definition at line 49 of file cache_simulator.h.

Referenced by push(), and push_cache_hits().


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