#include <StrMod/UseTrackingVisitor.h>
Inheritance diagram for strmod::strmod::UseTrackingVisitor:
Public Methods | |
| UseTrackingVisitor (bool ignorezeros=false) | |
| Constructor. | |
| virtual | ~UseTrackingVisitor () |
| Destructor. Doesn't do much. | |
| virtual int | AreYouA (const lcore::ClassIdent &cid) const |
| Asks if a class is of a particular type, or publicly derived from that type. | |
Static Public Attributes | |
| const STR_ClassIdent | identifier |
| Globally unique identifier for this class. | |
Protected Methods | |
| virtual const lcore::ClassIdent * | i_GetIdent () const |
| Returns the class identifier for the class the object actually is. | |
| const StrChunkPtr & | getParent () const |
| Retrieves the parent StrChunk of the currently visited chunk or piece of data. | |
| const LinearExtent::off_t | parentOffset () const |
| Retrieves the offset of where the currently visited chunk or piece of data is within its parent. | |
| void | startVisit (const StrChunkPtr &root) |
| Start a traversal of a chunk DAG. | |
Only overload these | |
Only overload these functions, not the various private visit* functions down below. | |
| virtual void | use_visitStrChunk (const StrChunkPtr &chunk, const LinearExtent &used)=0 throw (halt_visitation) |
| This is the Template Method function to visit a StrChunk. Called by the UseTracking machinery. | |
| virtual void | use_visitDataBlock (const void *start, size_t len, const void *realstart, size_t reallen)=0 throw (halt_visitation) |
| This is the Template Method function to visit an actual chunk of data. Called by the UseTracking machinery. | |
Definition at line 42 of file UseTrackingVisitor.h.
|
|
Constructor.
Definition at line 41 of file UseTrackingVisitor.cxx. |
|
|
Asks if a class is of a particular type, or publicly derived from that type. Overriden in every derived class (with a static identifier member) to compare against the identifier, then call the AreYouA methods of all the superclasses.
Reimplemented from strmod::strmod::ChunkVisitor. Reimplemented in strmod::strmod::ApplyVisitor_Base, and strmod::strmod::GraphVizVisitor. Definition at line 56 of file UseTrackingVisitor.h. |
|
|
Returns the class identifier for the class the object actually is. Should always be overridden in any class that has a static identifier member. Reimplemented from strmod::strmod::ChunkVisitor. Reimplemented in strmod::strmod::ApplyVisitor_Base, and strmod::strmod::GraphVizVisitor. Definition at line 61 of file UseTrackingVisitor.h. |
|
|
Start a traversal of a chunk DAG.
Definition at line 155 of file UseTrackingVisitor.h. |
|
||||||||||||||||||||
|
This is the Template Method function to visit an actual chunk of data. Called by the UseTracking machinery.
Implemented in strmod::strmod::ApplyVisitor_Base, strmod::strmod::ApplyVisitor< _Function >, and strmod::strmod::GraphVizVisitor. |
|
||||||||||||
|
This is the Template Method function to visit a StrChunk. Called by the UseTracking machinery.
Implemented in strmod::strmod::ApplyVisitor_Base, and strmod::strmod::GraphVizVisitor. |
|
|
Globally unique identifier for this class. Every class that might need to be identified should have a public static const identifier object in it. Reimplemented from strmod::strmod::ChunkVisitor. Reimplemented in strmod::strmod::ApplyVisitor_Base, and strmod::strmod::GraphVizVisitor. |
1.3-rc1