Inferno  0.2
UniqueFilter Struct Reference

Filter that only matches each Node one time, then not again until Reset() is called. More...

#include <walk.hpp>

Inheritance diagram for UniqueFilter:
[legend]
Collaboration diagram for UniqueFilter:
[legend]

List of all members.

Public Member Functions

virtual bool IsMatch (TreePtr< Node > context, TreePtr< Node > root)
void Reset ()

Public Attributes

Set< TreePtr< Node > > seen

Detailed Description

Filter that only matches each Node one time, then not again until Reset() is called.

Definition at line 112 of file walk.hpp.


Member Function Documentation

bool UniqueFilter::IsMatch ( TreePtr< Node context,
TreePtr< Node root 
) [virtual]

Implements Filter.

Definition at line 359 of file walk.cpp.

References ASSERT, Set< KEY >::IsExist(), and seen.

void UniqueFilter::Reset ( ) [inline]

Definition at line 116 of file walk.hpp.

References seen.

Referenced by Graph::operator()().


Member Data Documentation

Definition at line 117 of file walk.hpp.

Referenced by IsMatch(), and Reset().


The documentation for this struct was generated from the following files: