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

#include "oct-handle.h"

Collaboration diagram for octave_handle:

Public Member Functions

 octave_handle (const octave_handle &a)
 
 octave_handle (const octave_value &a)
 
 octave_handle (double a)
 
 octave_handle (int a)
 
 octave_handle (void)
 
 ~octave_handle (void)=default
 
octave_value as_octave_value (void) const
 
bool ok (void) const
 
const octave_handle operator++ (int)
 
octave_handleoperator++ (void)
 
const octave_handle operator-- (int)
 
octave_handleoperator-- (void)
 
octave_handleoperator= (const octave_handle &a)
 
double value (void) const
 

Private Attributes

double m_dval
 

Detailed Description

Definition at line 39 of file oct-handle.h.

Constructor & Destructor Documentation

◆ octave_handle() [1/5]

octave_handle::octave_handle ( void  )
inline

Definition at line 42 of file oct-handle.h.

◆ octave_handle() [2/5]

octave_handle::octave_handle ( const octave_value a)
inline

Definition at line 44 of file oct-handle.h.

References octave_value::double_value(), error(), octave_value::isempty(), and m_dval.

◆ octave_handle() [3/5]

octave_handle::octave_handle ( int  a)
inline

Definition at line 62 of file oct-handle.h.

◆ octave_handle() [4/5]

octave_handle::octave_handle ( double  a)
inline

Definition at line 64 of file oct-handle.h.

◆ octave_handle() [5/5]

octave_handle::octave_handle ( const octave_handle a)
inline

Definition at line 66 of file oct-handle.h.

◆ ~octave_handle()

octave_handle::~octave_handle ( void  )
default

Member Function Documentation

◆ as_octave_value()

octave_value octave_handle::as_octave_value ( void  ) const
inline

Definition at line 80 of file oct-handle.h.

References m_dval, octave_value(), and ok().

Referenced by ButtonGroup::buttonClicked(), ButtonGroup::buttonToggled(), and xset_gcbo().

◆ ok()

◆ operator++() [1/2]

const octave_handle octave_handle::operator++ ( int  )
inline

Definition at line 99 of file oct-handle.h.

◆ operator++() [2/2]

octave_handle& octave_handle::operator++ ( void  )
inline

Definition at line 86 of file oct-handle.h.

References m_dval.

◆ operator--() [1/2]

const octave_handle octave_handle::operator-- ( int  )
inline

Definition at line 106 of file oct-handle.h.

◆ operator--() [2/2]

octave_handle& octave_handle::operator-- ( void  )
inline

Definition at line 92 of file oct-handle.h.

References m_dval.

◆ operator=()

octave_handle& octave_handle::operator= ( const octave_handle a)
inline

Definition at line 68 of file oct-handle.h.

References m_dval.

◆ value()

Member Data Documentation

◆ m_dval

double octave_handle::m_dval
private

Definition at line 116 of file oct-handle.h.

Referenced by octave_handle(), as_octave_value(), ok(), operator++(), operator--(), operator=(), and value().


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