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

template<typename T>
struct bvh::v2::GrowingStack< T >

Growing stack that can be used for BVH traversal.

Its performance may be lower than a small, fixed-size stack, depending on the architecture.

Definition at line 34 of file stack.h.

Public Member Functions

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

Public Attributes

std::vector< T > elems
 

#include <bvh/v2/stack.h>

Member Function Documentation

◆ clear()

template<typename T >
void bvh::v2::GrowingStack< T >::clear ( )
inline

Definition at line 47 of file stack.h.

◆ is_empty()

template<typename T >
bool bvh::v2::GrowingStack< T >::is_empty ( ) const
inline

Definition at line 37 of file stack.h.

◆ pop()

template<typename T >
T bvh::v2::GrowingStack< T >::pop ( )
inline

Definition at line 40 of file stack.h.

◆ push()

template<typename T >
void bvh::v2::GrowingStack< T >::push ( const T &  t)
inline

Definition at line 38 of file stack.h.

Member Data Documentation

◆ elems

template<typename T >
std::vector<T> bvh::v2::GrowingStack< T >::elems

Definition at line 35 of file stack.h.

Collaboration diagram for bvh::v2::GrowingStack< T >:
[legend]

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