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