@evoskuil the "primitives templates" and "memory types" are classes, or are logical memory regions with their produce/retrieve logics implemented as classes (or both! ?), and the block_chain file is made up of a sequence of those primitive/memory structures only?
(By "in test cases we implement memory as a data chunk" you mean your logics are operating on the memory addresses malloc:ed for the data chunk object, instead of on mmap():ed memory addresses.)