#include <collection.h>
This class is automatically created, utilized, and destroyed by io_base.
Definition at line 257 of file collection.h.
Public Member Functions | |
int | add_type (io_base *iop) |
Add a type to the list. | |
int | is_type (io_base *iop) |
Return 0 if iop points to a valid type. | |
int | add_type (io_base *iop, const char *t) |
Add type iop to the manager assuming the type name t . | |
int | remove_type (io_base *iop) |
Remove a type from the list. | |
Protected Types | |
typedef std::vector < io_base * > ::iterator | titer |
A useful definition for iterating through types. | |
Protected Member Functions | |
io_base * | get_ptr (std::string stype) |
Get a pointer to type stype . | |
io_manager () | |
Empty constructor. | |
Protected Attributes | |
std::vector< io_base * > | tlist |
The list of types in the form of io_base pointers. |
int add_type | ( | io_base * | iop | ) |
Add a type to the list.
Unfortunately, add_type() cannot ensure that no type is added more than once, since the type is not specified until the entire constructor hierarchy has been executed and add_type() is called at the top of this hierarchy.
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