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 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><title>NEXUS CLASS LIBRARY: NxsDistancesBlock Class</title>
<style type="text/css">
<!--
@import url(ncl.css);
.quickref {font-family: Arial, sans-serif}
.public {font-weight: bold; color: black; background: white;}
.protected {font-weight: bold; color: teal; background: white;}
.private {font-weight: bold; color: red; background: white;}
.groupheading {font-size: large; font-weight: bold;}
.classy {font-family: Arial, sans-serif; color: navy;}
.variablename {font-weight: bold; color: maroon;}
-->
</style>
</head>
<body>
<table border="1" width="100%">
<tr><td>
<table border="0" width="100%">
<tr>
<td align="left"><span class="classy">NEXUS CLASS LIBRARY</span></td>
<td align="right"><span class="classy"><a href="v2.0index.html">home</a> | <a href="classes.html">classes</a> | <a href="functions.html">functions</a></span></td>
</tr>
</table>
</td></tr>
</table>
<h1>Class NxsDistancesBlock</h1>
<h2>Enums</h2>
<a href="#NxsDistancesBlockEnum"><span class="quickref">NxsDistancesBlockEnum</span></a>
<h2>Data Members</h2>
<a href="#diagonal"><span class="quickref">diagonal</span></a>, <a href="#interleave"><span class="quickref">interleave</span></a>, <a href="#labels"><span class="quickref">labels</span></a>, <a href="#matrix"><span class="quickref">matrix</span></a>, <a href="#missing"><span class="quickref">missing</span></a>, <a href="#nchar"><span class="quickref">nchar</span></a>, <a href="#newtaxa"><span class="quickref">newtaxa</span></a>, <a href="#ntax"><span class="quickref">ntax</span></a>, <a href="#taxa"><span class="quickref">taxa</span></a>, <a href="#taxonPos"><span class="quickref">taxonPos</span></a>, <a href="#triangle"><span class="quickref">triangle</span></a>
<h2>Member Functions</h2>
<a href="#GetDistance758"><span class="quickref">GetDistance</span></a><a href="#GetMissingSymbol774"><span class="quickref">, GetMissingSymbol</span></a><a href="#GetNchar749"><span class="quickref">, GetNchar</span></a><a href="#GetNtax741"><span class="quickref">, GetNtax</span></a><a href="#GetTriangle782"><span class="quickref">, GetTriangle</span></a><a href="#HandleDimensionsCommand61"><span class="quickref">, HandleDimensionsCommand</span></a><a href="#HandleFormatCommand134"><span class="quickref">, HandleFormatCommand</span></a><a href="#HandleMatrixCommand404"><span class="quickref">, HandleMatrixCommand</span></a><a href="#HandleNextPass253"><span class="quickref">, HandleNextPass</span></a><a href="#HandleTaxlabelsCommand478"><span class="quickref">, HandleTaxlabelsCommand</span></a><a href="#IsDiagonal814"><span class="quickref">, IsDiagonal</span></a><a href="#IsInterleave822"><span class="quickref">, IsInterleave</span></a><a href="#IsLabels830"><span class="quickref">, IsLabels</span></a><a href="#IsLowerTriangular806"><span class="quickref">, IsLowerTriangular</span></a><a href="#IsMissing839"><span class="quickref">, IsMissing</span></a><a href="#IsRectangular790"><span class="quickref">, IsRectangular</span></a><a href="#IsUpperTriangular798"><span class="quickref">, IsUpperTriangular</span></a><a href="#NxsDistancesBlock27"><span class="quickref">, NxsDistancesBlock</span></a><a href="#NxsDistancesBlock49"><span class="quickref">, ~NxsDistancesBlock</span></a><a href="#Read528"><span class="quickref">, Read</span></a><a href="#Report627"><span class="quickref">, Report</span></a><a href="#Reset707"><span class="quickref">, Reset</span></a><a href="#SetDistance856"><span class="quickref">, SetDistance</span></a><a href="#SetMissing875"><span class="quickref">, SetMissing</span></a><a href="#SetNchar892"><span class="quickref">, SetNchar</span></a>
<h2>Class Description</h2>
<p>
This class handles reading and storage for the NEXUS block DISTANCES. It overrides the member functions Read and Reset, which are abstract virtual functions in the base class <a href="NxsBlock.html">NxsBlock</a> . Below is a table showing the correspondence between the elements of a DISTANCES block and the variables and member functions that can be used to access each piece of information stored.<pre> NEXUS command Command attribute Data Members Member Functions
------------------------------------------------------------------------
DIMENSIONS NEWTAXA newtaxa
NTAX ntax GetNtax
NCHAR nchar GetNchar
FORMAT TRIANGLE triangle GetTriangle
IsUpperTriangular
IsLowerTriangular
IsRectangular
[NO]DIAGONAL diagonal IsDiagonal
[NO]LABELS labels IsLabels
MISSING missing GetMissingSymbol
INTERLEAVE interleave IsInterleave
TAXLABELS (stored in the (access through
<a href="NxsTaxaBlock.html">NxsTaxaBlock</a> data member taxa)
object)
MATRIX matrix GetDistance
IsMissing
SetMissing
SetDistance
------------------------------------------------------------------------
</pre>
<h3>Key to symbols and colors</h3>
<p><span class="public">public</span>, <span class="protected">protected</span>, <span class="private">private</span>, <code>A</code> = abstract, <code>C</code> = constructor, <code>D</code> = destructor, <code>I</code> = inline, <code>S</code> = static, <code>V</code> = virtual, <code>F</code> = friend</p>
<p> </p>
<center>
<table border="5" cellpadding="1" cellspacing="0" width="95%">
<tr bgcolor="#CCCCFF">
<td><span class="groupheading">Enums</span></td>
</tr>
</table>
<table border="1" cellpadding="3" cellspacing="0" width="95%">
<tr><td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td>
<table border="0" width="100%" cellpadding="1">
<tr>
<td align="left" width="25%"><code class="public"><a name="NxsDistancesBlockEnum">enum NxsDistancesBlockEnum</a></code></td>
<td></td>
</tr>
</table>
</td></tr>
<tr><td>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="15%"> </td>
<td align="left" colspan="2"><code>upper = 1</code></td>
</tr>
<tr>
<td width="15%"> </td>
<td width="10%"> </td>
<td>matrix is upper-triangular</td>
</tr>
</table>
</td></tr>
<tr><td>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="15%"> </td>
<td align="left" colspan="2"><code>lower = 2</code></td>
</tr>
<tr>
<td width="15%"> </td>
<td width="10%"> </td>
<td>matrix is lower-triangular</td>
</tr>
</table>
</td></tr>
<tr><td>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="15%"> </td>
<td align="left" colspan="2"><code>both = 3</code></td>
</tr>
<tr>
<td width="15%"> </td>
<td width="10%"> </td>
<td>matrix is rectangular</td>
</tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
</center>
<p> </p>
<center>
<table border="5" cellpadding="1" cellspacing="0" width="95%">
<tr bgcolor="#CCCCFF">
<td><span class="groupheading">Data Members</span></td>
</table>
<table border="1" cellpadding="3" cellspacing="0" width="95%">
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code> bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="private"><a name="diagonal">diagonal</a></code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>true if diagonal elements provided when reading in DISTANCES block</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code> bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="private"><a name="interleave">interleave</a></code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>true if interleave format used when reading in DISTANCES block</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code> bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="private"><a name="labels">labels</a></code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>true if taxon labels were provided when reading in DISTANCES block</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code> <a href="NxsDistanceDatum.html">NxsDistanceDatum</a></code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="private"><a name="matrix">**matrix</a></code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>the structure used for storing the pairwise distance matrix</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code> char</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="private"><a name="missing">missing</a></code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>the symbol used to represent missing data (e.g. '?')</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code> unsigned</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="private"><a name="nchar">nchar</a></code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>the number of characters used in generating the pairwise distances</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code> bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="private"><a name="newtaxa">newtaxa</a></code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>true if new taxa were named in this DISTANCES block</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code> unsigned</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="private"><a name="ntax">ntax</a></code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>number of taxa (determines dimensions of the matrix)</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code> <a href="NxsTaxaBlock.html">NxsTaxaBlock</a></code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="private"><a name="taxa">*taxa</a></code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>pointer to NxsTaxaBlock object that stores the taxon labels</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code> unsigned</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="private"><a name="taxonPos">*taxonPos</a></code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>array holding 0-offset index into the NxsTaxaBlock list of taxon labels (used to ensure that order of taxa is same for each interleaved block)</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code> int</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="private"><a name="triangle">triangle</a></code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>indicates whether matrix is upper triangular, lower triangular, or rectangular, taking on one of the elements of the NxsDistancesBlockEnum enumeration</dd></td>
</tr>
</table>
</td></tr>
</table>
</center>
<p> </p>
<center>
<table border="5" cellpadding="1" cellspacing="0" width="95%">
<tr bgcolor="#CCCCFF">
<td><span class="groupheading">Member Functions</span></td>
</table>
<table border="1" cellpadding="3" cellspacing="0" width="95%">
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>double</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="GetDistance758">GetDistance</a></code><code>(unsigned i, unsigned j)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns the value of the (<span class="variablename">i</span>, <span class="variablename">j</span>)th element of <span class="variablename">matrix</span>. Assumes <span class="variablename">i</span> and <span class="variablename">j</span> are both in the range [0..<span class="variablename">ntax</span>) and the distance stored at `matrix[i][j]' is not missing. Also assumes <span class="variablename">matrix</span> is not NULL.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>char</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="GetMissingSymbol774">GetMissingSymbol</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns the value of <span class="variablename">missing</span>.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>unsigned</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="GetNchar749">GetNchar</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns the value of nchar.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>unsigned</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="GetNtax741">GetNtax</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns the value of ntax.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>unsigned</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="GetTriangle782">GetTriangle</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns the value of <span class="variablename">triangle</span>.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>void</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="HandleDimensionsCommand61">HandleDimensionsCommand</a></code><code>(NxsToken &token)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Called when DIMENSIONS command needs to be parsed from within the DISTANCES block. Deals with everything after the token DIMENSIONS up to and including the semicolon that terminates the DIMENSIONS command.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>void</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="HandleFormatCommand134">HandleFormatCommand</a></code><code>(NxsToken &token)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Called when FORMAT command needs to be parsed from within the DISTANCES block. Deals with everything after the token FORMAT up to and including the semicolon that terminates the FORMAT command.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>void</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="HandleMatrixCommand404">HandleMatrixCommand</a></code><code>(NxsToken &token)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Called when MATRIX command needs to be parsed from within the DISTANCES block. Deals with everything after the token MATRIX up to and including the semicolon that terminates the MATRIX command.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="HandleNextPass253">HandleNextPass</a></code><code>(NxsToken &token, unsigned &offset)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Called from within HandleMatrix, this function is used to deal with interleaved matrices. It is called once for each pass through the taxa. The local variable <span class="variablename">jmax</span> records the number of columns read in the current interleaved page and is used to determine the offset used for j in subsequent pages.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>void</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="HandleTaxlabelsCommand478">HandleTaxlabelsCommand</a></code><code>(NxsToken &token)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Called when TAXLABELS command needs to be parsed from within the DISTANCES block. Deals with everything after the token TAXLABELS up to and including the semicolon that terminates the TAXLABELS command.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="IsDiagonal814">IsDiagonal</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns the value of diagonal.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="IsInterleave822">IsInterleave</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns the value of interleave.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="IsLabels830">IsLabels</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns the value of labels.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="IsLowerTriangular806">IsLowerTriangular</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns true if the value of triangle is NxsDistancesBlockEnum(lower), false otherwise.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="IsMissing839">IsMissing</a></code><code>(unsigned i, unsigned j)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns true if the (<span class="variablename">i</span>,<span class="variablename">j</span>)th distance is missing. Assumes <span class="variablename">i</span> and <span class="variablename">j</span> are both in the range [0..<span class="variablename">ntax</span>) and <span class="variablename">matrix</span> is not NULL.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="IsRectangular790">IsRectangular</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns true if the value of <span class="variablename">triangle</span> is NxsDistancesBlockEnum(both), false otherwise.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="IsUpperTriangular798">IsUpperTriangular</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns true if the value of triangle is NxsDistancesBlockEnum(upper), false otherwise.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>C</td>
<td> </td>
<td align="right" valign="top" width="15%"><code></code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="NxsDistancesBlock27">NxsDistancesBlock</a></code><code>(NxsTaxaBlock *t)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Sets <span class="variablename">id</span> to "DISTANCES", <span class="variablename">taxa</span> to <span class="variablename">t</span>, <span class="variablename">triangle</span> to `NxsDistancesBlockEnum::lower', <span class="variablename">missing</span> to '?', <span class="variablename">matrix</span> and <span class="variablename">taxonPos</span> to NULL, <span class="variablename">labels</span> and <span class="variablename">diagonal</span> to true, <span class="variablename">newtaxa</span> and <span class="variablename">interleave</span> to false, and <span class="variablename">ntax</span> and <span class="variablename">nchar</span> to 0. Assumes <span class="variablename">t</span> is non-NULL.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>D</td>
<td> </td>
<td align="right" valign="top" width="15%"><code></code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="NxsDistancesBlock49">~NxsDistancesBlock</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Deletes <span class="variablename">matrix</span> and <span class="variablename">taxonPos</span> arrays.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>V</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>void</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="Read528">Read</a></code><code>(NxsToken &token)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>This function provides the ability to read everything following the block name (which is read by the NEXUS object) to the end or endblock statement. Characters are read from the input stream in. Overrides the abstract virtual function in the base class.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>V</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>void</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="Report627">Report</a></code><code>(ostream &out)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>This function outputs a brief report of the contents of this taxa block. Overrides the abstract virtual function in the base class.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>V</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>void</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="Reset707">Reset</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Flushes taxonLabels and sets ntax to 0 in preparation for reading a new TAXA block.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>void</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="SetDistance856">SetDistance</a></code><code>(unsigned i, unsigned j, double d)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Sets the value of the (<span class="variablename">i</span>,<span class="variablename">j</span>)th matrix element to <span class="variablename">d</span> and <span class="variablename">missing</span> to false . Assumes <span class="variablename">i</span> and <span class="variablename">j</span> are both in the range [0..<span class="variablename">ntax</span>) and <span class="variablename">matrix</span> is not NULL.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>void</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="SetMissing875">SetMissing</a></code><code>(unsigned i, unsigned j)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Sets the value of the (<span class="variablename">i</span>, <span class="variablename">j</span>)th <span class="variablename">matrix</span> element to missing. Assumes <span class="variablename">i</span> and <span class="variablename">j</span> are both in the range [0..<span class="variablename">ntax</span>) and <span class="variablename">matrix</span> is not NULL.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>void</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="SetNchar892">SetNchar</a></code><code>(unsigned n)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Sets <span class="variablename">nchar</span> to <span class="variablename">n</span>.</dd></td>
</tr>
</table>
</td></tr>
</table>
</center>
|