| 1 |
/************************************************************************* |
| 2 |
* Copyright (c) 2011 AT&T Intellectual Property |
| 3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
| 6 |
* https://www.eclipse.org/legal/epl-v10.html |
| 7 |
* |
| 8 |
* Contributors: Details at https://graphviz.org |
| 9 |
*************************************************************************/ |
| 10 |
|
| 11 |
#pragma once |
| 12 |
|
| 13 |
#ifdef __cplusplus |
| 14 |
extern "C" { |
| 15 |
#endif |
| 16 |
|
| 17 |
/*----------------------------------------------------------------------------- |
| 18 |
| Definitions and global variables. |
| 19 |
-----------------------------------------------------------------------------*/ |
| 20 |
#include <label/rectangle.h> |
| 21 |
#include <label/index.h> |
| 22 |
#include <stdint.h> |
| 23 |
|
| 24 |
#ifndef METHODS |
| 25 |
#define METHODS 1 |
| 26 |
#endif /*METHODS*/ |
| 27 |
/* variables for finding a partition */ |
| 28 |
struct PartitionVars { |
| 29 |
int partition[NODECARD + 1]; |
| 30 |
int taken[NODECARD + 1]; |
| 31 |
int count[2]; |
| 32 |
struct Rect cover[2]; |
| 33 |
uint64_t area[2]; |
| 34 |
}; |
| 35 |
|
| 36 |
typedef struct split_q_s { |
| 37 |
struct Branch BranchBuf[NODECARD + 1]; |
| 38 |
struct Rect CoverSplit; |
| 39 |
uint64_t CoverSplitArea; |
| 40 |
struct PartitionVars Partitions[METHODS]; |
| 41 |
} SplitQ_t; |
| 42 |
|
| 43 |
void SplitNode(RTree_t *, Node_t *, Branch_t *, Node_t **); |
| 44 |
|
| 45 |
#ifdef __cplusplus |
| 46 |
} |
| 47 |
#endif |