Changes in src/libcfa/iostream [6ba0659:d3b7937]
- File:
-
- 1 edited
-
src/libcfa/iostream (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/iostream
r6ba0659 rd3b7937 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Feb 17 14:04:24201613 // Update Count : 3212 // Last Modified On : Fri Jan 29 15:50:36 2016 13 // Update Count : 29 14 14 // 15 15 … … 22 22 23 23 context ostream( dtype ostype ) { 24 ostype *write( ostype *, const char *, streamsize_type ); 24 25 int fail( ostype * ); 25 int flush( ostype * );26 ostype * write( ostype *, const char *, streamsize_type );27 26 }; 27 28 28 context writeable( type T ) { 29 29 forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, T ); … … 52 52 53 53 // writes the range [begin, end) to the given stream 54 forall( type elt_type | writeable( elt_type ), type iterator_type | iterator( iterator_type, elt_type ), dtype os_type | ostream( os_type ) ) 54 forall( type elt_type | writeable( elt_type ), 55 type iterator_type | iterator( iterator_type, elt_type ), 56 dtype os_type | ostream( os_type ) ) 55 57 void write( iterator_type begin, iterator_type end, os_type *os ); 56 58 57 forall( type elt_type | writeable( elt_type ), type iterator_type | iterator( iterator_type, elt_type ), dtype os_type | ostream( os_type ) ) 59 forall( type elt_type | writeable( elt_type ), 60 type iterator_type | iterator( iterator_type, elt_type ), 61 dtype os_type | ostream( os_type ) ) 58 62 void write_reverse( iterator_type begin, iterator_type end, os_type *os ); 59 63 60 // ---------------------------------------64 //****************************************************************************** 61 65 62 66 context istream( dtype istype ) { 67 istype *read( istype *, char *, streamsize_type ); 68 istype *unread( istype *, char ); 63 69 int fail( istype * ); 64 70 int eof( istype * ); 65 istype * get( istype *, int * );66 istype * read( istype *, char *, streamsize_type );67 istype * ungetc( istype *, char );68 71 }; 69 72
Note:
See TracChangeset
for help on using the changeset viewer.