Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
DVector< X > Struct Template Reference

#include <dmatrix.hh>

Public Member Functions

void detach ()
 
int dim () const
 
 DVector (int n=0)
 
 DVector (const DVector &)
 
operator* (const DVector &) const
 
DVector operator* (const X &) const
 
DVector operator+ (const DVector &) const
 
DVector operator- (const DVector &) const
 
DVectoroperator= (const DVector &)
 
X & operator[] (int i)
 
const X & operator[] (int i) const
 
 ~DVector ()
 

Static Public Member Functions

static DVector< X > I (int)
 

Protected Attributes

X * elems
 
int * shares
 
int size
 

Detailed Description

template<class X>
struct DVector< X >

Definition at line 12 of file dmatrix.hh.

Constructor & Destructor Documentation

◆ DVector() [1/2]

template<class X>
DVector< X >::DVector ( int  n = 0)

◆ ~DVector()

template<class X>
DVector< X >::~DVector ( )

◆ DVector() [2/2]

template<class X>
DVector< X >::DVector ( const DVector< X > &  )

Member Function Documentation

◆ detach()

template<class X>
void DVector< X >::detach ( )

◆ dim()

template<class X>
int DVector< X >::dim ( ) const
inline

Definition at line 32 of file dmatrix.hh.

◆ I()

template<class X>
static DVector<X> DVector< X >::I ( int  )
static

◆ operator*() [1/2]

template<class X>
X DVector< X >::operator* ( const DVector< X > &  ) const

◆ operator*() [2/2]

template<class X>
DVector DVector< X >::operator* ( const X &  ) const

◆ operator+()

template<class X>
DVector DVector< X >::operator+ ( const DVector< X > &  ) const

◆ operator-()

template<class X>
DVector DVector< X >::operator- ( const DVector< X > &  ) const

◆ operator=()

template<class X>
DVector& DVector< X >::operator= ( const DVector< X > &  )

◆ operator[]() [1/2]

template<class X>
X& DVector< X >::operator[] ( int  i)
inline

Definition at line 20 of file dmatrix.hh.

◆ operator[]() [2/2]

template<class X>
const X& DVector< X >::operator[] ( int  i) const
inline

Definition at line 25 of file dmatrix.hh.

Member Data Documentation

◆ elems

template<class X>
X* DVector< X >::elems
protected

Definition at line 39 of file dmatrix.hh.

◆ shares

template<class X>
int* DVector< X >::shares
protected

Definition at line 41 of file dmatrix.hh.

◆ size

template<class X>
int DVector< X >::size
protected

Definition at line 40 of file dmatrix.hh.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:38:59