![]()
AMBIENTUM BIOETHICA BIOLOGIA CHEMIA DIGITALIA DRAMATICA EDUCATIO ARTIS GYMNAST. ENGINEERING EPHEMERIDES EUROPAEA GEOGRAPHIA GEOLOGIA HISTORIA HISTORIA ARTIUM INFORMATICA IURISPRUDENTIA MATHEMATICA MUSICA NEGOTIA OECONOMICA PHILOLOGIA PHILOSOPHIA PHYSICA POLITICA PSYCHOLOGIA-PAEDAGOGIA SOCIOLOGIA THEOLOGIA CATHOLICA THEOLOGIA CATHOLICA LATIN THEOLOGIA GR.-CATH. VARAD THEOLOGIA ORTHODOXA THEOLOGIA REF. TRANSYLVAN
|
|||||||
The STUDIA UNIVERSITATIS BABEŞ-BOLYAI issue article summary The summary of the selected article appears at the bottom of the page. In order to get back to the contents of the issue this article belongs to you have to access the link from the title. In order to see all the articles of the archive which have as author/co-author one of the authors mentioned below, you have to access the link from the author's name. |
|||||||
STUDIA INFORMATICA - Issue no. 2 / 2014 | |||||||
Article: |
C++ COMPILE-TIME REFLECTION AND MOCK OBJECTS. Authors: ZOLTÁN PORKOLÁB. |
||||||
Abstract: 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 specific rfflection subtask. In this paper an alternative C compile-time reflection approach is discussed in favor of finding 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 specific intrinsics (compilerspecic expressions). With these expressions, variables and functions could be declared and defined from results of reflection queries. 2010 Mathematics Subject Classication. 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. | |||||||
![]() |
|||||||
![]() |