Go to the documentation of this file.
62 bool replacerConstructorBadStream =
false;
63 assert(replacerConstructorBadStream);
73 streamPosition_(replacer.streamPosition_),
74 reference_(replacer.reference_) {
134 "Can't replace object because of missing key.");
static BinaryStream * stream_
Stream for writing replacements.
static void addReplacement(ValueReplacer *obj)
static void initialize(BinaryStream &stream)
unsigned int writePosition()
virtual ValueReplacer * clone()=0
Creates dynamically allocated clone of object.
#define assert(condition)
static BinaryStream & stream()
unsigned int streamPosition_
File offset where replacement is done.
unsigned int streamPosition() const
virtual bool tryToReplace()=0
Does replacement if can. If can't returns false.
const SafePointable * reference_
Reference which to be written.
ValueReplacer(const SafePointable *obj)
const SafePointable * reference() const
static std::set< ValueReplacer * > replacements_
Replacements which should be done afterwards.