Title :
Automated validation of class invariants in C++ applications
Author :
Gibbs, Tanton H. ; Malloy, Brian A. ; Power, James F.
Author_Institution :
Dept. of Comput. Sci., Clemson Univ., SC, USA
Abstract :
In this paper, we describe a non-invasive approach for validation of class invariants in C++ applications. Our approach is fully automated so that the user need only supply the class invariants for each class hierarchy to be checked and our validator constructs an InvariantVisitor, a variation of the Visitor Pattern, and an InvariantFacilitator. Instantiations of the InvariantVisitor and InvariantFacilitator classes encapsulate the invariants in C++ statements and facilitate the validation of the invariants. We describe both our approach and our results of validating invariants in keystone, a well tested parser front-end for C++.
Keywords :
C++ language; graphical user interfaces; software quality; C++ applications; InvariantFacilitator; InvariantVisitor; Visitor Pattern; automated validation; class hierarchy; class invariants; noninvasive approach; parser front-end; Application software; Computer industry; Computer science; Contracts; Costs; Programming; Shape; Software design; Software quality; Software testing;
Conference_Titel :
Automated Software Engineering, 2002. Proceedings. ASE 2002. 17th IEEE International Conference on
Print_ISBN :
0-7695-1736-6
DOI :
10.1109/ASE.2002.1115014