#include <collection.h>
This class is experimental.
Definition at line 355 of file collection.h.
Public Member Functions | |
Type manipulation | |
int | is_type (std::string stype) |
Return 0 if stype is a valid I/O type. | |
int | remove_type (std::string stype) |
Remove stype from the list of valid I/O types. | |
virtual int | clear_types () |
Remove all types in the list of valid I/O types. | |
void | type_summary (std::ostream *outs, bool pointers=false) |
Print a summary of valid types to the outs stream. | |
int | add_type (io_base *iop) |
Add an I/O type to the list. | |
Protected Types | |
typedef std::vector< io_base * > ::iterator | titer |
A useful definition for iterating through types. | |
Protected Member Functions | |
int | static_fout (coutput *co, out_file_format *out) |
Output the static information for the I/O types. | |
int | static_fout_restricted (coutput *co, out_file_format *out, std::set< std::string, string_comp > list) |
Output the static information for the I/O types not in the list. |
virtual int clear_types | ( | ) | [virtual] |
Remove all types in the list of valid I/O types.
This method is dangerous as it doesn't ensure that all collections are empty.
int remove_type | ( | std::string | stype | ) |
Remove stype
from the list of valid I/O types.
This method is dangerous, as it can't check to ensure that no collection has remaining objects of the type to be removed.
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.
Project hosting provided by
,
O2scl Sourceforge Project Page