Samond Classes Library 1.2.2-RELEASE build 188
SCSorter.h
Go to the documentation of this file.
1 //
2 // SCSorter.h
3 // scl
4 //
5 // Created by Viacheslav Smolensky on 25.05.12.
6 // Copyright (c) 2007 - 2017 by Samond Development Corporation. All rights reserved.
7 //
8 
22 #import <scl/SCObject.h>
23 
24 @class SCStrings;
25 
26 #pragma mark -
27 #pragma mark Protocol SCSorter Declaration
28 
41 @protocol SCSorter
42 
43 #pragma mark -
44 #pragma mark Sorting Objects
45 
60 - (void)ascendingSortCollection:(id<SCMutableIndexedCollection>)collection;
61 
72 - (void)descendingSortCollection:(id<SCMutableIndexedCollection>)collection;
73 
74 #pragma mark -
75 #pragma mark Sorting Strings
76 
91 - (void)ascendingSortText:(SCStrings *)text;
92 
103 - (void)descendingSortText:(SCStrings *)text;
104 
105 @end
106 
107 #pragma mark -
108 #pragma mark Class Constants
109 
118 #define SCSorterClass @"SCSorter"
119 
120 
121 #pragma mark -
122 #pragma mark Class SCSorter Declaration
123 
136 @interface SCSorter : SCObject <SCSorter>
137 
138 #pragma mark -
139 #pragma mark Sorting Objects
140 - (void)ascendingSortCollection:(id<SCMutableIndexedCollection>)collection;
141 - (void)descendingSortCollection:(id<SCMutableIndexedCollection>)collection;
142 
143 #pragma mark -
144 #pragma mark Sorting Strings
145 - (void)ascendingSortText:(SCStrings *)text;
146 - (void)descendingSortText:(SCStrings *)text;
147 
148 @end
Class SCObject header file.
Mutable indexed collection protocol.
Definition: SCCollectionProtocols.h:850
Strings list class.
Definition: SCStrings.h:73
Parent class of all library classes.
Definition: SCObject.h:58
Abstract implementation of the protocol SCSorter.
Definition: SCSorter.h:136
Sorting algorithm protocol.
Definition: SCSorter.h:41