| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Classes | Public Member Functions | Public Attributes
TeSAM::TeRTreeNode< DATATYPE, MAXNODES, MINNODES > Class Template Reference

Class that represents a node of a TeRTree. More...

`#include <TeRTree.h>`

List of all members.

## Classes

struct | TeRTreeBranch
| Struct that represents a node-branch of a TeRTree. More...

## Public Member Functions

| TeRTreeNode ()
| Constructor.
bool | isInternalNode () const
| Returns true if this is a internal node.
bool | isLeaf () const
| Returns true if this is a leaf node.
void | init ()
| This method is used by split, when a node is re-filled.

## Public Attributes

int | count_
| Count.
int | level_
| Leaf is zero, others positive.
TeRTreeBranch | branch_ [MAXNODES]
| Branch.

## Detailed Description

### template<class DATATYPE, int MAXNODES = 8, int MINNODES = MAXNODES / 2>
class TeSAM::TeRTreeNode< DATATYPE, MAXNODES, MINNODES >

Class that represents a node of a TeRTree.

If level is 0 so this is a leaf node otherwise this is a internal node.

WARNING:

1. A branch is a union, so be carefull with the types used here!

## Constructor & Destructor Documentation

template<class DATATYPE , int MAXNODES = 8, int MINNODES = MAXNODES / 2>

TeSAM::TeRTreeNode< DATATYPE, MAXNODES, MINNODES >::TeRTreeNode | ( |  | ) | `[inline]`

Constructor.

## Member Function Documentation

template<class DATATYPE , int MAXNODES = 8, int MINNODES = MAXNODES / 2>

void TeSAM::TeRTreeNode< DATATYPE, MAXNODES, MINNODES >::init | ( |  | ) | `[inline]`

This method is used by split, when a node is re-filled.

template<class DATATYPE , int MAXNODES = 8, int MINNODES = MAXNODES / 2>

bool TeSAM::TeRTreeNode< DATATYPE, MAXNODES, MINNODES >::isInternalNode | ( |  | ) | const`[inline]`

Returns true if this is a internal node.

template<class DATATYPE , int MAXNODES = 8, int MINNODES = MAXNODES / 2>

bool TeSAM::TeRTreeNode< DATATYPE, MAXNODES, MINNODES >::isLeaf | ( | void |  | ) | const`[inline]`

Returns true if this is a leaf node.

## Member Data Documentation

template<class DATATYPE , int MAXNODES = 8, int MINNODES = MAXNODES / 2>

TeRTreeBranch TeSAM::TeRTreeNode< DATATYPE, MAXNODES, MINNODES >::branch_[MAXNODES]

Branch.

template<class DATATYPE , int MAXNODES = 8, int MINNODES = MAXNODES / 2>

int TeSAM::TeRTreeNode< DATATYPE, MAXNODES, MINNODES >::count_

Count.

template<class DATATYPE , int MAXNODES = 8, int MINNODES = MAXNODES / 2>

int TeSAM::TeRTreeNode< DATATYPE, MAXNODES, MINNODES >::level_

Leaf is zero, others positive.

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeRTree.h

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines