/usr/lib/bouml/xmi2import/152704.bodies is in bouml-plugouts-src 4.21-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | class UmlBaseFragment
!!!265856.cpp!!! read_() : void
_name = UmlCom::read_string();
_x = (int) UmlCom::read_unsigned();
_y = (int) UmlCom::read_unsigned();
_w = (int) UmlCom::read_unsigned();
_h = (int) UmlCom::read_unsigned();
unsigned n = UmlCom::read_unsigned();
_compartments.resize(n);
for (unsigned rank = 0; rank != n; rank += 1) {
UmlFragmentCompartment * fc = new UmlFragmentCompartment();
_compartments.insert(rank, fc);
fc->read_(this, rank);
}
_compartments.setAutoDelete(TRUE);
_container = 0;
_refer = (UmlDiagram *) UmlBaseItem::read_();
_arguments = UmlCom::read_string();
!!!265856.java!!! read_() : void
_name = UmlCom.read_string();
_x = UmlCom.read_unsigned();
_y = UmlCom.read_unsigned();
_w = UmlCom.read_unsigned();
_h = UmlCom.read_unsigned();
int n = UmlCom.read_unsigned();
int rank;
_compartments = new UmlFragmentCompartment[n];
for (rank = 0; rank != n; rank += 1) {
UmlFragmentCompartment fc = new UmlFragmentCompartment();
_compartments[rank] = fc;
fc.read_(this, rank);
}
_refer = (UmlDiagram) UmlBaseItem.read_();
_arguments = UmlCom.read_string();
!!!278656.cpp!!! vcenter_(in rank : int) : int
int t = (rank == 0) ? _y : _compartments[rank - 1]->b();
return (t + _compartments[rank]->b())/2;
!!!278656.java!!! vcenter_(in rank : int) : int
int t = (rank == 0) ? _y : _compartments[rank - 1].b();
return (t + _compartments[rank].b())/2;
!!!278784.cpp!!! read_covered_(in instances : UmlClassInstanceReference) : void
unsigned n = UmlCom::read_unsigned();
unsigned rank;
_covered.resize(n);
for (rank = 0; rank != n; rank += 1)
_covered.insert(rank, instances[(void *) UmlCom::read_unsigned()]);
!!!278784.java!!! read_covered_(in instances : UmlClassInstanceReference) : void
int n = UmlCom.read_unsigned();
int rank;
_covered = new UmlClassInstanceReference[n];
for (rank = 0; rank != n; rank += 1)
_covered[rank] = (UmlClassInstanceReference) instances.get(new Integer(UmlCom.read_unsigned()));
!!!265984.cpp!!! get_container_(in x : int, in y : int, in w : int, in h : int, in fragments : UmlFragment) : UmlFragmentCompartment
UmlFragmentCompartment * r = 0;
int nf = fragments.count();
int frank;
for (frank = 0; frank != nf; frank += 1) {
const UmlBaseFragment * f = fragments[frank];
if ((x > f->_x) && (y > f->_y) &&
((x + w) < (f->_x + f->_w)) && ((y + h) < (f->_y + f->_h))) {
int y0 = f->_y;
int nfc = f->_compartments.count();
int fcrank;
for (fcrank = 0; fcrank != nfc; fcrank += 1) {
UmlFragmentCompartment * fc = f->_compartments[fcrank];
if ((y > y0) &&
((y + h) < fc->b()) &&
((r == 0) || fc->smaller(r))) {
r = fc;
break;
}
y0 = fc->b();
}
}
}
return r;
!!!265984.java!!! get_container_(in x : int, in y : int, in w : int, in h : int, in fragments : UmlFragment) : UmlFragmentCompartment
UmlFragmentCompartment r = null;
int nf = fragments.length;
int frank;
for (frank = 0; frank != nf; frank += 1) {
UmlBaseFragment f = fragments[frank];
if ((x > f._x) && (y > f._y) &&
((x + w) < (f._x + f._w)) && ((y + h) < (f._y + f._h))) {
int y0 = f._y;
int nfc = f._compartments.length;
int fcrank;
for (fcrank = 0; fcrank != nfc; fcrank += 1) {
UmlBaseFragmentCompartment fc = f._compartments[fcrank];
if ((y > y0) &&
((y + h) < fc.b()) &&
((r == null) || fc.smaller(r))) {
r = f._compartments[fcrank];
break;
}
y0 = fc.b();
}
}
}
return r;
!!!266112.cpp!!! compute_container_(in fragments : UmlFragment) : void
int rank = fragments.count();
while (rank-- != 0) {
UmlBaseFragment * f = fragments[rank];
UmlFragmentCompartment * fc = get_container_(f->_x, f->_y, f->_w, f->_h, fragments);
if (fc != 0) {
f->_container = fc;
fc->add_contained_((UmlFragment *) f);
}
}
!!!266112.java!!! compute_container_(in fragments : UmlFragment) : void
int rank = fragments.length;
while (rank-- != 0) {
UmlBaseFragment f = fragments[rank];
UmlFragmentCompartment fc = get_container_(f._x, f._y, f._w, f._h, fragments);
if (fc != null) {
f._container = fc;
fc.add_contained_((UmlFragment) f);
}
}
|