#include <StrMod/ApplyVisitor.h>
Inheritance diagram for strmod::strmod::ApplyVisitor_Base:

Public Methods | |
| ApplyVisitor_Base (const StrChunkPtr &chunk) | |
| This constructor will set up apply to visit the given chunk. | |
| ApplyVisitor_Base (const StrChunkPtr &chunk, LinearExtent &extent) | |
| This constructor will set up apply to visit the section of the given chunk described by extent. | |
| virtual | ~ApplyVisitor_Base () |
| Whee, its a destructor, and since this class has no state that won't destruct itself, it 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. | |
| void | apply () |
| Visits every data block according to the parameters given in the constructor. | |
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. | |
| virtual void | use_visitStrChunk (const StrChunkPtr &chunk, const LinearExtent &used) 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. | |
This defines functions that don't vary at all no matter what type you give to ApplyVisitor. This will result in less redundant code being duplicated for instances of ApplyVisitor<T> with different T.
Definition at line 46 of file ApplyVisitor.h.
|
|
This constructor will set up apply to visit the given chunk.
Definition at line 35 of file ApplyVisitor.cxx. |
|
||||||||||||
|
This constructor will set up apply to visit the section of the given chunk described by extent.
Definition at line 40 of file ApplyVisitor.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::UseTrackingVisitor. Definition at line 67 of file ApplyVisitor.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::UseTrackingVisitor. Definition at line 77 of file ApplyVisitor.h. |
|
||||||||||||||||||||
|
This is the Template Method function to visit an actual chunk of data. Called by the UseTracking machinery.
Implements strmod::strmod::UseTrackingVisitor. Implemented in strmod::strmod::ApplyVisitor< _Function >. |
|
||||||||||||
|
This is the Template Method function to visit a StrChunk. Called by the UseTracking machinery.
Implements strmod::strmod::UseTrackingVisitor. Definition at line 79 of file ApplyVisitor.h. |
|
|
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::UseTrackingVisitor. |
1.3-rc1