File indexing completed on 2026-04-09 07:49:19
0001
0002
0003 #include "snode.h"
0004 #include <cassert>
0005
0006 int main()
0007 {
0008 snode n = {} ;
0009 int lvid_idx = snode_field::Idx("LVID") ;
0010 int copyno_idx = snode_field::Idx("COPYNO") ;
0011 int depth_idx = snode_field::Idx("DEPTH") ;
0012
0013 n.lvid = 101 ;
0014 n.copyno = 50000 ;
0015
0016 int lvid = n.get_attrib(lvid_idx);
0017 int copyno = n.get_attrib(copyno_idx);
0018 int depth = n.get_attrib(depth_idx);
0019
0020 assert( lvid == n.lvid );
0021 assert( copyno == n.copyno );
0022 assert( depth == 0 );
0023
0024 return 0;
0025 }