XSClassInfo Reference
File
XSFoundation/include/XS/Types/XSClassInfo.h
 
Author
Jean-David Gadina - www.xs-labs.com
 
Copyright
© (c) 2020 - Jean-David Gadina - www.xs-labs.com
 
Date
Sunday, September 27, 2020
 
 
Overview
XSClassInfo type definition
Types
XSClassInfo
XSFoundation runtime class structure
typedef struct { 
    const char *className;
    XSClassType type;
    size_t instanceSize;
    XSClassCallbackConstructor constructor;
    XSClassCallbackDestructor destructor;
    XSClassCallbackCopy copy;
    XSClassCallbackEquals equals;
    XSClassCallbackToString toString;
} XSClassInfo;  
Fields
- className
The name of the class 
- type
The class type 
- instanceSize
The size of the class instances 
- constructor
The class constructor 
- destructor
The class destructor 
- copy
The object's copy callback 
- equals
The object's comparison callback 
- toString
The object's description callback