PROJAuthorityProjections

Objective-C

@interface PROJAuthorityProjections : NSObject

Swift

class PROJAuthorityProjections : NSObject

Collection of projections for a single coordinate authority

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithAuthority:(NSString *)authority;

    Swift

    init!(authority: String!)

    Parameters

    authority

    coordinate authority

    Return Value

    new authority projections

  • Get the authority

    Declaration

    Objective-C

    - (NSString *)authority;

    Swift

    func authority() -> String!

    Return Value

    authority

  • Get the projection for the code

    Declaration

    Objective-C

    - (PROJProjection *)projectionForNumberCode:(NSNumber *)code;

    Swift

    func projection(forNumberCode code: NSNumber!) -> PROJProjection!

    Parameters

    code

    coordinate code

    Return Value

    projection

  • Get the projection for the code

    Declaration

    Objective-C

    - (PROJProjection *)projectionForCode:(NSString *)code;

    Swift

    func projection(forCode code: String!) -> PROJProjection!

    Parameters

    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 code

    Declaration

    Objective-C

    - (BOOL)hasProjectionNumberCode:(NSNumber *)code;

    Swift

    func hasProjectionNumberCode(_ code: NSNumber!) -> Bool

    Parameters

    code

    coordinate code

    Return Value

    true if has the projection

  • Check if the collection contains a projection for the code

    Declaration

    Objective-C

    - (BOOL)hasProjectionCode:(NSString *)code;

    Swift

    func hasProjectionCode(_ code: String!) -> Bool

    Parameters

    code

    coordinate code

    Return Value

    true if has the projection

  • Add the projection to the authority

    Declaration

    Objective-C

    - (void)addProjection:(PROJProjection *)projection;

    Swift

    func addProjection(_ projection: PROJProjection!)

    Parameters

    projection

    projection

  • Clear all projections for the authority

    Declaration

    Objective-C

    - (void)clear;

    Swift

    func clear()
  • Remove the projection with the code

    Declaration

    Objective-C

    - (void)removeNumberCode:(NSNumber *)code;

    Swift

    func removeNumberCode(_ code: NSNumber!)

    Parameters

    code

    coordinate code

  • Remove the projection with the code

    Declaration

    Objective-C

    - (void)removeCode:(NSString *)code;

    Swift

    func removeCode(_ code: String!)

    Parameters

    code

    coordinate code

  • Remove the projection

    Declaration

    Objective-C

    - (void)removeProjection:(PROJProjection *)projection;

    Swift

    func removeProjection(_ projection: PROJProjection!)

    Parameters

    projection

    projection

  • Get the count of authority projections

    Declaration

    Objective-C

    - (int)count;

    Swift

    func count() -> Int32

    Return Value

    count

  • Is the collection empty?

    Declaration

    Objective-C

    - (int)isEmpty;

    Swift

    func isEmpty() -> Int32

    Return Value

    true if empty

  • Get the projection codes

    Declaration

    Objective-C

    - (NSArray<NSString *> *)codes;

    Swift

    func codes() -> [String]!

    Return Value

    projection codes

  • Get the projections

    Declaration

    Objective-C

    - (NSArray<PROJProjection *> *)projections;

    Swift

    func projections() -> [PROJProjection]!

    Return Value

    projections