OpenASIP
2.0
|
#include <SectionIdReplacer.hh>
Public Member Functions | |
SectionIdReplacer (const SafePointable *obj) | |
virtual | ~SectionIdReplacer () |
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 | |
SectionIdReplacer (const SectionIdReplacer &replacer) | |
SectionIdReplacer | operator= (const SectionIdReplacer &) |
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 references with the section identification code that identifies the object. The reference manager must contain a SectionId key for the objects whose section identification code is written out.
Definition at line 47 of file SectionIdReplacer.hh.
TPEF::SectionIdReplacer::SectionIdReplacer | ( | const SafePointable * | obj | ) |
|
virtual |
|
private |
Copy constructor.
Definition at line 53 of file SectionIdReplacer.cc.
|
protectedvirtual |
Creates dynamically allocated copy of replacer.
Implements TPEF::ValueReplacer.
Definition at line 90 of file SectionIdReplacer.cc.
References SectionIdReplacer().
|
private |
|
protectedvirtual |
Tries to do replacement in to the stream.
Implements TPEF::ValueReplacer.
Definition at line 69 of file SectionIdReplacer.cc.
References TPEF::ValueReplacer::reference(), TPEF::ReferenceManager::SectionKey::sectionId(), TPEF::ReferenceManager::SafePointer::sectionKeyFor(), TPEF::BinaryStream::setWritePosition(), TPEF::ValueReplacer::stream(), TPEF::ValueReplacer::streamPosition(), and TPEF::BinaryStream::writeHalfWord().