Subversion Repositories gelsvn

Rev

Rev 546 | Rev 572 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 546 Rev 547
Line 30... Line 30...
30
        ItemID();
30
        ItemID();
31
 
31
 
32
        bool operator ==(const ItemID& other) const;
32
        bool operator ==(const ItemID& other) const;
33
        bool operator !=(const ItemID& other) const;
33
        bool operator !=(const ItemID& other) const;
34
        bool operator <(const ItemID& other) const;
34
        bool operator <(const ItemID& other) const;
35
		
35
 
-
 
36
		template<typename X>
36
		friend std::ostream& operator<<(std::ostream& os, const ItemID<FaceTag>&);
37
		friend std::ostream& operator<<(std::ostream& os, const ItemID<X>&);
37
		
38
		
38
    private:
39
    private:
39
        typedef unsigned int IndexType;  
40
        typedef unsigned int IndexType;  
40
        static const IndexType INVALID_INDEX =  0xffffffff;
41
        static const IndexType INVALID_INDEX =  0xffffffff;
41
 
42
 
Line 73... Line 74...
73
 
74
 
74
    template<typename T>
75
    template<typename T>
75
    inline bool ItemID<T>::operator <(const ItemID& other) const
76
    inline bool ItemID<T>::operator <(const ItemID& other) const
76
    { return index < other.index; }
77
    { return index < other.index; }
77
 
78
 
-
 
79
	template<typename T>
78
	inline std::ostream& operator<<(std::ostream& os, const FaceID& iid)
80
	inline std::ostream& operator<<(std::ostream& os, const ItemID<T>& iid)
79
	{
81
	{
80
		return (os << iid.index);
82
		return (os << iid.index);
81
	}
83
	}
82
	
84
	
83
}
85
}