- protected:
- struct _TNode
- {
- TVertex Vertex;
- TVertex Parent;
- TOutputValue Cost;
- unsigned long FrontId;
- _TNode( const TVertex& v, const TVertex& p, const unsigned long& fId )
- {
- this->Vertex = v;
- this->Parent = p;
- this->FrontId = fId;
- this->Cost = TOutputValue( 0 );
- }
- bool operator<( const _TNode& b ) const
- {
- return( b.Cost < this->Cost );
- }
- };
-
- public:
- itkTypeMacro( Dijkstra, TFilter );
+ typedef typename Superclass::TQueue TQueue;
+ typedef typename Superclass::TQueueOrder TQueueOrder;
+ typedef typename Superclass::TWeightFunction TWeightFunction;