Subversion Repositories gelsvn

Rev

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

Rev 515 Rev 518
Line 10... Line 10...
10
 * ----------------------------------------------------------------------- */
10
 * ----------------------------------------------------------------------- */
11
 
11
 
12
#ifndef __HMESH_ITEMID_H__
12
#ifndef __HMESH_ITEMID_H__
13
#define __HMESH_ITEMID_H__
13
#define __HMESH_ITEMID_H__
14
 
14
 
15
#include <cstdint>
-
 
16
 
-
 
17
namespace HMesh
15
namespace HMesh
18
{
16
{
19
    typedef uint32_t IndexType;  
-
 
20
    const IndexType INVALID_INDEX =  UINT32_MAX;
-
 
21
 
-
 
22
    template<typename T>
17
    template<typename T>
23
    class ItemID
18
    class ItemID
24
    {
19
    {
25
    public:
20
    public:
26
        ItemID();
21
        ItemID();
Line 28... Line 23...
28
        bool operator ==(const ItemID& other) const;
23
        bool operator ==(const ItemID& other) const;
29
        bool operator !=(const ItemID& other) const;
24
        bool operator !=(const ItemID& other) const;
30
        bool operator <(const ItemID& other) const;
25
        bool operator <(const ItemID& other) const;
31
 
26
 
32
    private:
27
    private:
-
 
28
        typedef unsigned int IndexType;  
-
 
29
        static const IndexType INVALID_INDEX =  0xffffffff;
-
 
30
 
33
        ItemID(IndexType index);
31
        ItemID(IndexType index);
34
 
32
 
35
        friend class ConnectivityKernel;
33
        friend class ConnectivityKernel;
36
        template<typename ITEM, typename ITEMID>
34
        template<typename ITEM, typename ITEMID>
37
        friend class AttributeVector;
35
        friend class AttributeVector;