internal BacktrackingPredicate(LibraryMethodList container, Functor functor, BacktrackingPredicateDelegate backtrackingPredicateDelegate)
     : base(container, functor, false)
 {
     if (backtrackingPredicateDelegate == null)
     {
         throw new ArgumentNullException("backtrackingPredicateDelegate");
     }
     _backtrackingPredicateDelegate = backtrackingPredicateDelegate;
 }
Example #2
0
        internal Predicate(LibraryMethodList container, Functor functor, PredicateDelegate predicateDelegate, bool canEvaluate)
            : base(container, functor, canEvaluate)
        {
            if (predicateDelegate == null)
            {
                throw new ArgumentNullException("predicateDelegate");
            }

            m_predicateDelegate = predicateDelegate;
        }
Example #3
0
        internal CodePredicate(LibraryMethodList container, Functor functor, CodePredicateDelegate codePredicateDelegate)
            : base(container, functor, false)
        {
            if (codePredicateDelegate == null)
            {
                throw new ArgumentNullException("codePredicateDelegate");
            }

            _codePredicateDelegate = codePredicateDelegate;
        }
Example #4
0
        internal Function(LibraryMethodList container, Functor functor, FunctionDelegate functionDelegate)
            : base(container, functor, true)
        {
            if (functionDelegate == null)
            {
                throw new ArgumentNullException("functionDelegate");
            }

            m_functionDelegate = functionDelegate;
        }
        internal LibraryMethod(LibraryMethodList container, Functor functor, bool canEvaluate)
        {
            if (container == null)
            {
                throw new ArgumentNullException("container");
            }
            if (functor == null)
            {
                throw new ArgumentNullException("functor");
            }

            m_container   = container;
            m_functor     = functor;
            m_canEvaluate = canEvaluate;
        }
Example #6
0
 public Library()
 {
     m_isModified = false;
     m_methods    = new LibraryMethodList(this, new ObservableCollection <LibraryMethod>());
 }