|
Ponca
b63e69866b9b277a96802d3d06e6492d50ffc055
Point Cloud Analysis library
|
Stack with fixed-size storage. More...
#include <stack.h>
Inheritance diagram for Ponca::Stack< T, N >:
Collaboration diagram for Ponca::Stack< T, N >: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 |