Skoči na glavni sadržaj

Izvorni znanstveni članak

Portable reflection for C++ with Mirror

Matuš Chochlik ; Faculty of Computer Science Žilina, University of Žilina, Žilina, Slovak Republic


Puni tekst: engleski pdf 158 Kb

str. 13-26

preuzimanja: 563

citiraj


Sažetak

Reflection and reflective programming can be used in a broad range of tasks like implementation of serialization operations, remote procedure calls, scripting, automated user interface generation, implementation of several software design patterns, etc. C++ as one of the most prevalent programming languages however, for various reasons, lacks a standardized reflection facility. In this paper we present Mirror - a portable library adding reflection to C++ with a command-line utility automating its usage. This library supports functional style static compile-time reflection and metaprogramming and also provides two different object-oriented run-time polymorphic layers for dynamic reflection.

Ključne riječi

reflection; reflective programming; metaprogramming; design-pattern implementation

Hrčak ID:

83832

URI

https://hrcak.srce.hr/83832

Datum izdavanja:

30.6.2012.

Posjeta: 1.003 *