Home

StreamFinder Class Reference
[History]

Used by the DistributeStates function below to find the HISTORY_STREAM corresponding to a given entity. More...

#include <history.hxx>

Inheritance diagram for StreamFinder:

Inheritance graph
[legend]
Collaboration diagram for StreamFinder:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual HISTORY_STREAMfindStream (ENTITY *ent, LookStrategy strategy=LookNormal)=0
 Returns the HISTORY_STREAM for any entity.
virtual HISTORY_STREAMquick_findStream (ENTITY *ent)
 Returns the HISTORY_STREAM for any entity whose stream needs to be quickly determined and thix is check is very fast.
 StreamFinder ()
 C++ allocation constructor requests memory for this object.


Detailed Description

Used by the DistributeStates function below to find the HISTORY_STREAM corresponding to a given entity.


Role: This class is used by the DistributeStates function below to find the HISTORY_STREAM corresponding to a given entity. It gives a great deal of flexibility and supports a variety of usage scenarios. At the same time user needs to be careful during usage. This is a class, instead of function pointers, hence it can cache data or arguments without using the global data hack. Examples of implementations are:

See also:
HISTORY_MANAGER

Constructor & Destructor Documentation

StreamFinder::StreamFinder (  ) 

C++ allocation constructor requests memory for this object.


Member Function Documentation

virtual HISTORY_STREAM* StreamFinder::findStream ( ENTITY ent,
LookStrategy  strategy = LookNormal 
) [pure virtual]

Returns the HISTORY_STREAM for any entity.



Parameters:
ent Entity Object.
strategy Type of look strategy.

virtual HISTORY_STREAM* StreamFinder::quick_findStream ( ENTITY ent  )  [inline, virtual]

Returns the HISTORY_STREAM for any entity whose stream needs to be quickly determined and thix is check is very fast.



Parameters:
ent Entity Object.