Displaying 3 results from an estimated 3 matches for "nodesiteratortyp".
Did you mean:
nodesiteratortype
2010 Apr 07
2
[LLVMdev] graph abstraction proposal
...mplement my GraphTraits also for Inverse.
This could be solved using a compile time abstraction of Graph
instread of GraphTraits.
the abstraction has to provide some typedefs and methods
(and would be quite similar to GraphTraits):
typedef XXX NodeType;
typedef XXX ChildIteratorType;
typedef XXX NodesIteratorType;
getRoots(); // return all roots
getRoot(); // return the root if it is only one, othewise NULL
child_begin(NodeType* node); // iterators for children of a node
child_end(NodeType* node);
nodes_begin(); // iterators for the nodes of a node
nodes_end();
A concrete graph needs a constructor tha...
2010 Apr 08
0
[LLVMdev] graph abstraction proposal
...> This could be solved using a compile time abstraction of Graph
> instread of GraphTraits.
>
> the abstraction has to provide some typedefs and methods
> (and would be quite similar to GraphTraits):
>
> typedef XXX NodeType;
> typedef XXX ChildIteratorType;
> typedef XXX NodesIteratorType;
>
> getRoots(); // return all roots
> getRoot(); // return the root if it is only one, othewise NULL
>
or just add these methods to GraphTraits?
>
> child_begin(NodeType* node); // iterators for children of a node
> child_end(NodeType* node);
>
> nodes_begin(); // ite...
2010 Apr 09
0
[LLVMdev] graph abstraction proposal
...pedefs and methods
> (and would be quite similar to GraphTraits):
I definitely support adding multiple tree roots to the graph interface.
This will allow the DOTGraphTraits based printers to not only print trees.
> typedef XXX NodeType;
> typedef XXX ChildIteratorType;
> typedef XXX NodesIteratorType;
>
> getRoots(); // return all roots
> getRoot(); // return the root if it is only one, othewise NULL
>
> child_begin(NodeType* node); // iterators for children of a node
> child_end(NodeType* node);
>
> nodes_begin(); // iterators for the nodes of a node
> nodes_end();...