FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSAMutableTuple Class Reference

Manages ordered collections of 2 objects. More...

#import <NSADataObject.h>

Inheritance diagram for NSAMutableTuple:
NSATuple <NSAMutableArrayLikeDataObject> <NSAArrayLikeDataObject> <NSAArrayLikeDataObject> <NSAMutableIndexedSubscript> <NSAIndexedSubscript> <NSAIndexedSubscript> <NSAIndexedSubscript>

Instance Methods

(void) - swap
 Swap first and second. More...
 
(void) - setTuple:
 Sets the receiving tuple's elements to those in another given tuple. More...
 
- Instance Methods inherited from NSATuple
(instancetype) - initWithFirst:second:
 Initilize a tuple containing first as first object and second as second object. More...
 
- Instance Methods inherited from <NSAArrayLikeDataObject>
(id) - objectAtIndex:
 Returns the object located at index. More...
 
(NSUInteger) - indexOfObject:
 Returns the lowest index whose corresponding member value is equal to a given object. More...
 
(BOOL) - containsObject:
 Returns a Boolean value that indicates whether a given object is present in the array. More...
 
(id) - :
 Returns the object located at index. Shortcut of objectAtIndex: More...
 
- Instance Methods inherited from <NSAIndexedSubscript>
(id) - objectAtIndexedSubscript:
 Returns the object located at the specified index. More...
 
- Instance Methods inherited from <NSAMutableArrayLikeDataObject>
(void) - replaceObjectAtIndex:withObject:
 Replaces the object at index with anObject. More...
 
- Instance Methods inherited from <NSAMutableIndexedSubscript>
(void) - setObject:atIndexedSubscript:
 Replaces the object at the index with the new object, possibly adding the object. More...
 

Properties

id first
 first object More...
 
id second
 second object More...
 
- Properties inherited from NSATuple
id first
 first object More...
 
id second
 second object More...
 
- Properties inherited from <NSAArrayLikeDataObject>
NSUInteger count
 Returns the number of objects currently in the data object. More...
 
NSArray * allObjects
 Returns an array containing the container’s members, or an empty array if the container has no members. More...
 

Additional Inherited Members

- Class Methods inherited from NSATuple
(instancetype) + tuple
 Creates and returns an empty tuple. More...
 
(instancetype) + tupleWithFirst:second:
 Creates and returns a tuple containing first as first object and second as second object. More...
 
- Protected Attributes inherited from NSATuple
id _first
 
id _second
 

Detailed Description

Manages ordered collections of 2 objects.

Method Documentation

- (void) setTuple: (NSATuple *)  otherTuple

Sets the receiving tuple's elements to those in another given tuple.

Parameters
otherTupleThe tuple of objects with which to replace the receiving tuple's content.
- (void) swap

Swap first and second.

Property Documentation

- (id) first
readwritenonatomicstrong

first object

- (id) second
readwritenonatomicstrong

second object


The documentation for this class was generated from the following file: