CPN
Computational Process Networks
Main Page
Namespaces
Classes
Files
File List
File Members
lib
d4r
D4RTag.cc
Go to the documentation of this file.
1
//=============================================================================
2
// Computational Process Networks class library
3
// Copyright (C) 1997-2006 Gregory E. Allen and The University of Texas
4
//
5
// This library is free software; you can redistribute it and/or modify it
6
// under the terms of the GNU Library General Public License as published
7
// by the Free Software Foundation; either version 2 of the License, or
8
// (at your option) any later version.
9
//
10
// This library is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
// Library General Public License for more details.
14
//
15
// The GNU Public License is available in the file LICENSE, or you
16
// can write to the Free Software Foundation, Inc., 59 Temple Place -
17
// Suite 330, Boston, MA 02111-1307, USA, or you can find it on the
18
// World Wide Web at http://www.fsf.org.
19
//=============================================================================
23
#include "common_priv.h"
24
#include <
cpn/d4r/D4RTag.h
>
25
26
namespace
D4R {
27
28
bool
Tag::operator<
(
const
Tag
&t)
const
{
29
if
(
label
== t.
label
) {
30
return
priority
> t.
priority
;
31
}
else
{
32
return
label
< t.
label
;
33
}
34
}
35
36
bool
Tag::operator==
(
const
Tag
&t)
const
{
37
return
(
label
== t.
label
&&
priority
== t.
priority
);
38
}
39
}
D4RTag.h
D4R::Tag::operator<
bool operator<(const Tag &t) const
Definition:
D4RTag.cc:28
D4R::Tag::priority
uint128_t priority
Definition:
D4RTag.h:80
D4R::Tag::label
uint128_t label
Definition:
D4RTag.h:79
D4R::Tag::operator==
bool operator==(const Tag &t) const
Definition:
D4RTag.cc:36
D4R::Tag
Definition:
D4RTag.h:42
Generated by
1.8.5