Public Member Functions | Private Member Functions | Private Attributes

printf_format_list Class Reference

#include "oct-stream.h"

Collaboration diagram for printf_format_list:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 printf_format_list (const std::string &fmt=std::string())
 ~printf_format_list (void)
const printf_format_eltcurrent (void) const
const printf_format_eltfirst (void)
bool last_elt_p (void)
const printf_format_eltnext (bool cycle=true)
octave_idx_type num_conversions (void)
bool ok (void) const
 operator bool () const
void printme (void) const

Private Member Functions

 printf_format_list (const printf_format_list &)
void add_elt_to_list (int args, const std::string &flags, int fw, int prec, char type, char modifier, octave_idx_type &num_elts)
void finish_conversion (const std::string &s, size_t &i, int args, const std::string &flags, int fw, int prec, char modifier, char &type, octave_idx_type &num_elts)
printf_format_listoperator= (const printf_format_list &)
void process_conversion (const std::string &s, size_t &i, size_t n, int &args, std::string &flags, int &fw, int &prec, char &modifier, char &type, octave_idx_type &num_elts)

Private Attributes

std::ostringstream * buf
octave_idx_type curr_idx
Array< printf_format_elt * > list
octave_idx_type nconv

Detailed Description

Definition at line 243 of file oct-stream.h.


Constructor & Destructor Documentation

printf_format_list::printf_format_list ( const std::string &  fmt = std::string ()  ) 

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

References add_elt_to_list(), buf, list, nconv, process_conversion(), and Array< T >::resize().

printf_format_list::~printf_format_list ( void   ) 

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

References Array< T >::length(), and list.

printf_format_list::printf_format_list ( const printf_format_list  )  [private]

Member Function Documentation

void printf_format_list::add_elt_to_list ( int  args,
const std::string &  flags,
int  fw,
int  prec,
char  type,
char  modifier,
octave_idx_type num_elts 
) [private]

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

References buf, Array< T >::length(), list, and Array< T >::resize().

Referenced by printf_format_list().

const printf_format_elt* printf_format_list::current ( void   )  const [inline]

Definition at line 261 of file oct-stream.h.

References Array< T >::elem(), and Array< T >::length().

void printf_format_list::finish_conversion ( const std::string &  s,
size_t &  i,
int  args,
const std::string &  flags,
int  fw,
int  prec,
char  modifier,
char type,
octave_idx_type num_elts 
) [private]

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

const printf_format_elt* printf_format_list::first ( void   )  [inline]

Definition at line 255 of file oct-stream.h.

Referenced by octave_base_stream::do_printf().

bool printf_format_list::last_elt_p ( void   )  [inline]

Definition at line 279 of file oct-stream.h.

References Array< T >::length().

const printf_format_elt* printf_format_list::next ( bool  cycle = true  )  [inline]

Definition at line 264 of file oct-stream.h.

References Array< T >::length().

Referenced by octave_base_stream::do_printf().

octave_idx_type printf_format_list::num_conversions ( void   )  [inline]

Definition at line 253 of file oct-stream.h.

Referenced by octave_base_stream::do_printf(), and octave_base_stream::printf().

bool printf_format_list::ok ( void   )  const [inline]

Definition at line 283 of file oct-stream.h.

printf_format_list::operator bool (  )  const [inline]

Definition at line 285 of file oct-stream.h.

printf_format_list& printf_format_list::operator= ( const printf_format_list  )  [private]
void printf_format_list::printme ( void   )  const
void printf_format_list::process_conversion ( const std::string &  s,
size_t &  i,
size_t  n,
int args,
std::string &  flags,
int fw,
int prec,
char modifier,
char type,
octave_idx_type num_elts 
) [private]

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

References nn.

Referenced by printf_format_list().


Member Data Documentation

std::ostringstream* printf_format_list::buf [private]

Definition at line 301 of file oct-stream.h.

Referenced by add_elt_to_list(), and printf_format_list().

Definition at line 294 of file oct-stream.h.

Definition at line 298 of file oct-stream.h.

Referenced by add_elt_to_list(), printf_format_list(), printme(), and ~printf_format_list().

Definition at line 291 of file oct-stream.h.

Referenced by printf_format_list().


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