Block-Structured AMR Software Framework
amrex::Stack< T, N > Struct Template Reference

#include <AMReX_Stack.H>

Public Member Functions

constexpr void push (T v)
 
constexpr void pop ()
 
constexpr bool empty () const
 
constexpr int size () const
 
constexpr T const & top () const
 
constexpr T & top ()
 
constexpr T operator[] (int i) const
 

Private Attributes

m_data [N]
 
int m_size = 0
 

Member Function Documentation

◆ empty()

template<typename T , int N>
constexpr bool amrex::Stack< T, N >::empty ( ) const
inlineconstexpr

◆ operator[]()

template<typename T , int N>
constexpr T amrex::Stack< T, N >::operator[] ( int  i) const
inlineconstexpr

◆ pop()

template<typename T , int N>
constexpr void amrex::Stack< T, N >::pop ( )
inlineconstexpr

◆ push()

template<typename T , int N>
constexpr void amrex::Stack< T, N >::push ( v)
inlineconstexpr

◆ size()

template<typename T , int N>
constexpr int amrex::Stack< T, N >::size ( ) const
inlineconstexpr

◆ top() [1/2]

template<typename T , int N>
constexpr T& amrex::Stack< T, N >::top ( )
inlineconstexpr

◆ top() [2/2]

template<typename T , int N>
constexpr T const& amrex::Stack< T, N >::top ( ) const
inlineconstexpr

Member Data Documentation

◆ m_data

template<typename T , int N>
T amrex::Stack< T, N >::m_data[N]
private

◆ m_size

template<typename T , int N>
int amrex::Stack< T, N >::m_size = 0
private

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