GNU Octave  4.2.1
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 Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
octave::textscan_format_list Class Reference
Collaboration diagram for octave::textscan_format_list:
Collaboration graph

Public Member Functions

 textscan_format_list (const std::string &fmt=std::string(), const std::string &who="textscan")
 ~textscan_format_list (void)
const textscan_format_eltcurrent (void) const
const textscan_format_eltfirst (void)
const textscan_format_eltnext (bool cycle=true)
octave_idx_type num_conversions (void) const
size_t numel (void) const
bool ok (void) const
 operator const void * (void) const
std::list< octave_valueout_buf (void) const
void printme (void) const
int read_first_row (delimited_stream &is, textscan &ts)

Public Attributes

bool has_string
bool set_from_first
std::string who

Private Member Functions

 textscan_format_list (const textscan_format_list &)
void add_elt_to_list (unsigned int width, int prec, int bitwidth, octave_value val_type, bool discard, char type, const std::string &char_class=std::string())
int finish_conversion (const std::string &s, size_t &i, size_t n, unsigned int &width, int &prec, int &bitwidth, octave_value &val_type, bool discard, char &type)
textscan_format_listoperator= (const textscan_format_list &)
std::string parse_char_class (const std::string &pattern) const
void process_conversion (const std::string &s, size_t &i, size_t n)

Private Attributes

std::ostringstream buf
size_t curr_idx
std::deque< textscan_format_elt * > fmt_elts
octave_idx_type nconv
std::list< octave_valueoutput_container

Detailed Description

Definition at line 1690 of file

Constructor & Destructor Documentation

octave::textscan_format_list::textscan_format_list ( const std::string fmt = std::string (),
const std::string who = "textscan" 
octave::textscan_format_list::~textscan_format_list ( void  )

Definition at line 2045 of file

References numel().

octave::textscan_format_list::textscan_format_list ( const textscan_format_list )

Member Function Documentation

void octave::textscan_format_list::add_elt_to_list ( unsigned int  width,
int  prec,
int  bitwidth,
octave_value  val_type,
bool  discard,
char  type,
const std::string char_class = std::string () 

Definition at line 2057 of file

References string.

Referenced by finish_conversion(), and textscan_format_list().

const textscan_format_elt* octave::textscan_format_list::current ( void  ) const

Definition at line 1715 of file

References numel().

int octave::textscan_format_list::finish_conversion ( const std::string s,
size_t i,
size_t  n,
unsigned int width,
int prec,
int bitwidth,
octave_value val_type,
bool  discard,
char &  type 

Definition at line 2364 of file

References add_elt_to_list(), parse_char_class(), retval, and string.

Referenced by process_conversion().

const textscan_format_elt* octave::textscan_format_list::first ( void  )

Definition at line 1709 of file

Referenced by octave::textscan::read_format_once().

const textscan_format_elt* octave::textscan_format_list::next ( bool  cycle = true)

Definition at line 1720 of file

References numel().

Referenced by octave::textscan::read_format_once().

octave_idx_type octave::textscan_format_list::num_conversions ( void  ) const

Definition at line 1700 of file

Referenced by octave::textscan::do_scan().

size_t octave::textscan_format_list::numel ( void  ) const
bool octave::textscan_format_list::ok ( void  ) const

Definition at line 1737 of file

octave::textscan_format_list::operator const void * ( void  ) const

Definition at line 1739 of file

textscan_format_list& octave::textscan_format_list::operator= ( const textscan_format_list )
std::list<octave_value> octave::textscan_format_list::out_buf ( void  ) const

Definition at line 1752 of file

Referenced by octave::textscan::do_scan().

std::string octave::textscan_format_list::parse_char_class ( const std::string pattern) const

Definition at line 2277 of file

References retval, string, and warning_with_id().

Referenced by finish_conversion().

void octave::textscan_format_list::printme ( void  ) const
void octave::textscan_format_list::process_conversion ( const std::string s,
size_t i,
size_t  n 

Definition at line 2081 of file

References c, done, error(), finish_conversion(), octave_value(), and type.

Referenced by textscan_format_list().

int octave::textscan_format_list::read_first_row ( delimited_stream is,
textscan ts 

Member Data Documentation

std::ostringstream octave::textscan_format_list::buf

Definition at line 1770 of file

size_t octave::textscan_format_list::curr_idx

Definition at line 1761 of file

std::deque<textscan_format_elt*> octave::textscan_format_list::fmt_elts

Definition at line 1764 of file

bool octave::textscan_format_list::has_string

Definition at line 1748 of file

Referenced by octave::textscan::parse_options().

octave_idx_type octave::textscan_format_list::nconv

Definition at line 1758 of file

Referenced by read_first_row().

std::list<octave_value> octave::textscan_format_list::output_container

Definition at line 1767 of file

bool octave::textscan_format_list::set_from_first

Definition at line 1745 of file

Referenced by octave::textscan::do_scan().

std::string octave::textscan_format_list::who

Definition at line 1742 of file

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