Example #1
0
        internal BTreeNode(IHierarchyObj owner)
        {
            m_tuples = new BTreeNodeTupleList(3);
            BTreeNodeTuple tuple = new BTreeNodeTuple(CreateBTreeNode(null, owner), -1);

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

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

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