OWLIdentifiedEntity

Objective-C

@protocol OWLIdentifiedEntity <OWLEntity>

Swift

protocol OWLIdentifiedEntity : OWLEntity

Allows the conversion of OWLEntity to numerical identifiers and back.

Warning

This protocol is very unsafe, so it should be used sparingly.

Note

All OWLEntity instances also implement this protocol, so it can be used by simply casting to OWLIdentifiedEntity.
  • The identifier of this entity.

    Warning

    The identifier is only valid until the entity is dealloated. Attempts to use it after the entity has been deallocated is undefined behavior.

    Declaration

    Objective-C

    @property (nonatomic, readonly) OWLEntityID identifier;

    Swift

    var identifier: OWLEntityID { get }