EMEnumSet

Objective-C


@interface EMEnumSet : NSObject

Swift

class EMEnumSet : NSObject

An interface representing a collection of enum type data.

  • Create and Initialize an EnumSet object.

    Since

    2.6

    Declaration

    Objective-C

    - (void)createEnumSet:(CFMutableSetRef)set;

    Swift

    func createEnumSet(_ set: CFMutableSet!)

    Parameters

    set

    The CFMutableSet object containing all capabilities of a token.

  • Checks the existence of a specific item in the set.

    Since

    2.6

    Declaration

    Objective-C

    - (BOOL)contains:(CFIndex)item;

    Swift

    func contains(_ item: CFIndex) -> Bool

    Parameters

    item

    The item to be checked.

    Return Value

    YES if the EnumSet contains that item and otherwise NO will be returned.

  • Counts the number of capabilities in the EnumSet.

    Since

    2.6

    Declaration

    Objective-C

    - (CFIndex)count;

    Swift

    func count() -> CFIndex

    Return Value

    The number of items in the set.