Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
bvh::v2::SmallStack< T, Capacity > Struct Template Reference

template<typename T, unsigned Capacity>
struct bvh::v2::SmallStack< T, Capacity >

Fixed-size stack that can be used for a BVH traversal.

Definition at line 11 of file stack.h.

Public Member Functions

bool is_empty () const
 
bool is_full () const
 
pop ()
 
void push (const T &t)
 

Public Attributes

elems [capacity]
 
unsigned size = 0
 

Static Public Attributes

static constexpr unsigned capacity = Capacity
 

#include <bvh/v2/stack.h>

Member Function Documentation

◆ is_empty()

template<typename T , unsigned Capacity>
bool bvh::v2::SmallStack< T, Capacity >::is_empty ( ) const
inline

Definition at line 17 of file stack.h.

◆ is_full()

template<typename T , unsigned Capacity>
bool bvh::v2::SmallStack< T, Capacity >::is_full ( ) const
inline

Definition at line 18 of file stack.h.

◆ pop()

template<typename T , unsigned Capacity>
T bvh::v2::SmallStack< T, Capacity >::pop ( )
inline

Definition at line 25 of file stack.h.

◆ push()

template<typename T , unsigned Capacity>
void bvh::v2::SmallStack< T, Capacity >::push ( const T &  t)
inline

Definition at line 20 of file stack.h.

Member Data Documentation

◆ capacity

template<typename T , unsigned Capacity>
constexpr unsigned bvh::v2::SmallStack< T, Capacity >::capacity = Capacity
staticconstexpr

Definition at line 12 of file stack.h.

◆ elems

template<typename T , unsigned Capacity>
T bvh::v2::SmallStack< T, Capacity >::elems[capacity]

Definition at line 14 of file stack.h.

◆ size

template<typename T , unsigned Capacity>
unsigned bvh::v2::SmallStack< T, Capacity >::size = 0

Definition at line 15 of file stack.h.

Collaboration diagram for bvh::v2::SmallStack< T, Capacity >:
[legend]

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