-
Notifications
You must be signed in to change notification settings - Fork 0
Reflexivity
Antoine CLOP edited this page Oct 27, 2017
·
1 revision
init<T>(_ instance: T)
func typeName() -> String?func parent() -> Reflexivity?
func typeName<T>(_ instance: T) -> Stringfunc parentType<T>(_ instance: T) -> String?
-
init<T>(_ instance: T): Create a Reflexivity object from an object's instance. -
func typeName() -> String?: Return the type of instance passed atinit(instance:)as String. Nil is returned if an error occurred. -
func parent() -> Reflexivity?: Return the parent's type of instance passed atinit(instance:)as String. Nil is returned if an error occurred. -
static func typeName<T>(_ instance: T) -> String: Return the type of instance as String. Nil is returned if an error occurred. -
static func parentType<T>(_ instance: T) -> String?: Return the parent's type of instance as String. Nil is returned if an error occurred.
func address<T>(of object: T) -> String
-
static func address<T>(of object: T) -> String: Return object's memory address as String. On 64 bits systems for example, return would look like "0xb000000000000123".