ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::StaticVector< T > Class Template Reference

#include <StaticVector.h>

Public Member Functions

 StaticVector ()
 
 StaticVector (int n)
 
 StaticVector (int n, const T &value)
 
const T & operator[] (int index) const
 
T & operator[] (int index)
 
void clear ()
 
Iterator begin ()
 
Iterator end ()
 
ConstIterator begin () const
 
ConstIterator end () const
 
Reference front ()
 
ConstReference front () const
 
Reference back ()
 
ConstReference back () const
 
const std::vector< T > & getData () const
 
std::vector< T > & getDataWritable ()
 
int size () const
 
bool empty () const
 
size_t capacity () const
 
void reserve (int n)
 
void resize (int n)
 
void resize (int n, T value)
 
void resize_with (int n, const T &val)
 
void swap (StaticVector &other)
 
void assign (int n, T value)
 
void shrink_to_fit ()
 
void reserveAddIfNeeded (int nplanned, int ntoallocated)
 
void reserveAdd (int ntoallocated)
 
void push_back (const T &val)
 
void push_front (const T &val)
 
void push_back_arr (StaticVector< T > *arr)
 
void push_back_arr (StaticVector< T > &arr)
 
void remove (int i)
 
int push_back_distinct (const T &val)
 
T pop ()
 
int indexOf (const T &value) const
 
int indexOfSorted (const T &value) const
 
int indexOfNearestSorted (const T &value) const
 
int minValId () const
 
int maxValId () const
 

Constructor & Destructor Documentation

◆ StaticVector() [1/3]

template<class T >
cloudViewer::StaticVector< T >::StaticVector ( )
inline

◆ StaticVector() [2/3]

template<class T >
cloudViewer::StaticVector< T >::StaticVector ( int  n)
inline

◆ StaticVector() [3/3]

template<class T >
cloudViewer::StaticVector< T >::StaticVector ( int  n,
const T &  value 
)
inline

Member Function Documentation

◆ assign()

template<class T >
void cloudViewer::StaticVector< T >::assign ( int  n,
T  value 
)
inline

◆ back() [1/2]

template<class T >
Reference cloudViewer::StaticVector< T >::back ( )
inline

◆ back() [2/2]

template<class T >
ConstReference cloudViewer::StaticVector< T >::back ( ) const
inline

◆ begin() [1/2]

template<class T >
Iterator cloudViewer::StaticVector< T >::begin ( )
inline

◆ begin() [2/2]

template<class T >
ConstIterator cloudViewer::StaticVector< T >::begin ( ) const
inline

◆ capacity()

template<class T >
size_t cloudViewer::StaticVector< T >::capacity ( ) const
inline

◆ clear()

template<class T >
void cloudViewer::StaticVector< T >::clear ( )
inline

◆ empty()

template<class T >
bool cloudViewer::StaticVector< T >::empty ( ) const
inline

◆ end() [1/2]

template<class T >
Iterator cloudViewer::StaticVector< T >::end ( )
inline

◆ end() [2/2]

template<class T >
ConstIterator cloudViewer::StaticVector< T >::end ( ) const
inline

◆ front() [1/2]

template<class T >
Reference cloudViewer::StaticVector< T >::front ( )
inline

◆ front() [2/2]

template<class T >
ConstReference cloudViewer::StaticVector< T >::front ( ) const
inline

◆ getData()

template<class T >
const std::vector<T>& cloudViewer::StaticVector< T >::getData ( ) const
inline

◆ getDataWritable()

template<class T >
std::vector<T>& cloudViewer::StaticVector< T >::getDataWritable ( )
inline

◆ indexOf()

template<class T >
int cloudViewer::StaticVector< T >::indexOf ( const T &  value) const
inline

References Utils::distance().

◆ indexOfNearestSorted()

template<class T >
int cloudViewer::StaticVector< T >::indexOfNearestSorted ( const T &  value) const
inline

References Utils::distance().

◆ indexOfSorted()

template<class T >
int cloudViewer::StaticVector< T >::indexOfSorted ( const T &  value) const
inline

◆ maxValId()

template<class T >
int cloudViewer::StaticVector< T >::maxValId ( ) const
inline

References Utils::distance().

◆ minValId()

template<class T >
int cloudViewer::StaticVector< T >::minValId ( ) const
inline

References Utils::distance().

◆ operator[]() [1/2]

template<class T >
T& cloudViewer::StaticVector< T >::operator[] ( int  index)
inline

◆ operator[]() [2/2]

template<class T >
const T& cloudViewer::StaticVector< T >::operator[] ( int  index) const
inline

◆ pop()

template<class T >
T cloudViewer::StaticVector< T >::pop ( )
inline

◆ push_back()

template<class T >
void cloudViewer::StaticVector< T >::push_back ( const T &  val)
inline

◆ push_back_arr() [1/2]

template<class T >
void cloudViewer::StaticVector< T >::push_back_arr ( StaticVector< T > &  arr)
inline

◆ push_back_arr() [2/2]

template<class T >
void cloudViewer::StaticVector< T >::push_back_arr ( StaticVector< T > *  arr)
inline

◆ push_back_distinct()

template<class T >
int cloudViewer::StaticVector< T >::push_back_distinct ( const T &  val)
inline

◆ push_front()

template<class T >
void cloudViewer::StaticVector< T >::push_front ( const T &  val)
inline

◆ remove()

template<class T >
void cloudViewer::StaticVector< T >::remove ( int  i)
inline

◆ reserve()

template<class T >
void cloudViewer::StaticVector< T >::reserve ( int  n)
inline

◆ reserveAdd()

template<class T >
void cloudViewer::StaticVector< T >::reserveAdd ( int  ntoallocated)
inline

◆ reserveAddIfNeeded()

template<class T >
void cloudViewer::StaticVector< T >::reserveAddIfNeeded ( int  nplanned,
int  ntoallocated 
)
inline

References size.

◆ resize() [1/2]

template<class T >
void cloudViewer::StaticVector< T >::resize ( int  n)
inline

◆ resize() [2/2]

template<class T >
void cloudViewer::StaticVector< T >::resize ( int  n,
T  value 
)
inline

◆ resize_with()

template<class T >
void cloudViewer::StaticVector< T >::resize_with ( int  n,
const T &  val 
)
inline

◆ shrink_to_fit()

template<class T >
void cloudViewer::StaticVector< T >::shrink_to_fit ( )
inline

◆ size()

template<class T >
int cloudViewer::StaticVector< T >::size ( ) const
inline

◆ swap()

template<class T >
void cloudViewer::StaticVector< T >::swap ( StaticVector< T > &  other)
inline

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