GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::action_container Class Referenceabstract

#include "action-container.h"

Inheritance diagram for octave::action_container:

Classes

class  delete_ptr_elem
 
class  elem
 
class  fcn_elem
 
class  restore_var_elem
 

Public Member Functions

 action_container (const action_container &)=delete
 
 action_container (void)
 
virtual ~action_container (void)=default
 
template<typename F , typename... Args>
void add (F &&fcn, Args &&... args)
 
template<typename T >
void add_delete (T *obj)
 
template<typename... Params, typename... Args>
void add_fcn (void(*fcn)(Params...), Args &&... args)
 
template<typename T , typename... Params, typename... Args>
void add_method (T &obj, void(T::*method)(Params...), Args &&... args)
 
template<typename T , typename... Params, typename... Args>
void add_method (T *obj, void(T::*method)(Params...), Args &&... args)
 
void discard (size_t num)
 
void discard (void)
 
virtual void discard_first (void)=0
 
bool empty (void) const
 
 operator bool (void) const
 
action_containeroperator= (const action_container &)=delete
 
template<typename T >
void protect_var (T &var)
 
template<typename T >
void protect_var (T &var, const T &val)
 
void run (size_t num)
 
void run (void)
 
virtual void run_first (void)=0
 
virtual size_t size (void) const =0
 

Protected Member Functions

virtual void add_action (elem *new_elem)=0
 

Detailed Description

Definition at line 41 of file action-container.h.

Constructor & Destructor Documentation

◆ action_container() [1/2]

octave::action_container::action_container ( void  )
inline

Definition at line 131 of file action-container.h.

◆ action_container() [2/2]

octave::action_container::action_container ( const action_container )
delete

◆ ~action_container()

virtual octave::action_container::~action_container ( void  )
virtualdefault

Member Function Documentation

◆ add()

template<typename F , typename... Args>
void octave::action_container::add ( F &&  fcn,
Args &&...  args 
)
inline

◆ add_action()

virtual void octave::action_container::add_action ( elem new_elem)
protectedpure virtual

◆ add_delete()

template<typename T >
void octave::action_container::add_delete ( T *  obj)
inline

Definition at line 173 of file action-container.h.

Referenced by get_data_and_bytesize(), and run_command_and_return_output().

◆ add_fcn()

◆ add_method() [1/2]

template<typename T , typename... Params, typename... Args>
void octave::action_container::add_method ( T &  obj,
void(T::*)(Params...)  method,
Args &&...  args 
)
inline

Definition at line 165 of file action-container.h.

◆ add_method() [2/2]

◆ discard() [1/2]

◆ discard() [2/2]

void octave::action_container::discard ( void  )
inline

Definition at line 211 of file action-container.h.

References discard().

Referenced by discard().

◆ discard_first()

virtual void octave::action_container::discard_first ( void  )
pure virtual

◆ empty()

bool octave::action_container::empty ( void  ) const
inline

Definition at line 215 of file action-container.h.

◆ operator bool()

octave::action_container::operator bool ( void  ) const
inline

Definition at line 192 of file action-container.h.

◆ operator=()

action_container& octave::action_container::operator= ( const action_container )
delete

◆ protect_var() [1/2]

template<typename T >
void octave::action_container::protect_var ( T &  var)
inline

◆ protect_var() [2/2]

template<typename T >
void octave::action_container::protect_var ( T &  var,
const T &  val 
)
inline

Definition at line 187 of file action-container.h.

◆ run() [1/2]

◆ run() [2/2]

void octave::action_container::run ( void  )
inline

Definition at line 198 of file action-container.h.

References run().

Referenced by run().

◆ run_first()

virtual void octave::action_container::run_first ( void  )
pure virtual

Implemented in octave::unwind_protect, and octave::event_queue.

Referenced by run().

◆ size()

virtual size_t octave::action_container::size ( void  ) const
pure virtual

Implemented in octave::unwind_protect, and octave::event_queue.

Referenced by run().


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