Inferno
0.2
|
00001 /* 00002 * Created on: 14 Jun 2009 00003 * Author: jgraley 00004 */ 00005 00006 #include "node.hpp" 00007 00008 struct MyNode : Node 00009 { 00010 NODE_FUNCTIONS 00011 Sequence<Node> s; 00012 }; 00013 00014 void GenericsTest() 00015 { 00016 TRACE(); 00017 shared_ptr<MyNode> n( new MyNode ); 00018 TRACE(); 00019 vector< Itemiser::Element * > i = n->Itemise(); 00020 TRACE(); 00021 for( int e=0; e<i.size(); e++ ) 00022 TRACE("element at %p\n", i[e]); 00023 ASSERT( i.size() == 1 )("%d elements\n", i.size()); 00024 } 00025