Пример #1
0
        public BTreeNode(IHierarchyObj owner)
        {
            this.m_tuples = new BTreeNodeTupleList(3);
            BTreeNodeTuple tuple = new BTreeNodeTuple(this.CreateBTreeNode(null, owner), -1);

            this.m_tuples.Add(tuple, null);
        }
Пример #2
0
        void IPersistable.Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(BTreeNode.m_declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Tuples:
                    this.m_tuples = (BTreeNodeTupleList)reader.ReadRIFObject();
                    break;

                case MemberName.IndexInParent:
                    this.m_indexInParent = reader.ReadInt32();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }