Samond Classes Library 1.2.0-RELEASE build 166
SCBidirectionalList.h
Go to the documentation of this file.
1 //
2 // SCBidirectionalList.h
3 // scl
4 //
5 // Created by Viacheslav Smolensky on 13.04.12.
6 // Copyright (c) 2007 - 2017 by Samond Development Corporation. All rights reserved.
7 //
8 
22 #import <scl/SCList.h>
23 
24 #pragma mark -
25 #pragma mark Константы класса
26 
30 #define SCBidirectionalListClass @"SCBidirectionalList"
31 
76 
90 @property (nonatomic, retain, readonly, getter=lastObject) id lastObject;
91 
96 @property (nonatomic, retain, readonly, getter=lastString) NSString *lastString;
97 
102 @property (nonatomic, retain, readonly, getter=lastNumber) NSNumber *lastNumber;
103 
106 #pragma mark -
107 #pragma mark Создание списков
108 + (SCBidirectionalList *)listWithCoder:(NSCoder *)coder;
109 + (SCBidirectionalList *)listWithContentsOfSerializedFile:(NSString *)path;
110 + (SCBidirectionalList *)listWithDataDictionary:(NSDictionary *)dictionary;
111 + (SCBidirectionalList *)listWithDataDictionaryFromFile:(NSString *)path;
112 + (SCBidirectionalList *)listWithStream:(SCStream *)stream;
113 + (SCBidirectionalList *)listWithFileStream:(NSString *)path;
114 
115 + (SCBidirectionalList *)listWithName:(NSString *)name;
116 + (SCBidirectionalList *)listWithObject:(id)object;
117 + (SCBidirectionalList *)listWithObjects:(id)object, ... NS_REQUIRES_NIL_TERMINATION;
118 + (SCBidirectionalList *)listWithCollection:(id)collection;
119 + (SCBidirectionalList *)listWithList:(SCList *)list;
120 + (SCBidirectionalList *)list;
121 
122 #pragma mark -
123 #pragma mark Доступ к объектам
124 - (id)lastObject;
125 - (NSString *)lastString;
126 - (NSNumber *)lastNumber;
127 - (SCByte)lastByte;
128 - (SCUByte)lastUByte;
129 - (SCShort)lastShort;
133 - (SCLong)lastLong;
134 - (SCULong)lastULong;
135 - (char)lastChar;
136 - (unichar)lastUnichar;
137 - (const char *)lastCharString;
138 - (BOOL)lastBool;
139 - (SCFloat)lastFloat;
141 
142 #pragma mark -
143 #pragma mark Управление списком
144 - (id)previousObject;
145 
146 #pragma mark -
147 #pragma mark Добавление объектов
148 - (void)insertLastObject:(id)object;
149 - (void)insertLastByte:(SCByte)value;
150 - (void)insertLastUByte:(SCUByte)value;
151 - (void)insertLastShort:(SCShort)value;
152 - (void)insertLastUShort:(SCUShort)value;
153 - (void)insertLastInteger:(SCInteger)value;
154 - (void)insertLastUInteger:(SCUInteger)value;
155 - (void)insertLastLong:(SCLong)value;
156 - (void)insertLastULong:(SCULong)value;
157 - (void)insertLastChar:(char)value;
158 - (void)insertLastUnichar:(unichar)value;
159 - (void)insertLastCharString:(const char *)string;
160 - (void)insertLastBool:(BOOL)value;
161 - (void)insertLastFloat:(SCFloat)value;
162 - (void)insertLastDouble:(SCDouble)value;
163 - (void)insertLastObjects:(id)object, ... NS_REQUIRES_NIL_TERMINATION;
164 - (void)insertLastCollection:(id)collection;
165 
166 #pragma mark -
167 #pragma mark Удаление объектов
168 - (void)removeLastObject;
169 
170 #pragma mark -
171 #pragma mark Замена объектов
172 - (void)replaceLastObjectWithObject:(id)object;
173 - (void)replaceLastObjectWithByte:(SCByte)value;
174 - (void)replaceLastObjectWithUByte:(SCUByte)value;
175 - (void)replaceLastObjectWithShort:(SCShort)value;
176 - (void)replaceLastObjectWithUShort:(SCUShort)value;
177 - (void)replaceLastObjectWithInteger:(SCInteger)value;
178 - (void)replaceLastObjectWithUInteger:(SCUInteger)value;
179 - (void)replaceLastObjectWithLong:(SCLong)value;
180 - (void)replaceLastObjectWithULong:(SCULong)value;
181 - (void)replaceLastObjectWithChar:(char)value;
182 - (void)replaceLastObjectWithUnichar:(unichar)value;
183 - (void)replaceLastObjectWithCharString:(const char *)string;
184 - (void)replaceLastObjectWithBool:(BOOL)value;
185 - (void)replaceLastObjectWithFloat:(SCFloat)value;
186 - (void)replaceLastObjectWithDouble:(SCDouble)value;
187 
188 #pragma mark -
189 #pragma mark Копирование объектов
190 - (void)duplicateLastObject;
191 
192 @end
id lastObject
Definition: SCBidirectionalList.h:90
SCFloat lastFloat()
Definition: SCBidirectionalList.m:488
uint64_t SCULong
Definition: SCTypes.h:78
int16_t SCShort
Definition: SCTypes.h:42
NSNumber * lastNumber
Definition: SCBidirectionalList.h:102
int64_t SCLong
Definition: SCTypes.h:54
unichar lastUnichar()
Definition: SCBidirectionalList.m:446
SCDouble lastDouble()
Definition: SCBidirectionalList.m:502
NSString * lastString
Definition: SCBidirectionalList.h:96
Class for support the bidirectional lists of objects.
Definition: SCBidirectionalList.h:75
void removeLastObject()
Definition: SCBidirectionalList.m:825
int32_t SCInteger
Definition: SCTypes.h:48
SCUInteger lastUInteger()
Definition: SCBidirectionalList.m:386
SCULong lastULong()
Definition: SCBidirectionalList.m:414
SCShort lastShort()
Definition: SCBidirectionalList.m:344
uint32_t SCUInteger
Definition: SCTypes.h:72
SCLong lastLong()
Definition: SCBidirectionalList.m:400
int8_t SCByte
Definition: SCTypes.h:36
char lastChar()
Definition: SCBidirectionalList.m:430
uint16_t SCUShort
Definition: SCTypes.h:66
uint8_t SCUByte
Definition: SCTypes.h:60
id previousObject()
Definition: SCBidirectionalList.m:521
SCByte lastByte()
Definition: SCBidirectionalList.m:316
SCUByte lastUByte()
Definition: SCBidirectionalList.m:330
const char * lastCharString()
Definition: SCBidirectionalList.m:460
BOOL lastBool()
Definition: SCBidirectionalList.m:474
void duplicateLastObject()
Definition: SCBidirectionalList.m:1095
float_t SCFloat
Definition: SCTypes.h:84
Parent class of the object list classes.
Definition: SCList.h:64
SCUShort lastUShort()
Definition: SCBidirectionalList.m:358
double_t SCDouble
Definition: SCTypes.h:90
Abstract parent class of the stream classes hierarchy.
Definition: SCStream.h:242
SCInteger lastInteger()
Definition: SCBidirectionalList.m:372