Beispiel #1
0
        internal override Int32 ClassifyObject(DataSetObject obj, int availableHeight)
        {
            if (availableHeight == 1)
            {
                return(DecisionResult);
            }

            availableHeight--;

            if (_decision.Invoke(obj))
            {
                return(_rightChild.ClassifyObject(obj, availableHeight));
            }

            return(_leftChild.ClassifyObject(obj, availableHeight));
        }
Beispiel #2
0
 internal override Int32 ClassifyObject(DataSetObject obj, Int32 availableHeight) => DecisionResult;
Beispiel #3
0
 internal abstract int ClassifyObject(DataSetObject obj, int availableHeight);
Beispiel #4
0
 public Int32 ClassifyObject(DataSetObject obj, int maxHeight) => _head.ClassifyObject(obj, maxHeight);