Exemplo n.º 1
0
        public virtual SetProxy <TValue> NewSetProxy <TValue>(ISet <TValue> set = null)
        {
            set = set ?? new HashSet <TValue>();
            var state = new SetState <TValue>(set);

            return(new SetProxyImpl <TValue>(new SetProxyQueryImpl <TValue>(state), state));
        }
Exemplo n.º 2
0
        public virtual SetWithRoles <TValue, TValueQuery, TValueImmutable> NewMemoryEfficientSet <TValue, TValueQuery, TValueImmutable>(ISet <TValue> setToUse = null)
            where TValue : Mutable <TValueQuery, TValueImmutable>
            where TValueQuery : MutableQuery <TValueImmutable>
        {
            setToUse = setToUse ?? new HashSet <TValue>();
            var state = new SetState <TValue>(setToUse);
            var setIQ = new SetImmutableQueryImpl <TValue, TValueQuery, TValueImmutable>(state);

            return(new SetWithRolesImpl <TValue, TValueQuery, TValueImmutable>(new SetQueryOfMutablesImpl <TValue, TValueQuery, TValueImmutable>(setIQ, new SetQueryOfQueriesImpl <TValue, TValueQuery, TValueImmutable>(setIQ, state), state), state));
        }
Exemplo n.º 3
0
 internal SetQueryOfMutablesImpl(SetQuery <TValueImmutable> immutableQuery, SetQueryOfQueries <TValueQuery, TValueImmutable> cmq, SetState <TValue> state)
     : base(immutableQuery, cmq, state)
 {
     this._state = state;
 }
Exemplo n.º 4
0
 internal SetProxyQueryImpl(SetState <TValue> state)
     : base(state)
 {
 }
Exemplo n.º 5
0
 internal SetWithRolesImpl(SetQueryOfMutables <TValue, TValueQuery, TValueImmutable> queryOfMutables, SetState <TValue> state)
     : base(queryOfMutables, state)
 {
     this._state = state;
 }
Exemplo n.º 6
0
 internal SetProxyImpl(SetProxyQuery <TValue> cq, SetState <TValue> state)
     : base(cq, state)
 {
     this._state = state;
 }
Exemplo n.º 7
0
 internal SetQueryImpl(SetState <TValue> state)
     : base(state)
 {
     this._state = state;
 }
Exemplo n.º 8
0
 internal SetQueryOfQueriesImpl(SetQuery <TValueImmutable> iq, SetState <TValue> state)
     : base(iq, state)
 {
     this._state = state;
 }