android: Update app icon to new startcenter icon
[LibreOffice.git] / dbaccess / source / filter / hsqldb / hsqlbinarynode.hxx
blob97777e7d14c818db2c363a6939e3fd1716b573c8
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #pragma once
12 #include <vector>
14 #include "rowinputbinary.hxx"
15 #include "columndef.hxx"
17 namespace dbahsql
19 class HsqlBinaryNode
21 private:
22 sal_Int32 m_nLeft = -1;
23 sal_Int32 m_nRight = -1;
24 sal_Int32 m_nPos = -1;
26 public:
27 /**
28 * Represents one element of an AVL tree in the binary file which contains
29 * the data.
31 HsqlBinaryNode(sal_Int32 nPos);
33 /**
34 * Read position of children from data file.
36 * @param rInput input stream where the positions should be read from.
38 void readChildren(HsqlRowInputStream const& rInput);
40 /**
41 * Get Position of left children. It should be called only after position of
42 * children is read.
44 sal_Int32 getLeft() const;
46 /**
47 * Get Position of right children. It should be called only after position of
48 * children is read.
50 sal_Int32 getRight() const;
52 /**
53 * Read the row represented by this node.
55 * @param rInput input stream where the row should be read from.
57 std::vector<css::uno::Any> readRow(HsqlRowInputStream& rInput,
58 const std::vector<ColumnDefinition>& aColTypes,
59 sal_Int32 nIndexCount);
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */