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

#include "pt-eval.h"

Collaboration diagram for octave::tree_evaluator::value_stack< T >:

Public Member Functions

 value_stack (void)=default
 
 value_stack (const value_stack &)=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)
 
size_t size (void) const
 
top (void) const
 
val_pop (void)
 

Private Attributes

std::stack< T > m_stack
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ value_stack() [1/2]

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

◆ value_stack() [2/2]

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

◆ ~value_stack()

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

Member Function Documentation

◆ clear()

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

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

Referenced by octave::tree_evaluator::reset().

◆ empty()

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

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

◆ operator=()

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

◆ pop()

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

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

◆ push()

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

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

◆ size()

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

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

◆ top()

◆ val_pop()

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

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

Member Data Documentation

◆ m_stack

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

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


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