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

#include "hook-fcn.h"

Inheritance diagram for named_hook_function:
Collaboration diagram for named_hook_function:

Public Member Functions

 named_hook_function (const std::string &n, const octave_value &d)
 
void eval (const octave_value_list &initial_args)
 
std::string id (void) const
 
bool is_valid (void) const
 

Private Attributes

octave_value m_data
 
std::string m_name
 

Detailed Description

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

Constructor & Destructor Documentation

◆ named_hook_function()

named_hook_function::named_hook_function ( const std::string &  n,
const octave_value d 
)
inline

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

Member Function Documentation

◆ eval()

void named_hook_function::eval ( const octave_value_list initial_args)
virtual

Reimplemented from base_hook_function.

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

References octave_value_list::append(), feval(), octave_value::is_defined(), m_data, and m_name.

◆ id()

std::string named_hook_function::id ( void  ) const
inlinevirtual

Reimplemented from base_hook_function.

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

References m_name.

◆ is_valid()

bool named_hook_function::is_valid ( void  ) const
inlinevirtual

Reimplemented from base_hook_function.

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

References is_valid_function(), and m_name.

Member Data Documentation

◆ m_data

octave_value named_hook_function::m_data
private

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

Referenced by eval().

◆ m_name

std::string named_hook_function::m_name
private

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

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


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