|
ADMB Documentation
-a65f1c97
|
#include <cifstrem.h>
Public Member Functions | |
| cifstream (const char *, int=std::ios_base::in, char cc= '#') | |
| virtual | ~cifstream () |
| Destructor. More... | |
| char * | comment () |
| Returns the last comment line. More... | |
| void | filter () |
| Move file pointer past comments and empty lines to next data field. More... | |
| adstring | get_file_name (void) |
| cifstream & | getline (char *, int, char= '\n') |
| void | open (const char *, int) |
| cifstream & | operator>> (const dvariable &z) |
| Reads input into var from comment formatted input file. More... | |
| cifstream & | operator>> (long long &i) |
| Reads to i from input cifstream. More... | |
| cifstream & | operator>> (const long long &i) |
| Reads to _i from input cifstream. More... | |
| cifstream & | operator>> (const long &i) |
| Reads to i from input cifstream. More... | |
| cifstream & | operator>> (const int &i) |
| Reads to i from input cifstream. More... | |
| cifstream & | operator>> (const double &x) |
| Reads to _x from input cifstream. More... | |
| cifstream & | operator>> (const float &x) |
| Reads to x from input cifstream. More... | |
| cifstream & | operator>> (char *x) |
| Reads to c from input cifstream. More... | |
| cifstream & | operator>> (const char *x) |
| Reads to c from input cifstream. More... | |
| cifstream & | operator>> (const adstring &x) |
| Reads to _s from input cifstream. More... | |
| cifstream & | operator>> (adstring &x) |
| Reads to s from input cifstream. More... | |
| cifstream & | operator>> (const line_adstring &x) |
| Reads to str from input cifstream. More... | |
| cifstream & | operator>> (line_adstring &x) |
| Reads to str from input cifstream. More... | |
| cifstream & | operator>> (const dvar_vector &z) |
| Reads input into var from comment formatted input file. More... | |
| cifstream & | operator>> (const dvector &z) |
| Reads values into dvec from cifstream. More... | |
| cifstream & | operator>> (const lvector &z) |
| Reads values into lvec from cifstream. More... | |
| cifstream & | operator>> (const ivector &z) |
| Reads values into ivec from istr. More... | |
| void | set_ignore_eof () |
| void | set_use_eof () |
| char * | signature () |
| Get the signature line of inputfile. More... | |
Private Member Functions | |
| void | get_field (char *s, int space_flag=0) |
| Extract a single field into s from data file. More... | |
| void | report_error (const char *s=NULL) |
| void | set_eof_bit (void) |
Private Attributes | |
| streambuf * | bp |
| char | COMMENT_CHAR |
| char | comment_line [SIGNATURE_LENGTH+1] |
| int | field |
| adstring | file_name |
| int | ignore_eof |
| int | line |
| char | signature_line [SIGNATURE_LENGTH+1] |
Definition at line 117 of file cifstrem.h.
| cifstream::cifstream | ( | const char * | fn, |
| int | open_m = std::ios_base::in, |
||
| char | cc = '#' |
||
| ) |
Definition at line 86 of file cifstrem.cpp.
|
virtual |
Destructor.
Definition at line 27 of file cifstrem.cpp.
|
inline |
Returns the last comment line.
Definition at line 177 of file cifstrem.h.
| void cifstream::filter | ( | ) |
Move file pointer past comments and empty lines to next data field.
Also, sets comment_line and signature_line instances if found.
Definition at line 124 of file cifstrem.cpp.
Referenced by init_line_adstring::allocate(), get_field(), getline(), and operator>>().
|
private |
Extract a single field into s from data file.
| s | stores the data field |
| space_flag | includes spaces in data field when active. (default off) |
Definition at line 171 of file cifstrem.cpp.
Referenced by operator>>().
| adstring cifstream::get_file_name | ( | void | ) |
Definition at line 81 of file cifstrem.cpp.
Referenced by param_init_vector::allocate(), param_init_bounded_vector::allocate(), param_init_number::allocate(), param_init_bounded_number::allocate(), and param_init_matrix::allocate().
| cifstream & cifstream::getline | ( | char * | s, |
| int | k, | ||
| char | d = '\n' |
||
| ) |
Definition at line 473 of file cifstrem.cpp.
Referenced by init_line_adstring::allocate(), and operator>>().
| void cifstream::open | ( | const char * | , |
| int | |||
| ) |
Reads input into var from comment formatted input file.
| var | dvariable |
Definition at line 25 of file dfadcif.cpp.
Referenced by operator>>().
| cifstream & cifstream::operator>> | ( | long long & | i | ) |
| cifstream & cifstream::operator>> | ( | const long long & | _i | ) |
Reads to _i from input cifstream.
| _i | long long |
Definition at line 323 of file cifstrem.cpp.
| cifstream & cifstream::operator>> | ( | const long & | i | ) |
| cifstream & cifstream::operator>> | ( | const int & | i | ) |
| cifstream & cifstream::operator>> | ( | const double & | _x | ) |
| cifstream & cifstream::operator>> | ( | const float & | x | ) |
| cifstream & cifstream::operator>> | ( | char * | c | ) |
| cifstream & cifstream::operator>> | ( | const char * | c | ) |
Reads to _s from input cifstream.
| _s | adstring |
Definition at line 235 of file cifstrem.cpp.
| cifstream & cifstream::operator>> | ( | const line_adstring & | str | ) |
Reads to str from input cifstream.
| str | line_adstring |
Definition at line 262 of file cifstrem.cpp.
| cifstream & cifstream::operator>> | ( | line_adstring & | str | ) |
Reads to str from input cifstream.
| str | line_adstring |
Definition at line 249 of file cifstrem.cpp.
| cifstream & cifstream::operator>> | ( | const dvar_vector & | varvec | ) |
Reads input into var from comment formatted input file.
| var | dvar_vector |
Definition at line 35 of file dfadcif.cpp.
Reads values into dvec from cifstream.
| dvec | dvector |
Definition at line 53 of file ad_cif.cpp.
Reads values into lvec from cifstream.
| lvec | lvector |
Definition at line 37 of file ad_cif.cpp.
Reads values into ivec from istr.
| istr | comment formatted input stream |
| ivec | ivector |
Definition at line 172 of file ad_cif.cpp.
|
private |
Definition at line 519 of file cifstrem.cpp.
Referenced by filter(), get_field(), and operator>>().
|
private |
Definition at line 30 of file cifstrem.cpp.
Referenced by filter(), and get_field().
|
inline |
Definition at line 206 of file cifstrem.h.
|
inline |
Definition at line 207 of file cifstrem.h.
| char * cifstream::signature | ( | ) |
Get the signature line of inputfile.
Definition at line 44 of file cifstrem.cpp.
|
private |
Definition at line 119 of file cifstrem.h.
Referenced by filter(), get_field(), getline(), and signature().
|
private |
Definition at line 120 of file cifstrem.h.
|
private |
Definition at line 121 of file cifstrem.h.
Referenced by comment(), filter(), and signature().
|
private |
Definition at line 125 of file cifstrem.h.
Referenced by filter(), and get_field().
|
private |
Definition at line 123 of file cifstrem.h.
Referenced by get_file_name().
|
private |
Definition at line 126 of file cifstrem.h.
Referenced by set_ignore_eof(), and set_use_eof().
|
private |
Definition at line 124 of file cifstrem.h.
Referenced by filter(), operator>>(), and signature().
|
private |
Definition at line 122 of file cifstrem.h.
Referenced by filter(), and signature().
|
|
Generated on Wed Sep 7 2022 00:01:32 for ADMB Documentation by 1.8.5
|