-
String representation of
EnumerationsDeclaration
Swift
public override var kind: String { get } -
an enumeration value in C is a constant
Declaration
Swift
public typealias Member = Constant -
enumeration values
Declaration
Swift
public let members: [Member] -
Designated initialiser
Declaration
Swift
public init(name: String, type: String, members: [Member], comment: String, introspectable: Bool = false, deprecated: String? = nil)Parameters
nameThe name of the
Enumerationto initialisetypeC typedef name of the enum
membersthe cases for this enum
commentDocumentation text for the enum
introspectableSet to
trueif introspectabledeprecatedDocumentation on deprecation status if non-
nil -
Initialiser to construct an enumeration from XML
Declaration
Swift
public init(node: XMLElement, atIndex i: Int)Parameters
nodeXMLElementto construct this enum fromiIndex within the siblings of the
node
View on GitHub
Install in Dash
Enumeration Class Reference