#include <collection.h>
Definition at line 1461 of file collection.h.
Public Member Functions | |
| int | object_out (std::string type, out_file_format *outs, void *op, int sz=0, int sz2=0, std::string name="") |
| Output an object. | |
Protected Types | |
|
typedef std::map< void *, pointer_output, ltptr > ::iterator | pmiter |
| A convenient iterator for the pointer list. | |
Protected Member Functions | |
| coutput (class collection *co) | |
| Create a new object from a pointer to a collection. | |
| int | pointer_lookup (void *vp, std::string &name, collection_entry *&ep) |
| Look for an object in the collection given a pointer. | |
| int | pointer_map_fout (out_file_format *out) |
| Output all of the remaining pointers to 'out'. | |
Protected Attributes | |
|
std::map< void *, pointer_output, ltptr > | ptr_map |
| The list pointers to object to be written to the file. | |
| collection * | cop |
| The pointer to the collection stored in the constructor. | |
| int | npointers |
| Keep track of the number of pointers added to ptr_map. | |
Data Structures | |
| struct | ltptr |
| Order the pointers by numeric value. More... | |
| int pointer_lookup | ( | void * | vp, | |
| std::string & | name, | |||
| collection_entry *& | ep | |||
| ) | [protected] |
Look for an object in the collection given a pointer.
Lookup the pointer vp in the collection, and return its name and collection_entry
int npointers [protected] |
Keep track of the number of pointers added to ptr_map.
These are counted for the purposes of making a unique name. This is initialized in fout() and incremented in io_base::pointer_out
Definition at line 1517 of file collection.h.
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