Tapkee
v_array< T > Class Template Reference

#include <covertree_point.hpp>

List of all members.

Public Member Functions

last ()
void decr ()
 v_array ()
T & operator[] (IndexType i)

Public Attributes

int index
int length
T * elements

Detailed Description

template<class T>
class tapkee::tapkee_internal::v_array< T >

Class v_array taken directly from JL's implementation.

Definition at line 28 of file covertree_point.hpp.


Constructor & Destructor Documentation

v_array ( )

Create an empty v_array

Definition at line 39 of file covertree_point.hpp.


Member Function Documentation

void decr ( )

Decrement the pointer to the last element

Definition at line 36 of file covertree_point.hpp.

T last ( )

Getter for the the last element of the v_array

Returns:
the last element of the array

Definition at line 33 of file covertree_point.hpp.

T& operator[] ( IndexType  i)

Element access operator

Parameters:
iof the element to be read
Returns:
the corresponding element

Definition at line 44 of file covertree_point.hpp.


Member Data Documentation

Pointer to the beginning of the v_array elements

Definition at line 54 of file covertree_point.hpp.

int index

Pointer to the last element of the v_array

Definition at line 48 of file covertree_point.hpp.

int length

Length of the v_array

Definition at line 51 of file covertree_point.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines