Fixed-size stack that can be used for a BVH traversal.
Public Member Functions | |
bool | is_empty () const |
bool | is_full () const |
T | pop () |
void | push (const T &t) |
Public Attributes | |
T | elems [capacity] |
unsigned | size = 0 |
Static Public Attributes | |
static constexpr unsigned | capacity = Capacity |
#include <bvh/v2/stack.h>
|
inline |
|
inline |
|
inline |
|
inline |
|
staticconstexpr |
T bvh::v2::SmallStack< T, Capacity >::elems[capacity] |
unsigned bvh::v2::SmallStack< T, Capacity >::size = 0 |