コード例 #1
0
        // constructor
        public PCSTree()
        {
            this.pRoot        = null;
            this.maxNodeCount = 0;
            this.numNodes     = 0;

            // create the root
            PCSNode pcsRoot = new PCSRootNode(PCSTree.Name.Root);

            this.Insert(pcsRoot, null);
        }
コード例 #2
0
        //Methods -----------------------------------------------------

        // constructor
        public PCSTree()
        {
            this.maxNodeCount = 0;
            this.numNodes     = 0;

            // create the root node
            PCSNode pcsRoot = new PCSRootNode(PCSTree.Name.RootTree);

            //parent is null since inserting root;
            this.Insert(pcsRoot, null);
        }