Implementation of a Finite State Machine with Active Libraries in C++

  • Authors:
  • Zoltán Juhász;Ádám Sipos;Zoltán Porkoláb

  • Affiliations:
  • Department of Programming Languages and Compilers Faculty of Informatics, Eötvös Loránd University, Budapest, H-1117;Department of Programming Languages and Compilers Faculty of Informatics, Eötvös Loránd University, Budapest, H-1117;Department of Programming Languages and Compilers Faculty of Informatics, Eötvös Loránd University, Budapest, H-1117

  • Venue:
  • Generative and Transformational Techniques in Software Engineering II
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

Active libraries are code parts playing an active role during compilation. In C++ active libraries are implemented with the help of template metaprogramming (TMP) techniques. In this paper we present an active library designed as an implementation tool for Finite state machines. With the help of various TMP constructs, our active library carries out compile-time actions like optimizations via state-minimalization, and more sophisticated error-detection steps. Our library provides extended functionality to the Boost::Statechart library, the popular FSM implementation of the Boost library. We describe the implementation and analyze the efficiency.