Esempio n. 1
0
 public ContainEnum(HyperCube hh, RTree tree)
 {
     _cubes = tree.Enclosure(hh, tree._file.ReadNode(0));
     if (_cubes.Count == 0)
     {
         _hasNext = false;
     }
 }
Esempio n. 2
0
 public IntersectionEnum(HyperCube hh, RTree tree)
 {
     _nodes = tree.Intersection(hh, tree._file.ReadNode(0));
     if (_nodes.Count == 0)
     {
         _hasNext = false;
     }
 }
Esempio n. 3
0
        ////////////////////////////////////////////////////////////////////////////
        //--------------------------------- REVISIONS ------------------------------
        // Date       Name                 Tracking #         Description
        // ---------  -------------------  -------------      ----------------------
        // 21DEC2008  James Shen                              Initial Creation
        ////////////////////////////////////////////////////////////////////////////

        /**
         * constructor.
         */
        protected AbstractNode(RTree tree, int parent, int pageNumber, int level)
        {
            Parent     = parent;
            Tree       = tree;
            PageNumber = pageNumber;
            Level      = level;
            Data       = new HyperCube[tree.GetNodeCapacity() + 1];
            Branches   = new int[tree.GetNodeCapacity() + 1];
            UsedSpace  = 0;
        }
Esempio n. 4
0
 ////////////////////////////////////////////////////////////////////////////
 //--------------------------------- REVISIONS ------------------------------
 // Date       Name                 Tracking #         Description
 // ---------  -------------------  -------------      ----------------------
 // 21DEC2008  James Shen                 	          Initial Creation
 ////////////////////////////////////////////////////////////////////////////
 /**
  * constructor.
  */
 internal Index(RTree tree, int parent, int pageNumber, int level)
     : base(tree, parent, pageNumber, level)
 {
 }
Esempio n. 5
0
            public PreOrderEnum(RTree tree)
            {
                AbstractNode root = tree._file.ReadNode(0);

                _nodes = tree.TraversePreOrder(root);
            }
Esempio n. 6
0
 public PreOrderEnum(RTree tree)
 {
     AbstractNode root = tree._file.ReadNode(0);
     _nodes = tree.TraversePreOrder(root);
 }
Esempio n. 7
0
            public ByLevelEnum(RTree tree)
            {
                AbstractNode root = tree._file.ReadNode(0);

                _nodes = tree.TraverseByLevel(root);
            }
Esempio n. 8
0
 public ContainEnum(HyperCube hh, RTree tree)
 {
     _cubes = tree.Enclosure(hh, tree._file.ReadNode(0));
     if (_cubes.Count == 0)
     {
         _hasNext = false;
     }
 }
Esempio n. 9
0
 public IntersectionEnum(HyperCube hh, RTree tree)
 {
     _nodes = tree.Intersection(hh, tree._file.ReadNode(0));
     if (_nodes.Count == 0)
     {
         _hasNext = false;
     }
 }
Esempio n. 10
0
 ////////////////////////////////////////////////////////////////////////////
 //--------------------------------- REVISIONS ------------------------------
 // Date       Name                 Tracking #         Description
 // ---------  -------------------  -------------      ----------------------
 // 21DEC2008  James Shen                 	          Initial Creation
 ////////////////////////////////////////////////////////////////////////////
 /**
  * constructor.
  */
 protected Leaf(RTree tree, int parent)
     : base(tree, parent, -1, 0)
 {
     // Leaf nodes belong by default to level 0.
 }
Esempio n. 11
0
 public ByLevelEnum(RTree tree)
 {
     AbstractNode root = tree._file.ReadNode(0);
     _nodes = tree.TraverseByLevel(root);
 }
Esempio n. 12
0
 ////////////////////////////////////////////////////////////////////////////
 //--------------------------------- REVISIONS ------------------------------
 // Date       Name                 Tracking #         Description
 // ---------  -------------------  -------------      ----------------------
 // 21DEC2008  James Shen                 	          Initial Creation
 ////////////////////////////////////////////////////////////////////////////
 /**
  * constructor.
  */
 internal Leaf(RTree tree, int parent, int pageNumber)
     : base(tree, parent, pageNumber, 0)
 {
     // Leaf nodes belong by default to level 0.
 }
Esempio n. 13
0
        ////////////////////////////////////////////////////////////////////////////
        //--------------------------------- REVISIONS ------------------------------
        // Date       Name                 Tracking #         Description
        // ---------  -------------------  -------------      ----------------------
        // 21DEC2008  James Shen                              Initial Creation
        ////////////////////////////////////////////////////////////////////////////

        /**
         * constructor.
         */
        protected Leaf(RTree tree, int parent)
            : base(tree, parent, -1, 0)
        {
            // Leaf nodes belong by default to level 0.
        }
Esempio n. 14
0
        ////////////////////////////////////////////////////////////////////////////
        //--------------------------------- REVISIONS ------------------------------
        // Date       Name                 Tracking #         Description
        // ---------  -------------------  -------------      ----------------------
        // 21DEC2008  James Shen                              Initial Creation
        ////////////////////////////////////////////////////////////////////////////

        /**
         * constructor.
         */
        internal Leaf(RTree tree, int parent, int pageNumber)
            : base(tree, parent, pageNumber, 0)
        {
            // Leaf nodes belong by default to level 0.
        }
Esempio n. 15
0
        ////////////////////////////////////////////////////////////////////////////
        //--------------------------------- REVISIONS ------------------------------
        // Date       Name                 Tracking #         Description
        // ---------  -------------------  -------------      ----------------------
        // 21DEC2008  James Shen                              Initial Creation
        ////////////////////////////////////////////////////////////////////////////

        /**
         * constructor.
         */
        internal Index(RTree tree, int parent, int pageNumber, int level) : base(tree, parent, pageNumber, level)
        {
        }
Esempio n. 16
0
 ////////////////////////////////////////////////////////////////////////////
 //--------------------------------- REVISIONS ------------------------------
 // Date       Name                 Tracking #         Description
 // ---------  -------------------  -------------      ----------------------
 // 21DEC2008  James Shen                 	          Initial Creation
 ////////////////////////////////////////////////////////////////////////////
 /**
  * constructor.
  */
 protected AbstractNode(RTree tree, int parent, int pageNumber, int level)
 {
     Parent = parent;
     Tree = tree;
     PageNumber = pageNumber;
     Level = level;
     Data = new HyperCube[tree.GetNodeCapacity() + 1];
     Branches = new int[tree.GetNodeCapacity() + 1];
     UsedSpace = 0;
 }