Help for this page

Select Code to Download


  1. or download this
    package Node;
    
    use constant FIRST_IDX  => 0;
    use constant IDX_PARENT => FIRST_IDX + 0;
    use constant NEXT_IDX   => FIRST_IDX + 1;
    
  2. or download this
    package ElementNode;
    
    ...
    use constant IDX_NAME  => FIRST_IDX + 0;
    use constant IDX_ATTS  => FIRST_IDX + 1;
    use constant NEXT_IDX  => FIRST_IDX + 2;
    
  3. or download this
    use constant IDX_PARENT => __PACKAGE__->SUPER::IDX_PARENT();
    
  4. or download this
    package Node;
    
    ...
    use constant IDX_PARENT => FIRST_IDX + 0;
    use constant IDX_ISROOT => FIRST_IDX + 1;
    use constant NEXT_IDX   => FIRST_IDX + 2;