So I have some simple generator class that is much alike this a datatype like this (pointer and length) and a simple costume datatype renderer like this. How to create a graph that would help me pass generated data into my renderer?
Currently I do something like this to pass my Char Ptr to data generator and than result to renderer:
renderer->renderCastedData(producer->updateData(CharPtr));
But I would love to see if it is possible to use Boost Graph to map a Data representing class to some classes as input to some functions and returns of that functions some other classes? Generally having a "Graph" I want to be capable to call Graph(MyInstanceOfMyDatatype)
and have boost pass my value (with minimal coping) from one graph element to another?
This is quite super simple sample so it may seem graph is overkill but I want to have graph for automated values passing between my classes in case for example of having one generator and N renderers - here I want graph to help me with for example providing N-1 copys of my class to all renderers except first.