PROJProjections
Objective-C
@interface PROJProjections : NSObject
Swift
class PROJProjections : NSObject
Collection of projections by authority
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
Return Value
new projections
-
Get the authority projections
Declaration
Objective-C
- (PROJAuthorityProjections *)projectionsForAuthority:(NSString *)authority;
Swift
func projections(forAuthority authority: String!) -> PROJAuthorityProjections!
Parameters
authority
coordinate authority
Return Value
authority projections
-
Get the projection for the authority and code
Declaration
Objective-C
- (PROJProjection *)projectionForAuthority:(NSString *)authority andCode:(NSString *)code;
Swift
func projection(forAuthority authority: String!, andCode code: String!) -> PROJProjection!
Parameters
authority
coordinate authority
code
coordinate code
Return Value
projection
-
Check if the collection contains the projection
Declaration
Objective-C
- (BOOL)hasProjection:(PROJProjection *)projection;
Swift
func hasProjection(_ projection: PROJProjection!) -> Bool
Parameters
projection
projection
Return Value
true if has the projection
-
Check if the collection contains a projection for the authority and code
Declaration
Objective-C
- (BOOL)hasProjectionWithAuthority:(NSString *)authority andCode:(NSString *)code;
Swift
func hasProjection(withAuthority authority: String!, andCode code: String!) -> Bool
Parameters
authority
coordinate authority
code
coordinate code
Return Value
true if has a projection
-
Add the projection
Declaration
Objective-C
- (void)addProjection:(PROJProjection *)projection;
Swift
func add(_ projection: PROJProjection!)
Parameters
projection
projection
-
Clear all projections
Declaration
Objective-C
- (void)clear;
Swift
func clear()
-
Clear all projections for the authority
Declaration
Objective-C
- (void)clearAuthority:(NSString *)authority;
Swift
func clearAuthority(_ authority: String!)
Parameters
authority
coordinate authority
-
Remove the projection for the authority and code
Declaration
Objective-C
- (void)removeAuthority:(NSString *)authority andNumberCode:(NSNumber *)code;
Swift
func removeAuthority(_ authority: String!, andNumberCode code: NSNumber!)
Parameters
authority
coordinate authority
code
coordinate code
-
Remove the projection for the authority and code
Declaration
Objective-C
- (void)removeAuthority:(NSString *)authority andCode:(NSString *)code;
Swift
func removeAuthority(_ authority: String!, andCode code: String!)
Parameters
authority
coordinate authority
code
coordinate code
-
Remove the projection
Declaration
Objective-C
- (void)removeProjection:(PROJProjection *)projection;
Swift
func remove(_ projection: PROJProjection!)
Parameters
projection
projection
-
Get the count of authorities
Declaration
Objective-C
- (int)authorityCount;
Swift
func authorityCount() -> Int32
Return Value
count
-
Get the authorities
Declaration
Objective-C
- (NSArray<NSString *> *)authorities;
Swift
func authorities() -> [String]!
Return Value
authorities
-
Get the count of projections
Declaration
Objective-C
- (int)projectionCount;
Swift
func projectionCount() -> Int32
Return Value
count
-
Is the collection empty?
Declaration
Objective-C
- (BOOL)isEmpty;
Swift
func isEmpty() -> Bool
Return Value
true if empty