OpenASIP
2.0
|
#include <FileOffsetReplacer.hh>
Public Member Functions | |
FileOffsetReplacer (const SafePointable *obj) | |
virtual | ~FileOffsetReplacer () |
Public Member Functions inherited from TPEF::ValueReplacer | |
void | resolve () |
Protected Member Functions | |
virtual bool | tryToReplace () |
virtual ValueReplacer * | clone () |
Protected Member Functions inherited from TPEF::ValueReplacer | |
ValueReplacer (const SafePointable *obj) | |
ValueReplacer (const ValueReplacer &replacer) | |
virtual | ~ValueReplacer () |
const SafePointable * | reference () const |
unsigned int | streamPosition () const |
Private Member Functions | |
FileOffsetReplacer (const FileOffsetReplacer &replacer) | |
FileOffsetReplacer | operator= (const FileOffsetReplacer &) |
Additional Inherited Members | |
Static Public Member Functions inherited from TPEF::ValueReplacer | |
static void | finalize () |
static void | initialize (BinaryStream &stream) |
Static Protected Member Functions inherited from TPEF::ValueReplacer | |
static BinaryStream & | stream () |
Replaces object reference with file offset. File offset key must be stored in reference manager for that object whose file offset is written.
Definition at line 48 of file FileOffsetReplacer.hh.
TPEF::FileOffsetReplacer::FileOffsetReplacer | ( | const SafePointable * | obj | ) |
|
virtual |
|
private |
|
protectedvirtual |
Creates dynamically allocated copy of replacer.
Implements TPEF::ValueReplacer.
Definition at line 90 of file FileOffsetReplacer.cc.
References FileOffsetReplacer().
|
private |
|
protectedvirtual |
Tries to do replacement in to the stream.
Implements TPEF::ValueReplacer.
Definition at line 69 of file FileOffsetReplacer.cc.
References TPEF::ReferenceManager::FileOffsetKey::fileOffset(), TPEF::ReferenceManager::SafePointer::fileOffsetKeyFor(), TPEF::ValueReplacer::reference(), TPEF::BinaryStream::setWritePosition(), TPEF::ValueReplacer::stream(), TPEF::ValueReplacer::streamPosition(), and TPEF::BinaryStream::writeWord().