Graphviz
13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
split.q.h
Go to the documentation of this file.
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
index.h
NODECARD
#define NODECARD
Definition
index.h:43
rectangle.h
SplitNode
void SplitNode(RTree_t *, Node_t *, Branch_t *, Node_t **)
Definition
split.q.c:35
METHODS
#define METHODS
Definition
split.q.h:25
SplitQ_t
struct split_q_s SplitQ_t
Branch
Definition
node.h:19
Node
Definition
node.h:24
PartitionVars
Definition
split.q.h:28
PartitionVars::cover
struct Rect cover[2]
Definition
split.q.h:32
PartitionVars::area
uint64_t area[2]
Definition
split.q.h:33
PartitionVars::partition
int partition[NODECARD+1]
Definition
split.q.h:29
PartitionVars::count
int count[2]
Definition
split.q.h:31
PartitionVars::taken
int taken[NODECARD+1]
Definition
split.q.h:30
RTree
Definition
index.h:65
Rect
Definition
rectangle.h:20
split_q_s
Definition
split.q.h:36
split_q_s::Partitions
struct PartitionVars Partitions[METHODS]
Definition
split.q.h:40
split_q_s::BranchBuf
struct Branch BranchBuf[NODECARD+1]
Definition
split.q.h:37
split_q_s::CoverSplitArea
uint64_t CoverSplitArea
Definition
split.q.h:39
split_q_s::CoverSplit
struct Rect CoverSplit
Definition
split.q.h:38
lib
label
split.q.h
Generated by
1.9.8