LibreOffice Module dbaccess (master) 1
Public Member Functions | Private Attributes | List of all members
dbahsql::HsqlBinaryNode Class Reference

#include <hsqlbinarynode.hxx>

Public Member Functions

 HsqlBinaryNode (sal_Int32 nPos)
 Represents one element of an AVL tree in the binary file which contains the data. More...
 
void readChildren (HsqlRowInputStream const &rInput)
 Read position of children from data file. More...
 
sal_Int32 getLeft () const
 Get Position of left children. More...
 
sal_Int32 getRight () const
 Get Position of right children. More...
 
std::vector< css::uno::Any > readRow (HsqlRowInputStream &rInput, const std::vector< ColumnDefinition > &aColTypes, sal_Int32 nIndexCount)
 Read the row represented by this node. More...
 

Private Attributes

sal_Int32 m_nLeft = -1
 
sal_Int32 m_nRight = -1
 
sal_Int32 m_nPos = -1
 

Detailed Description

Definition at line 19 of file hsqlbinarynode.hxx.

Constructor & Destructor Documentation

◆ HsqlBinaryNode()

dbahsql::HsqlBinaryNode::HsqlBinaryNode ( sal_Int32  nPos)

Represents one element of an AVL tree in the binary file which contains the data.

Definition at line 25 of file hsqlbinarynode.cxx.

References m_nPos, and nPos.

Member Function Documentation

◆ getLeft()

sal_Int32 dbahsql::HsqlBinaryNode::getLeft ( ) const

Get Position of left children.

It should be called only after position of children is read.

Definition at line 54 of file hsqlbinarynode.cxx.

References m_nLeft.

Referenced by dbahsql::HsqlImporter::processTree().

◆ getRight()

sal_Int32 dbahsql::HsqlBinaryNode::getRight ( ) const

Get Position of right children.

It should be called only after position of children is read.

Definition at line 55 of file hsqlbinarynode.cxx.

References m_nRight.

Referenced by dbahsql::HsqlImporter::processTree().

◆ readChildren()

void dbahsql::HsqlBinaryNode::readChildren ( HsqlRowInputStream const &  rInput)

Read position of children from data file.

Parameters
rInputinput stream where the positions should be read from.

Definition at line 30 of file hsqlbinarynode.cxx.

References dbahsql::HsqlRowInputStream::getInputStream(), m_nLeft, m_nPos, m_nRight, SvStream::ReadInt32(), and SvStream::Seek().

Referenced by dbahsql::HsqlImporter::processTree().

◆ readRow()

std::vector< css::uno::Any > dbahsql::HsqlBinaryNode::readRow ( HsqlRowInputStream rInput,
const std::vector< ColumnDefinition > &  aColTypes,
sal_Int32  nIndexCount 
)

Read the row represented by this node.

Parameters
rInputinput stream where the row should be read from.

Definition at line 45 of file hsqlbinarynode.cxx.

References m_nPos, nIndexCount, dbahsql::HsqlRowInputStream::readOneRow(), and dbahsql::HsqlRowInputStream::seek().

Referenced by dbahsql::HsqlImporter::processTree().

Member Data Documentation

◆ m_nLeft

sal_Int32 dbahsql::HsqlBinaryNode::m_nLeft = -1
private

Definition at line 22 of file hsqlbinarynode.hxx.

Referenced by getLeft(), and readChildren().

◆ m_nPos

sal_Int32 dbahsql::HsqlBinaryNode::m_nPos = -1
private

Definition at line 24 of file hsqlbinarynode.hxx.

Referenced by readChildren(), and readRow().

◆ m_nRight

sal_Int32 dbahsql::HsqlBinaryNode::m_nRight = -1
private

Definition at line 23 of file hsqlbinarynode.hxx.

Referenced by getRight(), and readChildren().


The documentation for this class was generated from the following files: