Point Cloud Library (PCL)  1.9.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
pcl::HashTableOLD Class Reference

#include <pcl/ml/permutohedral.h>

Public Member Functions

 HashTableOLD (int key_size, int n_elements)
 
 ~HashTableOLD ()
 
int size () const
 
void reset ()
 
int find (const short *k, bool create=false)
 
const short * getKey (int i) const
 

Protected Member Functions

void grow ()
 
size_t hash (const short *k)
 

Protected Attributes

size_t key_size_
 
size_t filled_
 
size_t capacity_
 
short * keys_
 
int * table_
 

Detailed Description

Definition at line 149 of file permutohedral.h.

Constructor & Destructor Documentation

pcl::HashTableOLD::HashTableOLD ( int  key_size,
int  n_elements 
)
inlineexplicit

Definition at line 196 of file permutohedral.h.

References capacity_.

pcl::HashTableOLD::~HashTableOLD ( )
inline

Definition at line 201 of file permutohedral.h.

References keys_, and table_.

Member Function Documentation

int pcl::HashTableOLD::find ( const short *  k,
bool  create = false 
)
inline

Definition at line 212 of file permutohedral.h.

References capacity_, grow(), hash(), and key_size_.

const short* pcl::HashTableOLD::getKey ( int  i) const
inline

Definition at line 241 of file permutohedral.h.

References key_size_.

Referenced by grow().

void pcl::HashTableOLD::grow ( )
inlineprotected

Definition at line 161 of file permutohedral.h.

References capacity_, getKey(), hash(), keys_, and table_.

Referenced by find().

size_t pcl::HashTableOLD::hash ( const short *  k)
inlineprotected

Definition at line 187 of file permutohedral.h.

References key_size_.

Referenced by find(), and grow().

void pcl::HashTableOLD::reset ( )
inline

Definition at line 208 of file permutohedral.h.

int pcl::HashTableOLD::size ( ) const
inline

Definition at line 205 of file permutohedral.h.

References filled_.

Member Data Documentation

size_t pcl::HashTableOLD::capacity_
protected

Definition at line 158 of file permutohedral.h.

Referenced by find(), grow(), and HashTableOLD().

size_t pcl::HashTableOLD::filled_
protected

Definition at line 158 of file permutohedral.h.

Referenced by size().

size_t pcl::HashTableOLD::key_size_
protected

Definition at line 158 of file permutohedral.h.

Referenced by find(), getKey(), and hash().

short* pcl::HashTableOLD::keys_
protected

Definition at line 159 of file permutohedral.h.

Referenced by grow(), and ~HashTableOLD().

int* pcl::HashTableOLD::table_
protected

Definition at line 160 of file permutohedral.h.

Referenced by grow(), and ~HashTableOLD().


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