For a personal project, I want to create a generic graph. I have created 3 main classes:
-the graph class: template <typename NODE,typename ARROW> class ClassicGraphe;
-the node class: template <typename ARROW> class ClassicNode;
-the arc class: template <typename NODE> class ClassicArrow;
The node class and the arc class are nested together. For the declaration of the variable, I suppose it will not be something like this:
ClassicNode<ClassicArrow<ClassicNode<...>>> myNode;
So how can I declare a ClassicNode variable?
Aucun commentaire:
Enregistrer un commentaire