Ignore:
Timestamp:
10/10/05 15:23:32 (19 years ago)
Author:
mattausch
Message:

queries are realized as templates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibility/include/DistanceQueue.h

    r87 r316  
    1717        a greater distance has a lower priority in the queue. 
    1818*/ 
    19 template <typename T> class GreaterDistance 
     19template <typename T> class GtDistance 
    2020{ 
    2121public: 
    22         GreaterDistance(HierarchyInterface *hierarchyInterface): mHierarchyInterface(hierarchyInterface) 
     22        GtDistance(HierarchyInterface *hierarchyInterface): mHierarchyInterface(hierarchyInterface) 
    2323        {} 
    2424         
     
    3434/** A priority queue where closer hierarchy nodes are given a higher priority. 
    3535*/ 
    36 typedef std::priority_queue<HierarchyNode *, std::vector<HierarchyNode *>, GreaterDistance<std::vector<HierarchyNode *>::value_type> > DistanceQueue; 
     36typedef std::priority_queue<HierarchyNode *, std::vector<HierarchyNode *>, GtDistance<std::vector<HierarchyNode *>::value_type> > DistanceQueue; 
    3737 
    3838} // namespace GtpVisibility 
Note: See TracChangeset for help on using the changeset viewer.