Public Types | Public Member Functions | Private Member Functions | Private Attributes

printf_value_cache Class Reference

Collaboration diagram for printf_value_cache:
Collaboration graph
[legend]

List of all members.

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 2195 of file oct-stream.cc.


Member Enumeration Documentation

Enumerator:
ok 
conversion_error 

Definition at line 2200 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 2219 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 2232 of file oct-stream.cc.

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

int printf_value_cache::int_value ( void   ) 

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

References curr_state, D_NINT(), double_value(), error_state, and NINT().

Referenced by octave_base_stream::do_printf().

printf_value_cache::operator bool (  )  const [inline]

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

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

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

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

Referenced by double_value().

const double* printf_value_cache::data [private]

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

Referenced by double_value().

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

Referenced by double_value().

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

Referenced by double_value().

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

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

Referenced by double_value(), and string_value().

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

Referenced by double_value(), and string_value().


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines