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

#include "hook-fcn.h"

Collaboration diagram for hook_function_list:

Public Types

typedef map_type::const_iterator const_iterator
 
typedef map_type::iterator iterator
 
typedef std::map< std::string, hook_functionmap_type
 

Public Member Functions

 hook_function_list (const hook_function_list &lst)
 
 hook_function_list (void)
 
 ~hook_function_list (void)=default
 
void clear (void)
 
bool empty (void) const
 
iterator end (void)
 
const_iterator end (void) const
 
void erase (iterator p)
 
iterator find (const std::string &id)
 
const_iterator find (const std::string &id) const
 
void insert (const std::string &id, const hook_function &f)
 
hook_function_listoperator= (const hook_function_list &lst)
 
void run (const octave_value_list &initial_args=octave_value_list())
 

Private Attributes

map_type fcn_map
 

Detailed Description

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

Member Typedef Documentation

◆ const_iterator

typedef map_type::const_iterator hook_function_list::const_iterator

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

◆ iterator

typedef map_type::iterator hook_function_list::iterator

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

◆ map_type

typedef std::map<std::string, hook_function> hook_function_list::map_type

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

Constructor & Destructor Documentation

◆ hook_function_list() [1/2]

hook_function_list::hook_function_list ( void  )
inline

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

◆ ~hook_function_list()

hook_function_list::~hook_function_list ( void  )
default

◆ hook_function_list() [2/2]

hook_function_list::hook_function_list ( const hook_function_list lst)
inline

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

Member Function Documentation

◆ clear()

void hook_function_list::clear ( void  )
inline

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

◆ empty()

bool hook_function_list::empty ( void  ) const
inline

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

◆ end() [1/2]

iterator hook_function_list::end ( void  )
inline

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

◆ end() [2/2]

const_iterator hook_function_list::end ( void  ) const
inline

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

◆ erase()

void hook_function_list::erase ( iterator  p)
inline

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

◆ find() [1/2]

iterator hook_function_list::find ( const std::string &  id)
inline

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

◆ find() [2/2]

const_iterator hook_function_list::find ( const std::string &  id) const
inline

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

◆ insert()

void hook_function_list::insert ( const std::string &  id,
const hook_function f 
)
inline

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

References f, and hook_function::id().

◆ operator=()

hook_function_list& hook_function_list::operator= ( const hook_function_list lst)
inline

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

References fcn_map.

◆ run()

void hook_function_list::run ( const octave_value_list initial_args = octave_value_list ())
inline

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

References hook_function::eval(), and hook_function::is_valid().

Member Data Documentation

◆ fcn_map

map_type hook_function_list::fcn_map
private

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

Referenced by operator=().


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