コード例 #1
0
        protected HuffmanNode(HuffmanNode aParent)
        {
            isFull     = false;
            isSetValue = false;
            parent     = aParent;

            if (parent != null)
            {
                depth = parent.GetDepth() + 1;
            }
        }
コード例 #2
0
        protected HuffmanNode(HuffmanNode aParent, int aValue)
        {
            parent = aParent;

            if (parent != null)
            {
                depth = parent.GetDepth() + 1;
            }

            value = aValue;

            isFull     = true;
            isSetValue = true;
        }