GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
printf_value_cache Class Reference
Collaboration diagram for printf_value_cache:
Collaboration graph
[legend]

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 (void)
double double_value (void)
bool exhausted (void)
int int_value (void)
 operator bool () const
std::string string_value (void)

Private Member Functions

 printf_value_cache (void)
 printf_value_cache (const printf_value_cache &)
printf_value_cacheoperator= (const printf_value_cache &)

Private Attributes

state curr_state
NDArray curr_val
const doubledata
int elt_idx
int n_elts
int n_vals
int val_idx
const octave_value_list values

Detailed Description

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

Member Enumeration Documentation

Enumerator:
ok 
conversion_error 

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

Constructor & Destructor Documentation

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

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

printf_value_cache::printf_value_cache ( void  )
private
printf_value_cache::printf_value_cache ( const printf_value_cache )
private

Member Function Documentation

double printf_value_cache::double_value ( void  )
bool printf_value_cache::exhausted ( void  )
inline

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

Referenced by octave_base_stream::do_printf(), double_value(), and string_value().

int printf_value_cache::int_value ( void  )
printf_value_cache::operator bool ( ) const
inline

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

printf_value_cache& printf_value_cache::operator= ( const printf_value_cache )
private
std::string printf_value_cache::string_value ( void  )

Member Data Documentation

state printf_value_cache::curr_state
private

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

Referenced by double_value(), int_value(), and string_value().

NDArray printf_value_cache::curr_val
private

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

Referenced by double_value().

const double* printf_value_cache::data
private

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

Referenced by double_value().

int printf_value_cache::elt_idx
private

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

Referenced by double_value().

int printf_value_cache::n_elts
private

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

Referenced by double_value().

int printf_value_cache::n_vals
private

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

int printf_value_cache::val_idx
private

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

Referenced by double_value(), and string_value().

const octave_value_list printf_value_cache::values
private

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

Referenced by double_value(), and string_value().


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