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 33 of file Vector.h.

◆ iterator

typedef T* iterator

Definition at line 25 of file Vector.h.

◆ pointer

typedef T* pointer

Definition at line 29 of file Vector.h.

◆ ptrdiff_t

typedef size_t ptrdiff_t

Definition at line 31 of file Vector.h.

◆ reference

typedef T& reference

Definition at line 27 of file Vector.h.

◆ reverse_iterator

typedef std::reverse_iterator< T* > reverse_iterator

Definition at line 32 of file Vector.h.

◆ size_type

typedef size_t size_type

Definition at line 23 of file Vector.h.

◆ value_type

typedef T value_type

Definition at line 24 of file Vector.h.

Constructor & Destructor Documentation

◆ Vector() [1/5]

Vector ( )
inline

Definition at line 35 of file Vector.h.

◆ Vector() [2/5]

Vector ( size_type  s)
inline

Definition at line 42 of file Vector.h.

◆ Vector() [3/5]

Vector ( size_type  s,
const T v 
)
inline

Definition at line 54 of file Vector.h.

◆ Vector() [4/5]

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

Definition at line 65 of file Vector.h.

◆ Vector() [5/5]

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

Definition at line 86 of file Vector.h.

◆ ~Vector()

~Vector ( )
inline

Definition at line 105 of file Vector.h.

Member Function Documentation

◆ at() [1/2]

T& at ( size_type  i)
inline

Definition at line 308 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 313 of file Vector.h.

◆ back() [1/2]

T& back ( )
inline

Definition at line 500 of file Vector.h.

+ Here is the caller graph for this function:

◆ back() [2/2]

const T& back ( ) const
inline

Definition at line 505 of file Vector.h.

◆ begin() [1/2]

T* begin ( )
inline

Definition at line 460 of file Vector.h.

+ Here is the caller graph for this function:

◆ begin() [2/2]

const T* begin ( ) const
inline

Definition at line 465 of file Vector.h.

◆ capacity()

size_type capacity ( ) const
inline

Definition at line 217 of file Vector.h.

+ Here is the caller graph for this function:

◆ clear()

void clear ( )
inline

Definition at line 174 of file Vector.h.

+ Here is the caller graph for this function:

◆ end() [1/2]

T* end ( )
inline

Definition at line 470 of file Vector.h.

+ Here is the caller graph for this function:

◆ end() [2/2]

const T* end ( ) const
inline

Definition at line 475 of file Vector.h.

◆ erase()

void erase ( T where)
inline

Definition at line 416 of file Vector.h.

+ Here is the caller graph for this function:

◆ front() [1/2]

T& front ( )
inline

Definition at line 510 of file Vector.h.

+ Here is the caller graph for this function:

◆ front() [2/2]

const T& front ( ) const
inline

Definition at line 515 of file Vector.h.

◆ insert()

void insert ( T where,
const T v 
)
inline

Definition at line 374 of file Vector.h.

◆ operator const T *()

operator const T * ( ) const
inline

Definition at line 303 of file Vector.h.

◆ operator T*()

operator T* ( )
inline

Definition at line 298 of file Vector.h.

◆ operator=() [1/2]

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

Definition at line 117 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 440 of file Vector.h.

◆ push_back()

void push_back ( const T v)
inline

Definition at line 346 of file Vector.h.

+ Here is the caller graph for this function:

◆ rbegin() [1/2]

reverse_iterator rbegin ( )
inline

Definition at line 480 of file Vector.h.

◆ rbegin() [2/2]

const_reverse_iterator rbegin ( ) const
inline

Definition at line 485 of file Vector.h.

◆ rend() [1/2]

reverse_iterator rend ( )
inline

Definition at line 490 of file Vector.h.

◆ rend() [2/2]

const_reverse_iterator rend ( ) const
inline

Definition at line 495 of file Vector.h.

◆ reserve()

void reserve ( size_type  s)
inline

Definition at line 187 of file Vector.h.

+ Here is the caller graph for this function:

◆ resize() [1/2]

void resize ( size_type  s)
inline

Definition at line 293 of file Vector.h.

◆ resize() [2/2]

void resize ( size_type  s,
const value_type v 
)
inline

Definition at line 222 of file Vector.h.

+ Here is the caller graph for this function:

◆ size()

size_type size ( ) const
inline

Definition at line 212 of file Vector.h.

Member Data Documentation

◆ const_iterator

const typedef T* const_iterator

Definition at line 26 of file Vector.h.

◆ const_pointer

const typedef T* const_pointer

Definition at line 30 of file Vector.h.

◆ const_reference

const typedef T& const_reference

Definition at line 28 of file Vector.h.


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