• DocumentCode
    2599450
  • 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
  • fYear
    2002
  • fDate
    2002
  • Firstpage
    205
  • Lastpage
    214
  • 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;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Automated Software Engineering, 2002. Proceedings. ASE 2002. 17th IEEE International Conference on
  • ISSN
    1938-4300
  • Print_ISBN
    0-7695-1736-6
  • Type

    conf

  • DOI
    10.1109/ASE.2002.1115014
  • Filename
    1115014