Rezumat articol ediţie STUDIA UNIVERSITATIS BABEŞ-BOLYAI

În partea de jos este prezentat rezumatul articolului selectat. Pentru revenire la cuprinsul ediţiei din care face parte acest articol, se accesează linkul din titlu. Pentru vizualizarea tuturor articolelor din arhivă la care este autor/coautor unul din autorii de mai jos, se accesează linkul din numele autorului.

 
       
         
    STUDIA INFORMATICA - Ediţia nr.2 din 2014  
         
  Articol:   C++ COMPILE-TIME REFLECTION AND MOCK OBJECTS.

Autori:  ZOLTÁN PORKOLÁB.
 
       
         
  Rezumat:   Reflection is an important tool for serializing objects, creating mock objects for testing, creating object relational mappings and manyother cases. Without standardized C compile-time reflection these tasks are repetitive and error-prone. Therefore the ISO C started a study group (SG7) to examine the possibilities of compile-time reflectionin C . With compile-time reflection it would be possible to have a generic library for serialization or for object relational mappings. There are several potential notions about how to approach this kind of reflection, like introducing high-level new language elements like static for,or creating library interfaces which are hiding compiler intrinsics for each specifi c rfflection subtask. In this paper an alternative C compile-time reflection approach is discussed in favor of fi nding a generic solution for this task. The approach is based on introducing new library elements. Under the hood these library element implementations have to be compiler speci fic intrinsics (compilerspeci c expressions). With these expressions, variables and functions could be declared and defi ned from results of reflection queries. 2010 Mathematics Subject Classi cation. 68N15. 1998 CR Categories and Descriptors. D.3.3 [Programming Languages]: Languages Constructs and Features - Classes and objects. Key words and phrases. C++, Reflection, Unit test.  
         
     
         
         
      Revenire la pagina precedentă