objc

NXMap.h
Go to the documentation of this file.
1 
7 #pragma once
8 
10 // CLASS DEFINITIONS
11 
30 @private
31  void *_data;
32  unsigned int _count;
33  size_t _capacity;
34 }
35 
39 + (NXMap *)new;
40 
46 + (NXMap *)mapWithCapacity:(size_t)capacity;
47 
71 + (NXMap *)mapWithObjectsAndKeys:(id)firstObject,
73 
101 + (NXMap *)mapWithObjects:(NXArray *)objects forKeys:(NXArray *)keys;
102 
107 - (unsigned int)count;
108 
113 - (size_t)capacity;
114 
124 - (NXArray *)allKeys;
125 
135 - (NXArray *)allObjects;
136 
149 - (BOOL)setObject:(id)anObject
151 
160 
172 - (BOOL)removeObjectForKey:(id<NXConstantStringProtocol, RetainProtocol>)key;
173 
182 - (void)removeAllObjects;
183 
184 @end
The NXMap class.
Definition: NXMap.h:29
void removeAllObjects()
Removes all objects from the map.
size_t capacity()
Returns the capacity of the map.
unsigned int count()
Returns the number of elements in the map.
#define OBJC_REQUIRES_NIL_TERMINATION
A macro to indicate that a method requires a nil-terminated list of arguments.
Definition: runtime.h:109
bool BOOL
A Boolean value.
Definition: runtime.h:60
NXArray * allKeys()
Returns an array containing all keys stored in the map.
The NXArray classNXArray represents an array that can store ordered objects.
Definition: NXArray.h:19
The base class for objects in the Foundation framework.
Definition: NXObject.h:21
A protocol that defines collection methods for an Object.
struct objc_object * id
A pointer to an instance of a class.
Definition: runtime.h:18
NXArray * allObjects()
Returns an array containing all objects stored in the map.
A protocol that defines JSON methods for an Object.
Definition: JSON+Protocol.h:14