Subversion Repositories gelsvn

Rev

Rev 667 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 667 Rev 677
Line 21... Line 21...
21
     with the index. */
21
     with the index. */
22
    template<typename T>
22
    template<typename T>
23
    class ItemID
23
    class ItemID
24
    {
24
    {
25
    public:
25
    public:
-
 
26
        typedef size_t IndexType;
-
 
27
 
26
        ItemID(): index(INVALID_INDEX){}
28
        ItemID(): index(INVALID_INDEX){}
27
 
29
 
28
        bool operator ==(const ItemID& other) const { return index == other.index; }
30
        bool operator ==(const ItemID& other) const { return index == other.index; }
29
        bool operator !=(const ItemID& other) const { return index != other.index; }
31
        bool operator !=(const ItemID& other) const { return index != other.index; }
30
        bool operator <(const ItemID& other) const { return index < other.index; }
32
        bool operator <(const ItemID& other) const { return index < other.index; }
-
 
33
        
-
 
34
        IndexType get_index() const { return index;}
31
		
35
		
32
    private:
36
    private:
33
        typedef size_t IndexType;
-
 
34
        static const IndexType INVALID_INDEX =  -1;
-
 
35
 
-
 
36
        IndexType index;
37
        IndexType index;
-
 
38
        static const IndexType INVALID_INDEX =  -1;
37
 
39
 
38
        explicit ItemID(IndexType _index): index(_index){}
40
        explicit ItemID(IndexType _index): index(_index){}
39
 
41
 
40
        friend class ConnectivityKernel;
42
        friend class ConnectivityKernel;
41
            
43