GNU Octave  4.4.1
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 5338 of file oct-stream.cc.

Member Enumeration Documentation

◆ state

Enumerator
ok 
conversion_error 

Definition at line 5343 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

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

References err_wrong_type_arg(), i, val, and values.

◆ 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 5375 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 5373 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 5386 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 5385 of file oct-stream.cc.

Referenced by get_next_value().

◆ elt_idx

int octave::printf_value_cache::elt_idx
private

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

Referenced by get_next_value().

◆ have_data

bool octave::printf_value_cache::have_data
private

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

Referenced by get_next_value().

◆ n_elts

int octave::printf_value_cache::n_elts
private

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

Referenced by get_next_value().

◆ n_vals

int octave::printf_value_cache::n_vals
private

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

◆ val_idx

int octave::printf_value_cache::val_idx
private

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

Referenced by get_next_value().

◆ values

const octave_value_list octave::printf_value_cache::values
private

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

Referenced by get_next_value().


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