Example #1
0
        protected ArrayMutableImpl(TArrayQuery cq, ArrayState <TValue> state)
        {
            ArgumentValidator.ValidateNotNull("Array query", cq);
            ArgumentValidator.ValidateNotNull("State", state);

            this._cq    = cq;
            this._state = state;
        }
Example #2
0
        public virtual ArrayProxy <TValue> NewArrayProxy <TValue>(TValue[] array = null)
        {
            ArrayProxy <TValue> retVal;

            if (array != null && array.Length > 0)
            {
                var state = new ArrayState <TValue>(array);
                retVal = new ArrayProxyImpl <TValue>(new ArrayProxyQueryImpl <TValue>(state), state);
            }
            else
            {
                retVal = EmptyArrayProxy <TValue> .Proxy;
            }
            return(retVal);
        }
Example #3
0
        public virtual ArrayWithRoles <TValue, TValueQuery, TValueImmutable> NewArrayWithRoles <TValue, TValueQuery, TValueImmutable>(TValue[] array = null)
            where TValue : Mutable <TValueQuery, TValueImmutable>
            where TValueQuery : MutableQuery <TValueImmutable>
        {
            ArrayWithRoles <TValue, TValueQuery, TValueImmutable> retVal;

            if (array != null && array.Length > 0)
            {
                var state   = new ArrayState <TValue>(array);
                var arrayIQ = new ArrayImmutableQueryImpl <TValue, TValueQuery, TValueImmutable>(state);
                retVal = new ArrayWithRolesImpl <TValue, TValueQuery, TValueImmutable>(new ArrayQueryOfMutablesImpl <TValue, TValueQuery, TValueImmutable>(arrayIQ, new ArrayQueryOfQueriesImpl <TValue, TValueQuery, TValueImmutable>(arrayIQ, state), state), state);
            }
            else
            {
                retVal = EmptyArrayWithRoles <TValue, TValueQuery, TValueImmutable> .Array;
            }
            return(retVal);
        }
Example #4
0
        protected ArrayQueryImpl(ArrayState <TValue> state)
        {
            ArgumentValidator.ValidateNotNull("State", state);

            this._state = state;
        }
Example #5
0
 internal ArrayProxyQueryImpl(ArrayState <TValue> state)
     : base(state)
 {
 }
Example #6
0
 internal ArrayProxyImpl(ArrayQuery <TValue> cq, ArrayState <TValue> state)
     : base(cq, state)
 {
 }
Example #7
0
 internal ArrayImmutableQueryImpl(ArrayState <TValue> state)
 {
     ArgumentValidator.ValidateNotNull("State", state);
     this._state = state;
 }
Example #8
0
 internal ArrayQueryOfQueriesImpl(ArrayQuery <TValueImmutable> iq, ArrayState <TValue> state)
     : base(iq)
 {
     ArgumentValidator.ValidateNotNull("State", state);
     this._state = state;
 }
Example #9
0
        internal ArrayQueryOfMutablesImpl(ArrayQuery <TValueImmutable> immutableQuery, ArrayQueryOfQueries <TValueQuery, TValueImmutable> cmq, ArrayState <TValue> state)
            : base(state)
        {
            ArgumentValidator.ValidateNotNull("Collection query of queries", cmq);
            ArgumentValidator.ValidateNotNull("Immutable query", immutableQuery);

            this._iq  = immutableQuery;
            this._cmq = cmq;
        }
Example #10
0
 internal ArrayWithRolesImpl(ArrayQueryOfMutables <TValue, TValueQuery, TValueImmutable> mq, ArrayState <TValue> state)
     : base(mq, state)
 {
 }