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

#include "action-container.h"

Inheritance diagram for 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 (std::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)
 
OCTAVE_API void run (std::size_t num)
 
void run (void)
 
virtual void run_first (void)=0
 
virtual std::size_t size (void) const =0
 

Protected Member Functions

virtual void add_action (elem *new_elem)=0
 

Detailed Description

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

Constructor & Destructor Documentation

◆ action_container() [1/2]

action_container::action_container ( void  )
inline

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

◆ action_container() [2/2]

action_container::action_container ( const action_container )
delete

◆ ~action_container()

virtual action_container::~action_container ( void  )
virtualdefault

Member Function Documentation

◆ add()

◆ add_action()

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

Implemented in unwind_protect, and event_queue.

◆ add_delete()

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

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

Referenced by get_data_and_bytesize(), and run_command_and_return_output().

◆ add_fcn()

template<typename... Params, typename... Args>
void action_container::add_fcn ( void(*)(Params...)  fcn,
Args &&...  args 
)
inline

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

◆ add_method() [1/2]

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

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

◆ add_method() [2/2]

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

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

◆ discard() [1/2]

void action_container::discard ( std::size_t  num)
inline

◆ discard() [2/2]

void action_container::discard ( void  )
inline

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

References discard().

Referenced by discard().

◆ discard_first()

virtual void action_container::discard_first ( void  )
pure virtual

Implemented in unwind_protect, and event_queue.

◆ empty()

bool action_container::empty ( void  ) const
inline

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

◆ operator bool()

action_container::operator bool ( void  ) const
inline

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

◆ operator=()

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

◆ protect_var() [1/2]

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

◆ protect_var() [2/2]

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

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

◆ run() [1/2]

void action_container::run ( std::size_t  num)

◆ run() [2/2]

void action_container::run ( void  )
inline

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

References run().

Referenced by run().

◆ run_first()

virtual void action_container::run_first ( void  )
pure virtual

Implemented in unwind_protect, and event_queue.

◆ size()

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

Implemented in unwind_protect, and event_queue.


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