Vector< T, AllocatorT > Class Template Reference

#include <VisionX/components/pointcloud_processor/EfficientRANSACPrimitiveExtractor/EfficientRANSAC/MiscLib/Vector.h>

+ Inheritance diagram for Vector< T, AllocatorT >:

Public Types

typedef std::reverse_iterator< const T * > const_reverse_iterator
 
typedef Titerator
 
typedef Tpointer
 
typedef size_t ptrdiff_t
 
typedef Treference
 
typedef std::reverse_iterator< T * > reverse_iterator
 
typedef size_t size_type
 
typedef T value_type
 

Public Member Functions

Tat (size_type i)
 
const Tat (size_type i) const
 
Tback ()
 
const Tback () const
 
Tbegin ()
 
const Tbegin () const
 
size_type capacity () const
 
void clear ()
 
Tend ()
 
const Tend () const
 
void erase (T *where)
 
Tfront ()
 
const Tfront () const
 
void insert (T *where, const T &v)
 
 operator const T * () const
 
 operator T* ()
 
Vector< T, AllocatorT > & operator= (const Vector< T, AllocatorT > &v)
 
template<class OtherAllocatorT >
Vector< T, AllocatorT > & operator= (const Vector< T, OtherAllocatorT > &v)
 
void pop_back ()
 
void push_back (const T &v)
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
void reserve (size_type s)
 
void resize (size_type s)
 
void resize (size_type s, const value_type &v)
 
size_type size () const
 
 Vector ()
 
 Vector (const Vector< T, AllocatorT > &v)
 
template<class OtherAllocatorT >
 Vector (const Vector< T, OtherAllocatorT > &v)
 
 Vector (size_type s)
 
 Vector (size_type s, const T &v)
 
 ~Vector ()
 

Public Attributes

const typedef Tconst_iterator
 
const typedef Tconst_pointer
 
const typedef Tconst_reference
 

Additional Inherited Members

- Protected Types inherited from AlignedAllocator< T >
typedef ptrdiff_t difference_type
 
typedef Tpointer
 
typedef Treference
 
typedef size_t size_type
 
typedef T value_type
 
- Protected Member Functions inherited from AlignedAllocator< T >
const_pointer address (const_reference x) const
 
pointer address (reference x) const
 
 AlignedAllocator () throw ()
 
 AlignedAllocator (const AlignedAllocator< T, DefaultAlignment > &) throw ()
 
 AlignedAllocator (const AlignedAllocator< U, DefaultAlignment > &) throw ()
 
pointer allocate (size_type s, std::allocator_traits< std::allocator< void >>::const_void_pointer hint=0)
 
void construct (pointer p, const T &val)
 
void deallocate (pointer p, size_type)
 
void destroy (pointer p)
 
size_type max_size () const throw ()
 
bool operator!= (const AlignedAllocator< U, DefaultAlignment > &) const
 
bool operator!= (const U &) const
 
bool operator== (const AlignedAllocator< U, DefaultAlignment > &) const
 
bool operator== (const U &) const
 
- Protected Attributes inherited from AlignedAllocator< T >
const typedef Tconst_pointer
 
const typedef Tconst_reference
 

Detailed Description

template<class T, class AllocatorT = MiscLib::AlignedAllocator<T>>
class MiscLib::Vector< T, AllocatorT >

Definition at line 19 of file Vector.h.

Member Typedef Documentation

◆ const_reverse_iterator

typedef std::reverse_iterator<const T*> const_reverse_iterator

Definition at line 32 of file Vector.h.

◆ iterator

typedef T* iterator

Definition at line 24 of file Vector.h.

◆ pointer

typedef T* pointer

Definition at line 28 of file Vector.h.

◆ ptrdiff_t

typedef size_t ptrdiff_t

Definition at line 30 of file Vector.h.

◆ reference

typedef T& reference

Definition at line 26 of file Vector.h.

◆ reverse_iterator

typedef std::reverse_iterator<T*> reverse_iterator

Definition at line 31 of file Vector.h.

◆ size_type

typedef size_t size_type

Definition at line 22 of file Vector.h.

◆ value_type

typedef T value_type

Definition at line 23 of file Vector.h.

Constructor & Destructor Documentation

◆ Vector() [1/5]

Vector ( )
inline

Definition at line 34 of file Vector.h.

◆ Vector() [2/5]

Vector ( size_type  s)
inline

Definition at line 41 of file Vector.h.

◆ Vector() [3/5]

Vector ( size_type  s,
const T v 
)
inline

Definition at line 53 of file Vector.h.

◆ Vector() [4/5]

Vector ( const Vector< T, AllocatorT > &  v)
inline

Definition at line 64 of file Vector.h.

◆ Vector() [5/5]

Vector ( const Vector< T, OtherAllocatorT > &  v)
inline

Definition at line 84 of file Vector.h.

◆ ~Vector()

~Vector ( )
inline

Definition at line 103 of file Vector.h.

Member Function Documentation

◆ at() [1/2]

T& at ( size_type  i)
inline

Definition at line 314 of file Vector.h.

+ Here is the caller graph for this function:

◆ at() [2/2]

const T& at ( size_type  i) const
inline

Definition at line 320 of file Vector.h.

◆ back() [1/2]

T& back ( )
inline

Definition at line 520 of file Vector.h.

+ Here is the caller graph for this function:

◆ back() [2/2]

const T& back ( ) const
inline

Definition at line 526 of file Vector.h.

◆ begin() [1/2]

T* begin ( )
inline

Definition at line 472 of file Vector.h.

+ Here is the caller graph for this function:

◆ begin() [2/2]

const T* begin ( ) const
inline

Definition at line 478 of file Vector.h.

◆ capacity()

size_type capacity ( ) const
inline

Definition at line 221 of file Vector.h.

+ Here is the caller graph for this function:

◆ clear()

void clear ( )
inline

Definition at line 175 of file Vector.h.

+ Here is the caller graph for this function:

◆ end() [1/2]

T* end ( )
inline

Definition at line 484 of file Vector.h.

+ Here is the caller graph for this function:

◆ end() [2/2]

const T* end ( ) const
inline

Definition at line 490 of file Vector.h.

◆ erase()

void erase ( T where)
inline

Definition at line 426 of file Vector.h.

+ Here is the caller graph for this function:

◆ front() [1/2]

T& front ( )
inline

Definition at line 532 of file Vector.h.

+ Here is the caller graph for this function:

◆ front() [2/2]

const T& front ( ) const
inline

Definition at line 538 of file Vector.h.

◆ insert()

void insert ( T where,
const T v 
)
inline

Definition at line 383 of file Vector.h.

◆ operator const T *()

operator const T * ( ) const
inline

Definition at line 308 of file Vector.h.

◆ operator T*()

operator T* ( )
inline

Definition at line 303 of file Vector.h.

◆ operator=() [1/2]

Vector<T, AllocatorT>& operator= ( const Vector< T, AllocatorT > &  v)
inline

Definition at line 116 of file Vector.h.

◆ operator=() [2/2]

Vector<T, AllocatorT>& operator= ( const Vector< T, OtherAllocatorT > &  v)
inline

Definition at line 148 of file Vector.h.

◆ pop_back()

void pop_back ( )
inline

Definition at line 451 of file Vector.h.

◆ push_back()

void push_back ( const T v)
inline

Definition at line 354 of file Vector.h.

+ Here is the caller graph for this function:

◆ rbegin() [1/2]

reverse_iterator rbegin ( )
inline

Definition at line 496 of file Vector.h.

◆ rbegin() [2/2]

const_reverse_iterator rbegin ( ) const
inline

Definition at line 502 of file Vector.h.

◆ rend() [1/2]

reverse_iterator rend ( )
inline

Definition at line 508 of file Vector.h.

◆ rend() [2/2]

const_reverse_iterator rend ( ) const
inline

Definition at line 514 of file Vector.h.

◆ reserve()

void reserve ( size_type  s)
inline

Definition at line 189 of file Vector.h.

+ Here is the caller graph for this function:

◆ resize() [1/2]

void resize ( size_type  s)
inline

Definition at line 298 of file Vector.h.

◆ resize() [2/2]

void resize ( size_type  s,
const value_type v 
)
inline

Definition at line 227 of file Vector.h.

+ Here is the caller graph for this function:

◆ size()

size_type size ( ) const
inline

Definition at line 215 of file Vector.h.

Member Data Documentation

◆ const_iterator

const typedef T* const_iterator

Definition at line 25 of file Vector.h.

◆ const_pointer

const typedef T* const_pointer

Definition at line 29 of file Vector.h.

◆ const_reference

const typedef T& const_reference

Definition at line 27 of file Vector.h.


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