GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
tree_evaluator::value_stack< T > Class Template Reference

#include "pt-eval.h"

Collaboration diagram for tree_evaluator::value_stack< T >:

Public Member Functions

 value_stack (const value_stack &)=default
 
 value_stack (void)=default
 
 ~value_stack (void)=default
 
void clear (void)
 
bool empty (void) const
 
value_stackoperator= (const value_stack &)=default
 
void pop (void)
 
void push (const T &val)
 
std::size_t size (void) const
 
top (void) const
 
val_pop (void)
 

Private Attributes

std::stack< T > m_stack
 

Detailed Description

template<typename T>
class tree_evaluator::value_stack< T >

Definition at line 80 of file pt-eval.h.

Constructor & Destructor Documentation

◆ value_stack() [1/2]

template<typename T >
tree_evaluator::value_stack< T >::value_stack ( void  )
default

◆ value_stack() [2/2]

template<typename T >
tree_evaluator::value_stack< T >::value_stack ( const value_stack< T > &  )
default

◆ ~value_stack()

template<typename T >
tree_evaluator::value_stack< T >::~value_stack ( void  )
default

Member Function Documentation

◆ clear()

template<typename T >
void tree_evaluator::value_stack< T >::clear ( void  )
inline

Definition at line 121 of file pt-eval.h.

◆ empty()

template<typename T >
bool tree_evaluator::value_stack< T >::empty ( void  ) const
inline

Definition at line 116 of file pt-eval.h.

◆ operator=()

template<typename T >
value_stack& tree_evaluator::value_stack< T >::operator= ( const value_stack< T > &  )
default

◆ pop()

template<typename T >
void tree_evaluator::value_stack< T >::pop ( void  )
inline

Definition at line 94 of file pt-eval.h.

◆ push()

template<typename T >
void tree_evaluator::value_stack< T >::push ( const T &  val)
inline

Definition at line 92 of file pt-eval.h.

◆ size()

template<typename T >
std::size_t tree_evaluator::value_stack< T >::size ( void  ) const
inline

Definition at line 111 of file pt-eval.h.

◆ top()

template<typename T >
T tree_evaluator::value_stack< T >::top ( void  ) const
inline

Definition at line 106 of file pt-eval.h.

◆ val_pop()

template<typename T >
T tree_evaluator::value_stack< T >::val_pop ( void  )
inline

Definition at line 99 of file pt-eval.h.

Member Data Documentation

◆ m_stack

template<typename T >
std::stack<T> tree_evaluator::value_stack< T >::m_stack
private

Definition at line 129 of file pt-eval.h.


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