LibreOffice Module dbaccess (master) 1
hsqlbinarynode.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#pragma once
11
12#include <vector>
13
14#include "rowinputbinary.hxx"
15#include "columndef.hxx"
16
17namespace dbahsql
18{
20{
21private:
22 sal_Int32 m_nLeft = -1;
23 sal_Int32 m_nRight = -1;
24 sal_Int32 m_nPos = -1;
25
26public:
31 HsqlBinaryNode(sal_Int32 nPos);
32
38 void readChildren(HsqlRowInputStream const& rInput);
39
44 sal_Int32 getLeft() const;
45
50 sal_Int32 getRight() const;
51
57 std::vector<css::uno::Any> readRow(HsqlRowInputStream& rInput,
58 const std::vector<ColumnDefinition>& aColTypes,
59 sal_Int32 nIndexCount);
60};
61}
62
63/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void readChildren(HsqlRowInputStream const &rInput)
Read position of children from data file.
HsqlBinaryNode(sal_Int32 nPos)
Represents one element of an AVL tree in the binary file which contains the data.
sal_Int32 getLeft() const
Get Position of left children.
std::vector< css::uno::Any > readRow(HsqlRowInputStream &rInput, const std::vector< ColumnDefinition > &aColTypes, sal_Int32 nIndexCount)
Read the row represented by this node.
sal_Int32 getRight() const
Get Position of right children.