DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Attributes
DGtal::ImageContainerByHashTree< TDomain, TValue, THashKey >::Node Class Reference

#include <ImageContainerByHashTree.h>

Collaboration diagram for DGtal::ImageContainerByHashTree< TDomain, TValue, THashKey >::Node:
Collaboration graph
[legend]

Public Member Functions

 Node (Value aValue, HashKey key)
NodegetNext ()
void setNext (Node *next)
HashKey getKey ()
ValuegetObject ()
 ~Node ()

Protected Attributes

HashKey myKey
NodemyNext
Value myData

Detailed Description

template<typename TDomain, typename TValue, typename THashKey = typename DGtal::uint64_t>
class DGtal::ImageContainerByHashTree< TDomain, TValue, THashKey >::Node

An internal class that corresponds to a node of a linked list (as the hashTable points to linked lists to handle collisions). Each element in the container is placed in a Node.

Definition at line 592 of file ImageContainerByHashTree.h.


Constructor & Destructor Documentation

template<typename TDomain, typename TValue, typename THashKey = typename DGtal::uint64_t>
DGtal::ImageContainerByHashTree< TDomain, TValue, THashKey >::Node::Node ( Value  aValue,
HashKey  key 
)
inline

Construtctor: create pair (aValue, key)

Parameters:
aValueFirst value
keykey in the hashtree

Definition at line 602 of file ImageContainerByHashTree.h.

References DGtal::ImageContainerByHashTree< TDomain, TValue, THashKey >::Node::myData, and DGtal::ImageContainerByHashTree< TDomain, TValue, THashKey >::Node::myKey.

{
myData = aValue;
myKey = key;
}
template<typename TDomain, typename TValue, typename THashKey = typename DGtal::uint64_t>
DGtal::ImageContainerByHashTree< TDomain, TValue, THashKey >::Node::~Node ( )
inline

Definition at line 644 of file ImageContainerByHashTree.h.

{ }

Member Function Documentation

template<typename TDomain, typename TValue, typename THashKey = typename DGtal::uint64_t>
HashKey DGtal::ImageContainerByHashTree< TDomain, TValue, THashKey >::Node::getKey ( )
inline
template<typename TDomain, typename TValue, typename THashKey = typename DGtal::uint64_t>
Node* DGtal::ImageContainerByHashTree< TDomain, TValue, THashKey >::Node::getNext ( )
inline
template<typename TDomain, typename TValue, typename THashKey = typename DGtal::uint64_t>
Value& DGtal::ImageContainerByHashTree< TDomain, TValue, THashKey >::Node::getObject ( )
inline
template<typename TDomain, typename TValue, typename THashKey = typename DGtal::uint64_t>
void DGtal::ImageContainerByHashTree< TDomain, TValue, THashKey >::Node::setNext ( Node next)
inline

Insert the pair (value,key) next in the node list

Parameters:
nexta pointer to a pair (value,key) (Node).

Definition at line 622 of file ImageContainerByHashTree.h.

References DGtal::ImageContainerByHashTree< TDomain, TValue, THashKey >::Node::myNext.

Referenced by DGtal::ImageContainerByHashTree< TDomain, TValue, THashKey >::addNode(), and DGtal::ImageContainerByHashTree< TDomain, TValue, THashKey >::removeNode().

{
myNext = next;
}

Field Documentation

template<typename TDomain, typename TValue, typename THashKey = typename DGtal::uint64_t>
Value DGtal::ImageContainerByHashTree< TDomain, TValue, THashKey >::Node::myData
protected
template<typename TDomain, typename TValue, typename THashKey = typename DGtal::uint64_t>
HashKey DGtal::ImageContainerByHashTree< TDomain, TValue, THashKey >::Node::myKey
protected
template<typename TDomain, typename TValue, typename THashKey = typename DGtal::uint64_t>
Node* DGtal::ImageContainerByHashTree< TDomain, TValue, THashKey >::Node::myNext
protected

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