Ponca
aa50bfdf187919869239c5b44b748842569114c1
Point Cloud Analysis library
|
Stack with fixed-size storage. More...
#include <stack.h>
Public Types | |
using | ValueType = T |
Type of value stored in the Stack. | |
Public Member Functions | |
const T & | top () const |
Read access to the top element of the Stack. | |
T & | top () |
Write access to the top element of the Stack. | |
bool | empty () const |
Is the stack empty. | |
int | size () const |
Get the number of elements in the Stack. | |
void | push (const T &value) |
Add an element on top of the stack. | |
void | push () |
Add an element with default initialization. | |
void | pop () |
Pop the last element of the Stack. | |
void | clear () |
Clear the stack content. | |
Protected Attributes | |
int | m_size |
Number of elements in the Stack. | |
std::array< T, N > | m_data |
Fixed-size data buffer. | |
Stack with fixed-size storage.
using Ponca::Stack< T, N >::ValueType = T |
|
inline |
|
inline |
Clear the stack content.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |