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

#include "hook-fcn.h"

Collaboration diagram for hook_function:

Public Member Functions

 hook_function (const hook_function &hf)=default
 
 hook_function (const octave_value &f, const octave_value &d=octave_value())
 
 hook_function (void)
 
 ~hook_function (void)=default
 
void eval (const octave_value_list &initial_args)
 
std::string id (void) const
 
bool is_valid (void) const
 
hook_functionoperator= (const hook_function &hf)=default
 

Private Attributes

std::shared_ptr< base_hook_functionm_rep
 

Detailed Description

Definition at line 58 of file hook-fcn.h.

Constructor & Destructor Documentation

◆ hook_function() [1/3]

hook_function::hook_function ( void  )
inline

Definition at line 62 of file hook-fcn.h.

References m_rep.

◆ hook_function() [2/3]

hook_function::hook_function ( const octave_value f,
const octave_value d = octave_value () 
)

Definition at line 35 of file hook-fcn.cc.

References d, error(), and f.

◆ ~hook_function()

hook_function::~hook_function ( void  )
default

◆ hook_function() [3/3]

hook_function::hook_function ( const hook_function hf)
default

Member Function Documentation

◆ eval()

void hook_function::eval ( const octave_value_list initial_args)
inline

Definition at line 83 of file hook-fcn.h.

References m_rep.

Referenced by hook_function_list::run().

◆ id()

std::string hook_function::id ( void  ) const
inline

Definition at line 79 of file hook-fcn.h.

References m_rep.

◆ is_valid()

bool hook_function::is_valid ( void  ) const
inline

Definition at line 81 of file hook-fcn.h.

References m_rep.

Referenced by hook_function_list::run().

◆ operator=()

hook_function& hook_function::operator= ( const hook_function hf)
default

Member Data Documentation

◆ m_rep

std::shared_ptr<base_hook_function> hook_function::m_rep
private

Definition at line 90 of file hook-fcn.h.

Referenced by hook_function(), eval(), id(), and is_valid().


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