ObjFW  Diff

Differences From Artifact [44b277b096]:

To Artifact [35311fb8bd]:


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
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







-
+

-
+



-
+

-
+



-
+

-
+



-
+

-
+







-
+

-
+







-
+

-
+







-
+

-
+








-
+
+

-
+








-
+
+

-
+


-
+

-
+


-
+

-
+

/**
 * \return The OFNumber as a double
 */
- (double)asDouble;

/**
 * \param num The OFNumber to add
 * \return The OFNumber added with the specified OFNumber
 * \return A new autoreleased OFNumber added with the specified OFNumber
 */
- add: (OFNumber*)num;
- (OFNumber*)add: (OFNumber*)num;

/**
 * \param num The OFNumber to substract
 * \return The OFNumber subtracted by the specified OFNumber
 * \return A new autoreleased OFNumber subtracted by the specified OFNumber
 */
- subtract: (OFNumber*)num;
- (OFNumber*)subtract: (OFNumber*)num;

/**
 * \param num The OFNumber to multiply with
 * \return The OFNumber multiplied with the specified OFNumber
 * \return A new autoreleased OFNumber multiplied with the specified OFNumber
 */
- multiplyWith: (OFNumber*)num;
- (OFNumber*)multiplyWith: (OFNumber*)num;

/**
 * \param num The OFNumber to divide by
 * \return The OFNumber devided by the specified OFNumber
 * \return A new autoreleased OFNumber devided by the specified OFNumber
 */
- divideBy: (OFNumber*)num;
- (OFNumber*)divideBy: (OFNumber*)num;

/**
 * ANDs two OFNumbers, returning a new one.
 *
 * Does not work with floating point types!
 *
 * \param num The number to AND with.
 * \return The OFNumber ANDed with the specified OFNumber
 * \return A new autoreleased OFNumber ANDed with the specified OFNumber
 */
- and: (OFNumber*)num;
- (OFNumber*)and: (OFNumber*)num;

/**
 * ORs two OFNumbers, returning a new one.
 *
 * Does not work with floating point types!
 *
 * \param num The number to OR with.
 * \return The OFNumber ORed with the specified OFNumber
 * \return A new autoreleased OFNumber ORed with the specified OFNumber
 */
- or: (OFNumber*)num;
- (OFNumber*)or: (OFNumber*)num;

/**
 * XORs two OFNumbers, returning a new one.
 *
 * Does not work with floating point types!
 *
 * \param num The number to XOR with.
 * \return The OFNumber XORed with the specified OFNumber
 * \return A new autoreleased OFNumber XORed with the specified OFNumber
 */
- xor: (OFNumber*)num;
- (OFNumber*)xor: (OFNumber*)num;

/**
 * Bitshifts the OFNumber to the left by the specified OFNumber, returning a new
 * one.
 *
 * Does not work with floating point types!
 *
 * \param num The number of bits to shift to the left
 * \return The OFNumber bitshifted to the left with the specified OFNumber
 * \return A new autoreleased OFNumber bitshifted to the left with the
 *	   specified OFNumber
 */
- shiftLeft: (OFNumber*)num;
- (OFNumber*)shiftLeft: (OFNumber*)num;

/**
 * Bitshifts the OFNumber to the right by the specified OFNumber, returning a
 * new one.
 *
 * Does not work with floating point types!
 *
 * \param num The number of bits to shift to the right
 * \return The OFNumber bitshifted to the right with the specified OFNumber
 * \return A new autoreleased OFNumber bitshifted to the right with the
 *	   specified OFNumber
 */
- shiftRight: (OFNumber*)num;
- (OFNumber*)shiftRight: (OFNumber*)num;

/**
 * \return The OFNumber increased by one.
 * \return A new autoreleased OFNumber with the value increased by one.
 */
- increase;
- (OFNumber*)increase;

/**
 * \return The OFNumber decreased by one.
 * \return A new autoreleased OFNumber with the value decreased by one.
 */
- decrease;
- (OFNumber*)decrease;
@end