SplayNode< V > Class Template Reference

#include <splay.h>

Inheritance diagram for SplayNode< V >:
Collaboration diagram for SplayNode< V >:

Public Types

typedef V Value
 
typedef int SPLAYCMP(Value const &a, Value const &b)
 

Public Member Functions

 SplayNode (Value const &)
 
SplayNode< V > const * start () const
 
SplayNode< V > const * finish () const
 
SplayNode< V > * remove (const Value data, SPLAYCMP *compare)
 
SplayNode< V > * insert (Value data, SPLAYCMP *compare)
 
template<class FindValue >
SplayNode< V > * splay (const FindValue &data, int(*compare)(FindValue const &a, Value const &b)) const
 

Public Attributes

Value data
 
SplayNode< V > * left
 
SplayNode< V > * right
 
SplayNode< V > * visitThreadUp
 

Detailed Description

template<class V>
class SplayNode< V >

Definition at line 18 of file splay.h.

Member Typedef Documentation

◆ SPLAYCMP

template<class V >
typedef int SplayNode< V >::SPLAYCMP(Value const &a, Value const &b)

Definition at line 22 of file splay.h.

◆ Value

template<class V >
typedef V SplayNode< V >::Value

Definition at line 21 of file splay.h.

Constructor & Destructor Documentation

◆ SplayNode()

template<class V >
SplayNode< V >::SplayNode ( Value const &  someData)

Definition at line 96 of file splay.h.

Member Function Documentation

◆ finish()

template<class V >
SplayNode< V > const * SplayNode< V >::finish

Definition at line 110 of file splay.h.

References cur.

◆ insert()

template<class V >
SplayNode< V > * SplayNode< V >::insert ( Value  data,
SPLAYCMP compare 
)

Definition at line 145 of file splay.h.

References SplayNode< V >::left, SplayNode< V >::right, and splayLastResult.

◆ remove()

template<class V >
SplayNode< V > * SplayNode< V >::remove ( const Value  data,
SPLAYCMP compare 
)

Definition at line 120 of file splay.h.

References SplayNode< V >::left, SplayNode< V >::right, and splayLastResult.

◆ splay()

template<class V >
template<class FindValue >
SplayNode< V > * SplayNode< V >::splay ( const FindValue &  data,
int(*)(FindValue const &a, Value const &b)  compare 
) const

look in the splay for data for where compare(data,candidate) == true. return NULL if not found, a pointer to the sought data if found.

Definition at line 171 of file splay.h.

References SplayNode< V >::data, SplayNode< V >::left, SplayNode< V >::right, and splayLastResult.

◆ start()

template<class V >
SplayNode< V > const * SplayNode< V >::start

Definition at line 100 of file splay.h.

References cur.

Member Data Documentation

◆ data

◆ left

template<class V >
SplayNode<V>* SplayNode< V >::left
mutable

◆ right

template<class V >
SplayNode<V>* SplayNode< V >::right
mutable

◆ visitThreadUp

template<class V >
SplayNode<V>* SplayNode< V >::visitThreadUp
mutable

Definition at line 28 of file splay.h.


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors