cannam@86: The flow through the iterator in the C++ layer is similar to the C layer:
cannam@86:
Create a SimpleIterator instance
Check SimpleIterator::is_valid()
Call SimpleIterator::init() and check the return
Traverse and/or edit. Edits are written to file immediately.
Destroy the SimpleIterator instance
cannam@86:
cannam@86: The ownership of pointers in the C++ layer follows that in the C layer, i.e.
cannam@86:
The objects returned by get_block() are yours to modify, but changes are not reflected in the FLAC file until you call set_block(). The objects are also yours to delete; they are not automatically deleted when passed to set_block() or insert_block_after().