/usr/lib/emboss/include/ajarr.h is in emboss-lib 6.6.0-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 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 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 | /* @include ajarr *************************************************************
**
** AJAX ARRAY functions
**
** These functions control all aspects of AJAX array utilities
**
** @author Copyright (C) 1999 Alan Bleasby
** @version $Revision: 1.16 $
** @modified Mar 12 1999 ajb First version
** @modified May 10 2000 ajb added dynamically allocated numeric arrays
** @modified $Date: 2011/10/18 14:23:40 $ by $Author: rice $
** @@
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public
** License as published by the Free Software Foundation; either
** version 2.1 of the License, or (at your option) any later version.
**
** This library is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
** Lesser General Public License for more details.
**
** You should have received a copy of the GNU Lesser General Public
** License along with this library; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
** MA 02110-1301, USA.
**
******************************************************************************/
#ifndef AJARR_H
#define AJARR_H
/* ========================================================================= */
/* ============================= include files ============================= */
/* ========================================================================= */
#include "ajdefine.h"
#include "ajstr.h"
#include <sys/types.h>
AJ_BEGIN_DECLS
/* ========================================================================= */
/* =============================== constants =============================== */
/* ========================================================================= */
/* ========================================================================= */
/* ============================== public data ============================== */
/* ========================================================================= */
/* @data AjPChar **************************************************************
**
** Ajax character object.
**
** Holds a character array with additional data.
** The length is known and held internally.
**
** Saves on length calculation, and allows growth in reserved memory without
** changing the pointer in the calling routine.
**
** AjPChar is implemented as a pointer to a C data structure.
**
** @alias AjSChar
** @alias AjOChar
**
** @new ajChararrNew Default constructor
** @new ajChararrNewL Constructor with reserved size
** @delete ajChararrDel Default destructor
** @cast ajChararrGet Retrieve a character from an array
** @modify ajChararrPut Load a character array element
** @cast ajChararrChararr Retrieve internal pointer
**
** @attr Res [ajuint] Reserved space in case of extension
** @attr Len [ajuint] Actual length used
** @attr Ptr [char*] Array of characters
** @@
******************************************************************************/
typedef struct AjSChar
{
ajuint Res;
ajuint Len;
char *Ptr;
} AjOChar;
#define AjPChar AjOChar*
/* @data AjPInt ***************************************************************
**
** Ajax integer object.
**
** Holds an integer array with additional data.
** The length is known and held internally.
**
** AjPInt is implemented as a pointer to a C data structure.
**
** @alias AjSInt
** @alias AjOInt
**
** @new ajIntNew Default constructor
** @new ajIntNewL Constructor with reserved size
** @delete ajIntDel Default destructor
** @cast ajIntGet Retrieve an integer from an array
** @modify ajIntPut Load an integer array element
** @cast ajIntInt Retrieve internal pointer
**
** @attr Res [ajuint] Reserved space in case of extension
** @attr Len [ajuint] Actual length used
** @attr Ptr [ajint*] Array of integers
** @@
******************************************************************************/
typedef struct AjSInt
{
ajuint Res;
ajuint Len;
ajint *Ptr;
} AjOInt;
#define AjPInt AjOInt*
/* @data AjPInt2d *************************************************************
**
** Ajax 2d integer object.
**
** Holds an integer array with additional data.
** The length is known and held internally.
**
** AjPInt2d is implemented as a pointer to a C data structure.
**
** @alias AjSInt2d
** @alias AjOInt2d
**
** @new ajInt2dNew Default constructor
** @new ajInt2dNewL Constructor with reserved size
** @delete ajInt2dDel Default destructor
** @cast ajInt2dGet Retrieve an integer from an array
** @modify ajInt2dPut Load an integer array element
** @cast ajInt2dInt Retrieve internal pointer
**
** @attr Res [ajuint] Reserved space in case of extension
** @attr Len [ajuint] Actual length used
** @attr Ptr [AjPInt*] Array of integer arrays
** @@
******************************************************************************/
typedef struct AjSInt2d
{
ajuint Res;
ajuint Len;
AjPInt *Ptr;
} AjOInt2d;
#define AjPInt2d AjOInt2d*
/* @data AjPInt3d *************************************************************
**
** Ajax 3d integer object.
**
** Holds an integer array with additional data.
** The length is known and held internally.
**
** AjPInt3d is implemented as a pointer to a C data structure.
**
** @alias AjSInt3d
** @alias AjOInt3d
**
** @new ajInt3dNew Default constructor
** @new ajInt3dNewL Constructor with reserved size
** @delete ajInt3dDel Default destructor
** @cast ajInt3dGet Retrieve an integer from an array
** @modify ajInt3dPut Load an integer array element
** @cast ajInt3dInt Retrieve internal pointer
**
** @attr Res [ajuint] Reserved space in case of extension
** @attr Len [ajuint] Actual length used
** @attr Ptr [AjPInt2d*] Array of 2d integer arrays
** @@
******************************************************************************/
typedef struct AjSInt3d
{
ajuint Res;
ajuint Len;
AjPInt2d *Ptr;
} AjOInt3d;
#define AjPInt3d AjOInt3d*
/* @data AjPFloat *************************************************************
**
** Ajax float object.
**
** Holds a float array with additional data.
** The length is known and held internally.
**
** AjPFloat is implemented as a pointer to a C data structure.
**
** @alias AjSFloat
** @alias AjOFloat
**
** @new ajFloatNew Default constructor
** @new ajFloatNewL Constructor with reserved size
** @delete ajFloatDel Default destructor
** @cast ajFloatGet Retrieve a float from an array
** @modify ajFloatPut Load a float array element
** @cast ajFloatFloat Retrieve internal pointer
**
** @attr Res [ajuint] Reserved space in case of extension
** @attr Len [ajuint] Actual length used
** @attr Ptr [float*] Array of floats
** @@
******************************************************************************/
typedef struct AjSFloat
{
ajuint Res;
ajuint Len;
float *Ptr;
} AjOFloat;
#define AjPFloat AjOFloat*
/* @data AjPFloat2d ***********************************************************
**
** Ajax 2d float object.
**
** Holds a 2d float array with additional data.
** The length is known and held internally.
**
** AjPFloat2d is implemented as a pointer to a C data structure.
**
** @alias AjSFloat2d
** @alias AjOFloat2d
**
** @new ajFloat2dNew Default constructor
** @new ajFloat2dNewL Constructor with reserved size
** @delete ajFloat2dDel Default destructor
** @cast ajFloat2dGet Retrieve a float from an array
** @modify ajFloat2dPut Load a float array element
** @cast ajFloat2dFloat Retrieve internal pointer
**
** @attr Res [ajuint] Reserved space in case of extension
** @attr Len [ajuint] Actual length used
** @attr Ptr [AjPFloat*] Array of float arrays
** @@
******************************************************************************/
typedef struct AjSFloat2d
{
ajuint Res;
ajuint Len;
AjPFloat *Ptr;
} AjOFloat2d;
#define AjPFloat2d AjOFloat2d*
/* @data AjPFloat3d ***********************************************************
**
** Ajax 3d float object.
**
** Holds a 3d float array with additional data.
** The length is known and held internally.
**
** AjPFloat3d is implemented as a pointer to a C data structure.
**
** @alias AjSFloat3d
** @alias AjOFloat3d
**
** @new ajFloat3dNew Default constructor
** @new ajFloat3dNewL Constructor with reserved size
** @delete ajFloat3dDel Default destructor
** @cast ajFloat3dGet Retrieve a float from an array
** @modify ajFloat3dPut Load a float array element
** @cast ajFloat3dFloat Retrieve internal pointer
**
** @attr Res [ajuint] Reserved space in case of extension
** @attr Len [ajuint] Actual length used
** @attr Ptr [AjPFloat2d*] Array of 2d float arrays
** @@
******************************************************************************/
typedef struct AjSFloat3d
{
ajuint Res;
ajuint Len;
AjPFloat2d *Ptr;
} AjOFloat3d;
#define AjPFloat3d AjOFloat3d*
/* @data AjPDouble ************************************************************
**
** Ajax double object.
**
** Holds a double array with additional data.
** The length is known and held internally.
**
** AjPDouble is implemented as a pointer to a C data structure.
**
** @alias AjSDouble
** @alias AjODouble
**
** @new ajDoubleNew Default constructor
** @new ajDoubleNewL Constructor with reserved size
** @delete ajDoubleDel Default destructor
** @cast ajDoubleGet Retrieve a double from an array
** @modify ajDoublePut Load a double array element
** @cast ajDoubleDouble Retrieve internal pointer
**
** @attr Res [ajuint] Reserved space in case of extension
** @attr Len [ajuint] Actual length used
** @attr Ptr [double*] Array of doubles
** @@
******************************************************************************/
typedef struct AjSDouble
{
ajuint Res;
ajuint Len;
double *Ptr;
} AjODouble;
#define AjPDouble AjODouble*
/* @data AjPDouble2d **********************************************************
**
** Ajax 2d double object.
**
** Holds a 2d double array with additional data.
** The length is known and held internally.
**
** AjPDouble2d is implemented as a pointer to a C data structure.
**
** @alias AjSDouble2d
** @alias AjODouble2d
**
** @new ajDouble2dNew Default constructor
** @new ajDouble2dNewL Constructor with reserved size
** @delete ajDouble2dDel Default destructor
** @cast ajDouble2dGet Retrieve a double from an array
** @modify ajDouble2dPut Load a double array element
** @cast ajDouble2dDouble Retrieve internal pointer
**
** @attr Res [ajuint] Reserved space in case of extension
** @attr Len [ajuint] Actual length used
** @attr Ptr [AjPDouble*] Array of double arrays
** @@
******************************************************************************/
typedef struct AjSDouble2d
{
ajuint Res;
ajuint Len;
AjPDouble *Ptr;
} AjODouble2d;
#define AjPDouble2d AjODouble2d*
/* @data AjPDouble3d **********************************************************
**
** Ajax 3d double object.
**
** Holds a 3d double array with additional data.
** The length is known and held internally.
**
** AjPDouble3d is implemented as a pointer to a C data structure.
**
** @alias AjSDouble3d
** @alias AjODouble3d
**
** @new ajDouble3dNew Default constructor
** @new ajDouble3dNewL Constructor with reserved size
** @delete ajDouble3dDel Default destructor
** @cast ajDouble3dGet Retrieve a double from an array
** @modify ajDouble3dPut Load a double array element
** @cast ajDouble3dDouble Retrieve internal pointer
**
** @attr Res [ajuint] Reserved space in case of extension
** @attr Len [ajuint] Actual length used
** @attr Ptr [AjPDouble2d*] Array of 2d double arrays
** @@
******************************************************************************/
typedef struct AjSDouble3d
{
ajuint Res;
ajuint Len;
AjPDouble2d *Ptr;
} AjODouble3d;
#define AjPDouble3d AjODouble3d*
/* @data AjPShort *************************************************************
**
** Ajax short object.
**
** Holds a short array with additional data.
** The length is known and held internally.
**
** AjPShort is implemented as a pointer to a C data structure.
**
** @alias AjSShort
** @alias AjOShort
**
** @new ajShortNew Default constructor
** @new ajShortNewL Constructor with reserved size
** @delete ajShortDel Default destructor
** @cast ajShortGet Retrieve a short from an array
** @modify ajShortPut Load a short array element
** @cast ajShortShort Retrieve internal pointer
**
** @attr Res [ajuint] Reserved space in case of extension
** @attr Len [ajuint] Actual length used
** @attr Ptr [short*] Array of shorts
** @@
******************************************************************************/
typedef struct AjSShort
{
ajuint Res;
ajuint Len;
short *Ptr;
} AjOShort;
#define AjPShort AjOShort*
/* @data AjPShort2d ***********************************************************
**
** Ajax 2d short object.
**
** Holds a 2d short array with additional data.
** The length is known and held internally.
**
** AjPShort2d is implemented as a pointer to a C data structure.
**
** @alias AjSShort2d
** @alias AjOShort2d
**
** @new ajShort2dNew Default constructor
** @new ajShort2dNewL Constructor with reserved size
** @delete ajShort2dDel Default destructor
** @cast ajShort2dGet Retrieve a short from an array
** @modify ajShort2dPut Load a short array element
** @cast ajShort2dShort Retrieve internal pointer
**
** @attr Res [ajuint] Reserved space in case of extension
** @attr Len [ajuint] Actual length used
** @attr Ptr [AjPShort*] Array of short arrays
** @@
******************************************************************************/
typedef struct AjSShort2d
{
ajuint Res;
ajuint Len;
AjPShort *Ptr;
} AjOShort2d;
#define AjPShort2d AjOShort2d*
/* @data AjPShort3d ***********************************************************
**
** Ajax 3d short object.
**
** Holds a 3d short array with additional data.
** The length is known and held internally.
**
** AjPShort3d is implemented as a pointer to a C data structure.
**
** @alias AjSShort3d
** @alias AjOShort3d
**
** @new ajShort3dNew Default constructor
** @new ajShort3dNewL Constructor with reserved size
** @delete ajShort3dDel Default destructor
** @cast ajShort3dGet Retrieve a short from an array
** @modify ajShort3dPut Load a short array element
** @cast ajShort3dShort Retrieve internal pointer
**
** @attr Res [ajuint] Reserved space in case of extension
** @attr Len [ajuint] Actual length used
** @attr Ptr [AjPShort2d*] Array of 2d short arrays
** @@
******************************************************************************/
typedef struct AjSShort3d
{
ajuint Res;
ajuint Len;
AjPShort2d *Ptr;
} AjOShort3d;
#define AjPShort3d AjOShort3d*
/* @data AjPLong **************************************************************
**
** Ajax ajlong object.
**
** Holds a ajlong array with additional data.
** The length is known and held internally.
**
** AjPLong is implemented as a pointer to a C data structure.
**
** @alias AjSLong
** @alias AjOLong
**
** @new ajLongNew Default constructor
** @new ajLongNewL Constructor with reserved size
** @delete ajLongDel Default destructor
** @cast ajLongGet Retrieve a ajlong from an array
** @modify ajLongPut Load a ajlong array element
** @cast ajLongLong Retrieve internal pointer
**
** @attr Res [ajuint] Reserved space in case of extension
** @attr Len [ajuint] Actual length used
** @attr Ptr [ajlong*] Array of longs
** @@
******************************************************************************/
typedef struct AjSLong
{
ajuint Res;
ajuint Len;
ajlong *Ptr;
} AjOLong;
#define AjPLong AjOLong*
/* @data AjPLong2d ************************************************************
**
** Ajax 2d ajlong object.
**
** Holds a 2d ajlong array with additional data.
** The length is known and held internally.
**
** AjPLong2d is implemented as a pointer to a C data structure.
**
** @alias AjSLong2d
** @alias AjOLong2d
**
** @new ajLong2dNew Default constructor
** @new ajLong2dNewL Constructor with reserved size
** @delete ajLong2dDel Default destructor
** @cast ajLong2dGet Retrieve a ajlong from an array
** @modify ajLong2dPut Load a ajlong array element
** @cast ajLong2dLong Retrieve internal pointer
**
** @attr Res [ajuint] Reserved space in case of extension
** @attr Len [ajuint] Actual length used
** @attr Ptr [AjPLong*] Array of long arrays
** @@
******************************************************************************/
typedef struct AjSLong2d
{
ajuint Res;
ajuint Len;
AjPLong *Ptr;
} AjOLong2d;
#define AjPLong2d AjOLong2d*
/* @data AjPLong3d ************************************************************
**
** Ajax 3d ajlong object.
**
** Holds a 3d ajlong array with additional data.
** The length is known and held internally.
**
** AjPLong3d is implemented as a pointer to a C data structure.
**
** @alias AjSLong3d
** @alias AjOLong3d
**
** @new ajLong3dNew Default constructor
** @new ajLong3dNewL Constructor with reserved size
** @delete ajLong3dDel Default destructor
** @cast ajLong3dGet Retrieve a ajlong from an array
** @modify ajLong3dPut Load a ajlong array element
** @cast ajLong3dLong Retrieve internal pointer
**
** @attr Res [ajuint] Reserved space in case of extension
** @attr Len [ajuint] Actual length used
** @attr Ptr [AjPLong2d*] Array of 2d long arrays
** @@
******************************************************************************/
typedef struct AjSLong3d
{
ajuint Res;
ajuint Len;
AjPLong2d *Ptr;
} AjOLong3d;
#define AjPLong3d AjOLong3d*
/* @data AjPUint **************************************************************
**
** Ajax unsigned integer object.
**
** Holds an unsigned integer array with additional data.
** The length is known and held internally.
**
** AjPUint is implemented as a pointer to a C data structure.
**
** @alias AjSUint
** @alias AjOUint
**
** @new ajUintNew Default constructor
** @new ajUintNewL Constructor with reserved size
** @delete ajUintDel Default destructor
** @cast ajUintGet Retrieve an integer from an array
** @modify ajUintPut Load an integer array element
** @cast ajUintUint Retrieve internal pointer
**
** @attr Res [ajuint] Reserved space in case of extension
** @attr Len [ajuint] Actual length used
** @attr Ptr [ajuint*] Array of integers
** @@
******************************************************************************/
typedef struct AjSUint
{
ajuint Res;
ajuint Len;
ajuint *Ptr;
} AjOUint;
#define AjPUint AjOUint*
/* @data AjPUint2d ************************************************************
**
** Ajax 2d unsigned integer object.
**
** Holds an unsigned integer array with additional data.
** The length is known and held internally.
**
** AjPUint2d is implemented as a pointer to a C data structure.
**
** @alias AjSUint2d
** @alias AjOUint2d
**
** @new ajUint2dNew Default constructor
** @new ajUint2dNewL Constructor with reserved size
** @delete ajUint2dDel Default destructor
** @cast ajUint2dGet Retrieve an integer from an array
** @modify ajUint2dPut Load an integer array element
** @cast ajIUint2dUint Retrieve internal pointer
**
** @attr Res [ajuint] Reserved space in case of extension
** @attr Len [ajuint] Actual length used
** @attr Ptr [AjPUint*] Array of integer arrays
** @@
******************************************************************************/
typedef struct AjSUint2d
{
ajuint Res;
ajuint Len;
AjPUint *Ptr;
} AjOUint2d;
#define AjPUint2d AjOUint2d*
/* @data AjPUint3d ************************************************************
**
** Ajax 3d unsigned integer object.
**
** Holds an unsigned integer array with additional data.
** The length is known and held internally.
**
** AjPUint3d is implemented as a pointer to a C data structure.
**
** @alias AjSUint3d
** @alias AjOUint3d
**
** @new ajUint3dNew Default constructor
** @new ajUint3dNewL Constructor with reserved size
** @delete ajUint3dDel Default destructor
** @cast ajUint3dGet Retrieve an integer from an array
** @modify ajUint3dPut Load an integer array element
** @cast ajUint3dUint Retrieve internal pointer
**
** @attr Res [ajuint] Reserved space in case of extension
** @attr Len [ajuint] Actual length used
** @attr Ptr [AjPUint2d*] Array of 2d integer arrays
** @@
******************************************************************************/
typedef struct AjSUint3d
{
ajuint Res;
ajuint Len;
AjPUint2d *Ptr;
} AjOUint3d;
#define AjPUint3d AjOUint3d*
/* ========================================================================= */
/* =========================== public functions ============================ */
/* ========================================================================= */
/*
** Prototype definitions
*/
void ajArrExit(void);
void ajDoubleDel(AjPDouble *thys);
double* ajDoubleDouble(const AjPDouble thys);
double ajDoubleGet(const AjPDouble thys, ajuint elem);
ajuint ajDoubleLen(const AjPDouble thys);
AjPDouble ajDoubleNew(void);
AjPDouble ajDoubleNewRes(ajuint size);
AjBool ajDoublePut(AjPDouble *thys, ajuint elem, double v);
void ajDouble2dDel(AjPDouble2d *thys);
double ajDouble2dGet(const AjPDouble2d thys, ajuint elem1, ajuint elem2);
double** ajDouble2dDouble(const AjPDouble2d thys);
void ajDouble2dLen(const AjPDouble2d thys, ajuint *len1, ajuint *len2);
AjPDouble2d ajDouble2dNew(void);
AjPDouble2d ajDouble2dNewRes(ajuint size);
AjBool ajDouble2dPut(AjPDouble2d *thys,
ajuint elem1, ajuint elem2, double v);
void ajDouble3dDel(AjPDouble3d *thys);
double ajDouble3dGet(const AjPDouble3d thys,
ajuint elem1, ajuint elem2, ajuint elem3);
double*** ajDouble3dDouble(const AjPDouble3d thys);
void ajDouble3dLen(const AjPDouble3d thys,
ajuint* len1, ajuint* len2, ajuint* len3);
AjPDouble3d ajDouble3dNew(void);
AjPDouble3d ajDouble3dNewRes(ajuint size);
AjBool ajDouble3dPut(AjPDouble3d *thys,
ajuint elem1, ajuint elem2, ajuint elem3,
double v);
void ajFloatDel(AjPFloat *thys);
float* ajFloatFloat(const AjPFloat thys);
float ajFloatGet(const AjPFloat thys, ajuint elem);
ajuint ajFloatLen(const AjPFloat thys);
AjPFloat ajFloatNew(void);
AjPFloat ajFloatNewRes(ajuint size);
AjBool ajFloatPut(AjPFloat *thys, ajuint elem, float v);
void ajFloat2dDel(AjPFloat2d *thys);
float ajFloat2dGet(const AjPFloat2d thys, ajuint elem1, ajuint elem2);
float** ajFloat2dFloat(const AjPFloat2d thys);
void ajFloat2dLen(const AjPFloat2d thys, ajuint *len1, ajuint *len2);
AjPFloat2d ajFloat2dNew(void);
AjPFloat2d ajFloat2dNewRes(ajuint size);
AjBool ajFloat2dPut(AjPFloat2d *thys,
ajuint elem1, ajuint elem2, float v);
void ajFloat3dDel(AjPFloat3d *thys);
float ajFloat3dGet(const AjPFloat3d thys,
ajuint elem1, ajuint elem2, ajuint elem3);
float*** ajFloat3dFloat(const AjPFloat3d thys);
void ajFloat3dLen(const AjPFloat3d thys,
ajuint* len1, ajuint* len2, ajuint* len3);
AjPFloat3d ajFloat3dNew(void);
AjPFloat3d ajFloat3dNewRes(ajuint size);
AjBool ajFloat3dPut(AjPFloat3d *thys,
ajuint elem1, ajuint elem2, ajuint elem3,
float v);
AjPChar ajChararrNew(void);
AjPChar ajChararrNewRes(ajuint size);
void ajChararrDel(AjPChar *thys);
char ajChararrGet(const AjPChar thys, ajuint elem);
AjBool ajChararrPut(AjPChar *thys, ajuint elem, char v);
char* ajChararrChararr(const AjPChar thys);
ajuint ajChararrLen(const AjPChar thys);
void ajIntDel(AjPInt *thys);
void ajIntDec(AjPInt *thys, ajuint elem);
ajint ajIntGet(const AjPInt thys, ajuint elem);
void ajIntInc(AjPInt *thys, ajuint elem);
ajint* ajIntInt(const AjPInt thys);
ajuint ajIntLen(const AjPInt thys);
AjPInt ajIntNew(void);
AjPInt ajIntNewRes(ajuint size);
AjBool ajIntPut(AjPInt *thys, ajuint elem, ajint v);
void ajInt2dDel(AjPInt2d *thys);
ajint ajInt2dGet(const AjPInt2d thys, ajuint elem1, ajuint elem2);
ajint** ajInt2dInt(const AjPInt2d thys);
void ajInt2dLen(const AjPInt2d thys, ajuint *len1, ajuint *len2);
AjPInt2d ajInt2dNew(void);
AjPInt2d ajInt2dNewRes(ajuint size);
AjPInt2d ajInt2dNewResRes2(ajuint size, ajuint size2);
AjBool ajInt2dPut(AjPInt2d *thys, ajuint elem1, ajuint elem2, ajint v);
void ajInt3dDel(AjPInt3d *thys);
ajint ajInt3dGet(const AjPInt3d thys, ajuint elem1, ajuint elem2,
ajuint elem3);
ajint*** ajInt3dInt(const AjPInt3d thys);
void ajInt3dLen(const AjPInt3d thys,
ajuint* len1, ajuint* len2, ajuint* len3);
AjPInt3d ajInt3dNew(void);
AjPInt3d ajInt3dNewRes(ajuint size);
AjBool ajInt3dPut(AjPInt3d *thys,
ajuint elem1, ajuint elem2, ajuint elem3, ajint v);
void ajLongDel(AjPLong *thys);
ajlong ajLongGet(const AjPLong thys, ajuint elem);
ajuint ajLongLen(const AjPLong thys);
ajlong* ajLongLong(const AjPLong thys);
AjPLong ajLongNew(void);
AjPLong ajLongNewRes(ajuint size);
AjBool ajLongPut(AjPLong *thys, ajuint elem, ajlong v);
void ajLong2dDel(AjPLong2d *thys);
ajlong ajLong2dGet(const AjPLong2d thys, ajuint elem1, ajuint elem2);
ajlong** ajLong2dLong(const AjPLong2d thys);
void ajLong2dLen(const AjPLong2d thys, ajuint *len1, ajuint *len2);
AjPLong2d ajLong2dNew(void);
AjPLong2d ajLong2dNewRes(ajuint size);
AjBool ajLong2dPut(AjPLong2d *thys, ajuint elem1, ajuint elem2, ajlong v);
void ajLong3dDel(AjPLong3d *thys);
ajlong ajLong3dGet(const AjPLong3d thys,
ajuint elem1, ajuint elem2, ajuint elem3);
void ajLong3dLen(const AjPLong3d thys,
ajuint* len1, ajuint* len2, ajuint* len3);
ajlong*** ajLong3dLong(const AjPLong3d thys);
AjPLong3d ajLong3dNew(void);
AjPLong3d ajLong3dNewRes(ajuint size);
AjBool ajLong3dPut(AjPLong3d *thys,
ajuint elem1, ajuint elem2, ajuint elem3,
ajlong v);
void ajShortDel(AjPShort *thys);
short ajShortGet(const AjPShort thys, ajuint elem);
ajuint ajShortLen(const AjPShort thys);
short* ajShortShort(const AjPShort thys);
AjPShort ajShortNew(void);
AjPShort ajShortNewRes(ajuint size);
AjBool ajShortPut(AjPShort *thys, ajuint elem, short v);
void ajShort2dDel(AjPShort2d *thys);
short ajShort2dGet(const AjPShort2d thys, ajuint elem1, ajuint elem2);
short** ajShort2dShort(const AjPShort2d thys);
void ajShort2dLen(const AjPShort2d thys, ajuint *len1, ajuint *len2);
AjPShort2d ajShort2dNew(void);
AjPShort2d ajShort2dNewRes(ajuint size);
AjBool ajShort2dPut(AjPShort2d *thys,
ajuint elem1, ajuint elem2, short v);
void ajShort3dDel(AjPShort3d *thys);
short ajShort3dGet(const AjPShort3d thys,
ajuint elem1, ajuint elem2, ajuint elem3);
void ajShort3dLen(const AjPShort3d thys,
ajuint* len1, ajuint* len2, ajuint* len3);
short*** ajShort3dShort(const AjPShort3d thys);
AjPShort3d ajShort3dNew(void);
AjPShort3d ajShort3dNewRes(ajuint size);
AjBool ajShort3dPut(AjPShort3d *thys,
ajuint elem1, ajuint elem2, ajuint elem3,
short v);
void ajUintDel(AjPUint *thys);
void ajUintDec(AjPUint *thys, ajuint elem);
ajuint ajUintGet(const AjPUint thys, ajuint elem);
void ajUintInc(AjPUint *thys, ajuint elem);
ajuint* ajUintUint(const AjPUint thys);
ajuint ajUintLen(const AjPUint thys);
AjPUint ajUintNew(void);
AjPUint ajUintNewRes(ajuint size);
AjBool ajUintPut(AjPUint *thys, ajuint elem, ajuint v);
void ajUint2dDel(AjPUint2d *thys);
ajuint ajUint2dGet(const AjPUint2d thys, ajuint elem1, ajuint elem2);
ajuint** ajUint2dUint(const AjPUint2d thys);
void ajUint2dLen(const AjPUint2d thys, ajuint *len1, ajuint *len2);
AjPUint2d ajUint2dNew(void);
AjPUint2d ajUint2dNewRes(ajuint size);
AjPUint2d ajUint2dNewResRes2(ajuint size, ajuint size2);
AjBool ajUint2dPut(AjPUint2d *thys, ajuint elem1, ajuint elem2, ajuint v);
void ajUint3dDel(AjPUint3d *thys);
ajuint ajUint3dGet(const AjPUint3d thys, ajuint elem1, ajuint elem2,
ajuint elem3);
ajuint*** ajUint3dUint(const AjPUint3d thys);
void ajUint3dLen(const AjPUint3d thys,
ajuint* len1, ajuint* len2, ajuint* len3);
AjPUint3d ajUint3dNew(void);
AjPUint3d ajUint3dNewRes(ajuint size);
AjBool ajUint3dPut(AjPUint3d *thys,
ajuint elem1, ajuint elem2, ajuint elem3, ajuint v);
AjBool ajFloatParse(const AjPStr str, AjPFloat *array);
void ajFloatStr(const AjPFloat array, ajint precision, AjPStr* str);
void ajFloatTrace(const AjPFloat array, ajint precision,
const char* text);
ajuint ajArrCommaList(const AjPStr s, AjPStr **a);
double* ajArrDoubleLine(const AjPStr line, const char *delim,
ajuint startcol, ajuint endcol);
ajint* ajArrIntLine(const AjPStr line, const char *delim,
ajuint startcol, ajuint endcol);
float* ajArrFloatLine(const AjPStr line, const char *delim,
ajuint startcol, ajuint endcol);
/*
** End of prototype definitions
*/
#ifdef AJ_COMPILE_DEPRECATED_BOOK
#endif /* AJ_COMPILE_DEPRECATED_BOOK */
#ifdef AJ_COMPILE_DEPRECATED
__deprecated AjPChar ajChararrNewL(ajuint size);
__deprecated AjPDouble ajDoubleNewL(ajuint size);
__deprecated AjPDouble2d ajDouble2dNewL(ajuint size);
__deprecated AjPDouble3d ajDouble3dNewL(ajuint size);
__deprecated AjPFloat ajFloatNewL(ajuint size);
__deprecated AjPFloat2d ajFloat2dNewL(ajuint size);
__deprecated AjPFloat3d ajFloat3dNewL(ajuint size);
__deprecated AjPInt ajIntNewL(ajuint size);
__deprecated AjPInt2d ajInt2dNewL(ajuint size);
__deprecated AjPInt2d ajInt2dNewLL(ajuint size, ajuint size2);
__deprecated AjPInt3d ajInt3dNewL(ajuint size);
__deprecated AjPLong ajLongNewL(ajuint size);
__deprecated AjPLong2d ajLong2dNewL(ajuint size);
__deprecated AjPLong3d ajLong3dNewL(ajuint size);
__deprecated AjPShort ajShortNewL(ajuint size);
__deprecated AjPShort2d ajShort2dNewL(ajuint size);
__deprecated AjPShort3d ajShort3dNewL(ajuint size);
__deprecated AjPUint ajUintNewL(ajuint size);
__deprecated AjPUint2d ajUint2dNewL(ajuint size);
__deprecated AjPUint2d ajUint2dNewLL(ajuint size, ajuint size2);
__deprecated AjPUint3d ajUint3dNewL(ajuint size);
#endif /* AJ_COMPILE_DEPRECATED */
AJ_END_DECLS
#endif /* !AJARR_H */
|