CppCon 2015 has ended
Tuesday, September 22 • 12:30pm - 1:30pm
Effective C++ Implementation of Class Properties

Log in to save this to your schedule, view media, leave feedback and see who's attending!

This session will be a brainstorm, so, possibly, we will invent something even more interesting, and make the result available for the whole C++ society. Join me to work on this important problem.

"Property" is a special sort of class member between field and method. https://en.wikipedia.org/wiki/Property_(programming). Properties are extremely useful while working with a poorly organized legacy codebase, e.g. as a mean to transparently implement setters and getters in initially public classes.

In reality there is no a part in C++ standard for implementation of properties, though there are many ways to implement them using syntax of the language. We will overview these general ways with its pros and cons.

A good implementation is an implementation with a little both memory and performance overhead. At the moment I have a developed solution with memory overhead of one pointer and one indirection for performance, per property; It is better than all the implementations I could find publicly available.We will try to find an implementation as ideal as possible. 

avatar for Viktor Korsun

Viktor Korsun

Head of client-side development, Zeptolab
Viktor graduated from Moscow Technical University and Yandex Data Analysis School. In 2006 - 2008 Viktor worked for Galaktika corpotation, participated in the creation of a 4'th generation OO-programming language. In 2008 - 2010 Viktor worked for Alta-Soft LLC as a technical architect... Read More →

Tuesday September 22, 2015 12:30pm - 1:30pm PDT
McClintock (404) Meydenbauer Center

Attendees (0)