GNU Octave  6.2.0
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 (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)
 
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 75 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 116 of file pt-eval.h.

◆ empty()

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

Definition at line 111 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 89 of file pt-eval.h.

◆ push()

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

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

◆ size()

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

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

◆ top()

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

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

◆ val_pop()

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

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

References retval.

Member Data Documentation

◆ m_stack

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

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


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