Пример #1
0
 /// <inheritdoc />
 public override void RemoveMemoryEntry(MemoryIndex index)
 {
     if (IndexData.ContainsKey(index))
     {
         tracker.DeletedIndex(index);
         IndexData.Remove(index);
     }
 }
Пример #2
0
        /// <inheritdoc />
        public override void RemoveArray(MemoryIndex index, AssociativeArray arrayValue)
        {
            arrayDescriptors.Remove(arrayValue);

            IIndexDefinition data;

            if (!indexDefinitions.TryGetValue(index, out data))
            {
                data = new CopyIndexDefinition();
            }

            IIndexDefinitionBuilder builder = data.Builder(this);

            builder.SetArray(null);

            indexDefinitions[index] = builder.Build(this);
            GetWriteableStackContext(index.CallLevel).WriteableArrays.Remove(arrayValue);
        }
Пример #3
0
        /// <inheritdoc />
        public override void RemoveArray(MemoryIndex index, AssociativeArray arrayValue)
        {
            arrayDescriptors.Remove(arrayValue);

            IIndexDefinition data;

            if (!indexDefinitions.TryGetValue(index, out data))
            {
                data = Factories.StructuralContainersFactories.IndexDefinitionFactory.CreateIndexDefinition(this);
            }

            IIndexDefinitionBuilder builder = data.Builder(this);

            builder.SetArray(null);

            indexDefinitions[index] = builder.Build(this);
            changeTracker.ModifiedIndex(index);
            GetWriteableStackContext(index.CallLevel).WriteableArrays.Remove(arrayValue);
        }
Пример #4
0
 /// <inheritdoc />
 public override void RemoveIndex(MemoryIndex index)
 {
     indexDefinitions.Remove(index);
 }
Пример #5
0
 /// <inheritdoc />
 public override void RemoveIndex(MemoryIndex index)
 {
     indexDefinitions.Remove(index);
     changeTracker.DeletedIndex(index);
 }