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

Public Types

enum  state { ok , conversion_error }
 

Public Member Functions

 printf_value_cache (const octave_value_list &args, const std::string &who)
 
 printf_value_cache (const printf_value_cache &)=delete
 
 ~printf_value_cache (void)=default
 
bool exhausted (void)
 
octave_value get_next_value (char type=0)
 
int int_value (void)
 
 operator bool () const
 
printf_value_cacheoperator= (const printf_value_cache &)=delete
 

Private Member Functions

 printf_value_cache (void)
 

Private Attributes

state m_curr_state
 
octave_value m_curr_val
 
octave_idx_type m_elt_idx
 
bool m_have_data
 
octave_idx_type m_n_elts
 
octave_idx_type m_n_vals
 
octave_idx_type m_val_idx
 
const octave_value_list m_values
 

Detailed Description

Definition at line 5492 of file oct-stream.cc.

Member Enumeration Documentation

◆ state

Enumerator
ok 
conversion_error 

Definition at line 5497 of file oct-stream.cc.

Constructor & Destructor Documentation

◆ printf_value_cache() [1/3]

printf_value_cache::printf_value_cache ( const octave_value_list args,
const std::string &  who 
)
inline

◆ printf_value_cache() [2/3]

printf_value_cache::printf_value_cache ( const printf_value_cache )
delete

◆ ~printf_value_cache()

printf_value_cache::~printf_value_cache ( void  )
default

◆ printf_value_cache() [3/3]

printf_value_cache::printf_value_cache ( void  )
private

Member Function Documentation

◆ exhausted()

bool printf_value_cache::exhausted ( void  )
inline

Definition at line 5532 of file oct-stream.cc.

Referenced by base_stream::do_printf(), and get_next_value().

◆ get_next_value()

◆ int_value()

int printf_value_cache::int_value ( void  )

◆ operator bool()

printf_value_cache::operator bool ( ) const
inline

Definition at line 5530 of file oct-stream.cc.

References textscan_format_list::ok().

◆ operator=()

printf_value_cache& printf_value_cache::operator= ( const printf_value_cache )
delete

Member Data Documentation

◆ m_curr_state

state printf_value_cache::m_curr_state
private

Definition at line 5548 of file oct-stream.cc.

Referenced by get_next_value(), and int_value().

◆ m_curr_val

octave_value printf_value_cache::m_curr_val
private

Definition at line 5547 of file oct-stream.cc.

Referenced by get_next_value().

◆ m_elt_idx

octave_idx_type printf_value_cache::m_elt_idx
private

Definition at line 5543 of file oct-stream.cc.

Referenced by get_next_value().

◆ m_have_data

bool printf_value_cache::m_have_data
private

Definition at line 5546 of file oct-stream.cc.

Referenced by get_next_value().

◆ m_n_elts

octave_idx_type printf_value_cache::m_n_elts
private

Definition at line 5545 of file oct-stream.cc.

Referenced by get_next_value().

◆ m_n_vals

octave_idx_type printf_value_cache::m_n_vals
private

Definition at line 5544 of file oct-stream.cc.

◆ m_val_idx

octave_idx_type printf_value_cache::m_val_idx
private

Definition at line 5542 of file oct-stream.cc.

Referenced by get_next_value().

◆ m_values

const octave_value_list printf_value_cache::m_values
private

Definition at line 5541 of file oct-stream.cc.

Referenced by get_next_value().


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