48 L const & rLink =
L())
72#define STORE_MAGIC_BTREENODE sal_uInt32(0x58190322)
100 return sal_uInt16(
capacity() /
sizeof(
T));
110 return sal_uInt16(
usage() /
sizeof(
T));
151 sal_uInt16
find (
const T& t)
const;
152 void insert (sal_uInt16 i,
const T& t);
153 void remove (sal_uInt16 i);
OStoreBTreeNodeObject self
virtual storeError guard(sal_uInt32 nAddr) override
storeError split(sal_uInt16 nIndexL, PageHolderObject< page > &rxPageL, OStorePageBIOS &rBIOS)
split.
OStoreBTreeNodeObject(std::shared_ptr< PageData > const &rxPage=std::shared_ptr< PageData >())
virtual storeError verify(sal_uInt32 nAddr) const override
storeError remove(sal_uInt16 nIndexL, OStoreBTreeEntry &rEntryL, OStorePageBIOS &rBIOS)
remove (down to leaf node, recursive).
storeError loadOrCreate(sal_uInt32 nAddr, OStorePageBIOS &rBIOS)
storeError find_lookup(OStoreBTreeNodeObject &rNode, sal_uInt16 &rIndex, OStorePageKey const &rKey, OStorePageBIOS &rBIOS) const
find_lookup (w/o split()).
storeError change(PageHolderObject< page > &rxPageL, OStorePageBIOS &rBIOS)
change (Root).
storeError find_insert(OStoreBTreeNodeObject &rNode, sal_uInt16 &rIndex, OStorePageKey const &rKey, OStorePageBIOS &rBIOS)
find_insert (possibly with split()).
OStoreBTreeNodeObject base
OStoreBTreeRootObject(std::shared_ptr< PageData > const &rxPage=std::shared_ptr< PageData >())
void testInvariant(char const *message) const
testInvariant.
Old OStorePageCache implementation.
sal_uInt32 htonl(sal_uInt32 h)
sal_uInt16 ntohs(sal_uInt16 n)
sal_uInt32 ntohl(sal_uInt32 n)
sal_uInt16 htons(sal_uInt16 h)
#define STORE_MAGIC_BTREENODE
OStoreBTreeEntry(K const &rKey=K(), L const &rLink=L())
CompareResult compare(const OStoreBTreeEntry &rOther) const
void split(const self &rPageL)
split (left half copied from right half of left page).
static const sal_uInt32 theTypeId
void remove(sal_uInt16 i)
sal_uInt16 capacityCount() const
capacityCount (must be even).
void truncate(sal_uInt16 n)
truncate (to n elements).
sal_uInt16 capacity() const
void usageCount(sal_uInt16 nCount)
static const sal_uInt16 thePageSize
storeError verify() const
void insert(sal_uInt16 i, const T &t)
void depth(sal_uInt32 nDepth)
static const size_t theSize
OStoreBTreeNodeData(sal_uInt16 nPageSize)
sal_uInt16 usageCount() const
sal_uInt16 find(const T &t) const
sal_uInt32 m_nMagic
Representation.
static const size_t theSize
theSize.
constexpr sal_uInt16 STORE_MINIMUM_PAGESIZE
PageSize (enforced) limits.
storeError
Error Code enumeration.
@ store_E_InvalidChecksum