Back to search

Kent State University

Understanding and Maintaining C++ Generic Libraries

Abstract

dc:description

A generic library is collections of generic (template) algorithms and data structures that support code reuse through function and data type composition, making them particularly valuable from a software engineering viewpoint since they can be adapted to a broad array of computing problems while retaining familiar and consistent syntax and semantics across those domains. These libraries differ greatly in their construction from more common object-oriented libraries. Specifically, generic source code frequently uses complex, idiomatic structures to define, manipulate, or compose type abstractions. The idiomatic nature of these products does not readily facilitate comprehension or maintenance tasks by non-expert developers. The notion of concepts is central to the organization and design of generic libraries. A concept describes the syntactic and semantic requirements of a generic abstraction and can be used to constrain template definitions. Concepts are often equated to signatures in ML or type classes in Haskell. Because concepts will be included as a language feature in the C++ programming language, they are a central concern for engineers tasked with maintaining generic libraries.The dissertation explores issues related to the understanding and maintenance of C++ generic libraries. A catalog of programming idioms used in the design and implementation of such libraries is derived from empirical evidence and experience. A mapping of programming idiom to language features (concepts) is developed to support abstract reasoning about concrete implementations. Reverse engineering and fact extraction software is developed and applied to conduct empirical studies of C++ generic libraries by automatically identifying idioms present in these libraries. These studies are then leveraged to support the definition of an architectural view of generic libraries that articulates the relations between concepts, data structures, algorithms, and adaptors. To support the evolution of C++ generic libraries to use the new concept features, a new technique is developed to identify type constraints within template functions and classes by mapping them onto previously defined concepts. The approach is prototyped and applied to many of the generic algorithms in the C++ Standard Library. The technique is also used to uncover flaws in the specification of type constraints and the design of concept hierarchies. Results of this work are used to affect changes to the C++ programming language standard.

Degree

thesis:*
Name thesis:degree_name
PHD
Level thesis:degree_level
doctoral
Discipline thesis:degree_discipline
College of Arts and Sciences / Department of Computer Science
Grantor dc:publisher
Kent State University
Year dc:date
2010

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Sutton, Andrew
Advisor dc:contributor.advisor
  • Maletic, Jonathan

Subjects

dc:subject × 6

Rights

dc:rights
Statement dc:rights
  • unrestricted
  • This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws.
Language dc:language
English

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
OhioLINK
Base URL
etd.ohiolink.edu/acprod/odb_etd/ws/oai/oai
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Sutton, Andrew. Understanding and Maintaining C++ Generic Libraries. doctoral thesis, Kent State University, 2010. http://rave.ohiolink.edu/etdc/view?acc_num=kent1278453450