IMP logo
IMP Reference Guide  2.19.0
The Integrative Modeling Platform
io.h File Reference

Write/read the state of the particles to/from a buffer in memory. More...

#include <IMP/kernel_config.h>
#include "OptimizerState.h"
#include "internal/utility.h"
#include <boost/format.hpp>
+ Include dependency graph for io.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 IMP
 Base functionality and abstract base classes for representation, scoring and sampling.
 

Buffer I/O

Write/read the state of the particles to/from a buffer in memory.

Note
Not all particles need to have all the attributes, missing attributes will be skipped. However, the set of attributes must match on the write and read particles.
There is no handling of architectural issues. That is, this is only guaranteed to work if it is read and written on the same operating system and system bit length. We could probably fix this.
both these methods should be considered unstable.
Vector< char > IMP::write_particles_to_buffer (const ParticlesTemp &particles, const FloatKeys &keys)
 return a binary buffer with the data More...
 
void IMP::read_particles_from_buffer (const Vector< char > &buffer, const ParticlesTemp &particles, const FloatKeys &keys)
 load found attributes into the particles More...
 

Detailed Description

Write/read the state of the particles to/from a buffer in memory.

Copyright 2007-2022 IMP Inventors. All rights reserved.

Definition in file io.h.