发明名称 System and method supporting mapping of option bindings
摘要 To support values of properties, a class includes fields to support values in preallocated memory space and with an option data structure which supports, in instances of the class, references to option values without preallocation of memory space. The field and option values are accessed in an instance object of the class using expressions of the same syntactic form. During compilation, the compiler checks the type of an option value against a type description within the option data structure. If a value has not been set for an instance object, a get operation results in getting of the default value for the class. Different classes may support different forms of data structures such as a linked list or a hash table. During compilation, a method call to an object is encoded without regard to the form of the option data structure. When an option value is changed, a change handler identified by an option binding of the data structure is processed. That option binding may be located by first searching a mapping data structure for a previously computed mapping to the option binding or by computing the mapping to the option binding. An option value may be set in an option data structure from an initialization expression which includes the name of the option value and, as an argument, the option value. Nonlocal option values may be applied to plural objects in a nonlocal option hierarchy such as a graphical hierarchy.
申请公布号 US2002112098(A1) 申请公布日期 2002.08.15
申请号 US20010759695 申请日期 2001.01.12
申请人 CURL CORPORATION 发明人 HALSTEAD ROBERT H.;KRANZ DAVID A.;TERMAN CHRISTOPHER J.;WARD STEPHEN A.
分类号 G06F9/44;G06F9/45;(IPC1-7):G06F9/00 主分类号 G06F9/44
代理机构 代理人
主权项
地址