GNU Octave  6.2.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
 

Protected Attributes

size_t count
 

Private Attributes

octave_value data
 
std::string name
 

Detailed Description

Definition at line 117 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 122 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 49 of file hook-fcn.cc.

References octave_value_list::append(), data, octave::feval(), octave_value::is_defined(), and name.

◆ id()

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

Reimplemented from base_hook_function.

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

References name.

◆ is_valid()

bool named_hook_function::is_valid ( void  ) const
inlinevirtual

Reimplemented from base_hook_function.

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

References is_valid_function(), and name.

Member Data Documentation

◆ count

size_t base_hook_function::count
protectedinherited

◆ data

octave_value named_hook_function::data
private

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

Referenced by eval().

◆ name

std::string named_hook_function::name
private

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

Referenced by eval().


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