GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::printf_value_cache Class Reference
Collaboration diagram for octave::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 curr_state
 
octave_value curr_val
 
int elt_idx
 
bool have_data
 
int n_elts
 
int n_vals
 
int val_idx
 
const octave_value_list values
 

Detailed Description

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

Member Enumeration Documentation

◆ state

Enumerator
ok 
conversion_error 

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

Constructor & Destructor Documentation

◆ printf_value_cache() [1/3]

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

◆ printf_value_cache() [2/3]

octave::printf_value_cache::printf_value_cache ( const printf_value_cache )
delete

◆ ~printf_value_cache()

octave::printf_value_cache::~printf_value_cache ( void  )
default

◆ printf_value_cache() [3/3]

octave::printf_value_cache::printf_value_cache ( void  )
private

Member Function Documentation

◆ exhausted()

bool octave::printf_value_cache::exhausted ( void  )
inline

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

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

◆ get_next_value()

◆ int_value()

int octave::printf_value_cache::int_value ( void  )

◆ operator bool()

octave::printf_value_cache::operator bool ( ) const
inline

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

◆ operator=()

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

Member Data Documentation

◆ curr_state

state octave::printf_value_cache::curr_state
private

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

Referenced by get_next_value(), and int_value().

◆ curr_val

octave_value octave::printf_value_cache::curr_val
private

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

Referenced by get_next_value().

◆ elt_idx

int octave::printf_value_cache::elt_idx
private

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

Referenced by get_next_value().

◆ have_data

bool octave::printf_value_cache::have_data
private

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

Referenced by get_next_value().

◆ n_elts

int octave::printf_value_cache::n_elts
private

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

Referenced by get_next_value().

◆ n_vals

int octave::printf_value_cache::n_vals
private

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

◆ val_idx

int octave::printf_value_cache::val_idx
private

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

Referenced by get_next_value().

◆ values

const octave_value_list octave::printf_value_cache::values
private

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

Referenced by get_next_value().


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