Partial specialization of generic classes
Abstract
Generic classes may have more than one specializable type parameter and it may be desirable to specialize one or more of the type variables while not specializing others. The result of partial specialization may be one or more additional generic classes that are further specializable on the remaining type parameters. A runtime specializer may partially specialize a generic class to produce a partially specialized class and may subsequently further specialize the partially specialized class to generate a fully specialized class. Thus, rather than performing the specialization of a generic class all at once, such as by specializing Map<K, V> into Map<int, int> or Map<long, int>, one type parameter may be partially specialized, such as resulting in Map<K, int>, and then at some later time the remaining type parameter(s) may be specialized, such as to generate Map<int, int> or Map<long, int>.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 39 · Forward citations: 1.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A non-transitory, computer-readable storage medium storing program instructions that when executed on a computing device cause the computing device to perform: partially specializing a generic class within a platform independent, object oriented runtime environment, wherein the generic class comprises a plurality of specializable type variables, wherein each of the plurality of specializable type variables are specializable over a plurality of type parameterizations; and wherein to partially specialize the generic class, the program instructions further cause the computing device to perform: s
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 10,466,975 B2 | Execution of parameterized classes on legacy virtual machines to generate instantiation metadata | 2019 | 3 |
References Cited — Backward Prior Art (39)
Non-Patent Literature (5)
- "Common Language Infrastructure (CLI) Partitions I to VI", ECMA International, Jun. 2012, pp. 1-548, Standard ECMA-335, 6th Edition.
- "Generics and Templates (Visual C++)"; Microsoft Developer Network website (msdn.microsoft.com) as captured by the Wayback Machine Internet Archive (archive.org) on Mar. 20, 2014.
- "Templates, C++ FAQ", Jan. 15, 2014, Retrieved from the Internet: URL:http://web.archive.org/web/20140115082944/http://isoccp.org.wiki/faq/templates, pp. 2-27.
- "Understanding C++ Partial Template Specialization"; Stack Overflow website (stackoverflow.com); May 26, 2011.
- Alessandro Warth, et al., "Statically Scoped Object Adaptation with Expanders", ACM OOPSLA'06, Oct. 22-26, 2006, pp. 1-19.