21 #import <scl/SCCollection.h>
24 #pragma mark Константы класса
29 #define SCStackClass @"SCStack"
70 NSMutableArray *fStack;
100 @property (nonatomic, retain, readonly, getter=
topObject)
id topObject;
106 @property (nonatomic, retain, readonly, getter=
topString) NSString *topString;
112 @property (nonatomic, retain, readonly, getter=
topNumber) NSNumber *topNumber;
117 #pragma mark Создание стеков
118 + (
SCStack *)stackWithCoder:(NSCoder *)coder;
119 + (
SCStack *)stackWithContentsOfSerializedFile:(NSString *)path;
120 + (
SCStack *)stackWithDataDictionary:(NSDictionary *)dictionary;
121 + (
SCStack *)stackWithDataDictionaryFromFile:(NSString *)path;
123 + (
SCStack *)stackWithFileStream:(NSString *)path;
125 + (
SCStack *)stackWithName:(NSString *)name;
126 + (
SCStack *)stackWithObject:(
id)object;
127 + (
SCStack *)stackWithObjects:(
id)object, ... NS_REQUIRES_NIL_TERMINATION;
128 + (
SCStack *)stackWithCollection:(
id)collection;
133 #pragma mark Инициализация стеков
134 - (id)initWithName:(NSString *)name;
135 - (id)initWithObject:(
id)object;
136 - (id)initWithObjects:(
id)object, ... NS_REQUIRES_NIL_TERMINATION;
137 - (id)initWithCollection:(
id)collection;
138 - (id)initWithStack:(
SCStack *)stack;
142 #pragma mark Копирование стеков
143 - (void)setStack:(
SCStack *)stack;
146 #pragma mark Сравнение стеков
147 - (BOOL)isEqualToStack:(
SCStack *)stack;
148 - (BOOL)isEqualToContentsOfStack:(
SCStack *)stack;
151 #pragma mark Добавление объектов
152 - (void)pushObject:(
id)object;
153 - (void)pushByte:(
SCByte)value;
154 - (void)pushUByte:(
SCUByte)value;
155 - (void)pushShort:(
SCShort)value;
159 - (void)pushLong:(
SCLong)value;
160 - (void)pushULong:(
SCULong)value;
161 - (void)pushChar:(
char)value;
162 - (void)pushUnichar:(unichar)value;
163 - (void)pushCharString:(const
char *)string;
164 - (void)pushBool:(BOOL)value;
165 - (void)pushFloat:(
SCFloat)value;
167 - (void)pushObjects:(
id)object, ... NS_REQUIRES_NIL_TERMINATION;
168 - (void)pushCollection:(
id)collection;
171 #pragma mark Извлечение объектов
174 - (NSString *)popString;
175 - (NSNumber *)popNumber;
185 - (unichar)popUnichar;
186 - (const
char *)popCharString;
192 #pragma mark Удаление объектов
193 - (void)removeTopObject;
196 #pragma mark Копирование объектов
197 - (void)duplicateTopObject;
200 #pragma mark Доступ к объектам стека
202 - (NSString *)topString;
203 - (NSNumber *)topNumber;
uint64_t SCULong
Definition: SCTypes.h:78
int16_t SCShort
Definition: SCTypes.h:42
int64_t SCLong
Definition: SCTypes.h:54
int32_t SCInteger
Definition: SCTypes.h:48
uint32_t SCUInteger
Definition: SCTypes.h:72
NSNumber * topNumber
Definition: SCStack.h:112
int8_t SCByte
Definition: SCTypes.h:36
uint16_t SCUShort
Definition: SCTypes.h:66
uint8_t SCUByte
Definition: SCTypes.h:60
float_t SCFloat
Definition: SCTypes.h:84
Abstract collections class.
Definition: SCCollection.h:94
Stack of objects class.
Definition: SCStack.h:69
NSString * topString
Definition: SCStack.h:106
id topObject
Definition: SCStack.h:100
double_t SCDouble
Definition: SCTypes.h:90
Abstract parent class of the stream classes hierarchy.
Definition: SCStream.h:242