Adaptagrams
libcola
shapepair.h
1
/*
2
* vim: ts=4 sw=4 et tw=0 wm=0
3
*
4
* libcola - A library providing force-directed network layout using the
5
* stress-majorization method subject to separation constraints.
6
*
7
* Copyright (C) 2014 Monash University
8
*
9
* This library is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU Lesser General Public
11
* License as published by the Free Software Foundation; either
12
* version 2.1 of the License, or (at your option) any later version.
13
* See the file LICENSE.LGPL distributed with the library.
14
*
15
* This library is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
*
19
* Author(s): Michael Wybrow
20
*
21
*/
22
23
#ifndef COLA_SHAPEPAIR_H
24
#define COLA_SHAPEPAIR_H
25
26
namespace
cola
{
27
28
// A pair of indexes.
29
// Specified unordered but stored ordered so it can be compared and
30
// stored in a set.
31
//
32
class
ShapePair
33
{
34
public
:
35
ShapePair(
unsigned
ind1,
unsigned
ind2);
36
bool
operator<(
const
ShapePair& rhs)
const
;
37
unsigned
short
index1(
void
)
const
{
return
m_index1;}
38
unsigned
short
index2(
void
)
const
{
return
m_index2;}
39
40
private
:
41
unsigned
short
m_index1;
42
unsigned
short
m_index2;
43
};
44
45
46
};
47
48
#endif
49
cola
libcola: Force-directed network layout subject to separation constraints library. ...
Definition:
box.cpp:25
Generated on Thu Jan 17 2019 14:55:39 for Adaptagrams by
1.8.14