Classes | Public Types | Public Member Functions | List of all members
bvector< _TypeT, _Allocator > Class Template Reference

A Bentley supplied implementation std::vector. More...

#include <bvector.h>

Inheritance diagram for bvector< _TypeT, _Allocator >:
ClipPlaneSet

Public Types

typedef _TypeT value_type
 
typedef _Allocator allocator_type
 
typedef allocator_type::size_type size_type
 
typedef
allocator_type::difference_type 
difference_type
 
typedef allocator_type::reference reference
 
typedef
allocator_type::const_reference 
const_reference
 
typedef allocator_type::pointer pointer
 
typedef
allocator_type::const_pointer 
const_pointer
 
typedef
BC__RW::__rw_debug_iter
< bvector, pointer, pointer
iterator
 
typedef
BC__RW::__rw_debug_iter
< bvector, const_pointer,
pointer
const_iterator
 
typedef std::reverse_iterator
< const_iterator
const_reverse_iterator
 
typedef std::reverse_iterator
< iterator
reverse_iterator
 

Public Member Functions

iterator _C_make_iter (pointer __ptr)
 
const_iterator _C_make_iter (pointer __ptr) const
 
 bvector (const allocator_type &__alloc=allocator_type())
 
 bvector (size_type __n, const_reference __x=value_type(), const allocator_type &__alloc=allocator_type())
 
template<class _InputIter >
 bvector (_InputIter __first, _InputIter __last, const allocator_type &__alloc=allocator_type())
 
 bvector (const bvector &__rhs)
 
 bvector (bvector &&rhs)
 
bvectoroperator= (bvector &&rhs)
 
 ~bvector ()
 
bvectoroperator= (const bvector &)
 
template<class _InputIter >
void assign (_InputIter __first, _InputIter __last)
 
void assign (size_type __n, const_reference __x)
 
allocator_type get_allocator () const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
size_type size () const
 
size_type max_size () const
 
void resize (size_type, value_type=value_type())
 
size_type capacity () const
 
bool empty () const
 
void reserve (size_type)
 
reference operator[] (size_type)
 
const_reference operator[] (size_type) const
 
reference at (size_type)
 
const_reference at (size_type __n) const
 
reference front ()
 
const_reference front () const
 
pointer data ()
 
const_pointer data () const
 
reference back ()
 
const_reference back () const
 
void push_back (const_reference)
 
void pop_back ()
 
iterator insert (iterator, const_reference)
 
template<class _InputIter >
void insert (iterator __it, _InputIter __first, _InputIter __last)
 
void insert (iterator __it, size_type __n, const_reference __x)
 
iterator erase (iterator)
 
iterator erase (iterator, iterator)
 
void swap (bvector &)
 
void clear ()
 

Detailed Description

template<class _TypeT, class _Allocator = ::Bentley::BentleyAllocator<_TypeT>>
class bvector< _TypeT, _Allocator >

A Bentley supplied implementation std::vector.

This class is used in the Bentley APIs to avoid dependencies on compiler-supplied implementations of std::vector that sometimes vary with compiler settings or compiler versions. The bvector class does not suffer from these problems. This makes bvector suitable for use in Bentley public APIs.

To understand the bvector class, consult the documentation for std::vector.

See also
http://www.cplusplus.com/reference/vector/vector/

Member Typedef Documentation

typedef _Allocator allocator_type
typedef BC__RW::__rw_debug_iter<bvector, const_pointer, pointer> const_iterator
typedef allocator_type::const_pointer const_pointer
typedef allocator_type::const_reference const_reference
typedef std::reverse_iterator<const_iterator> const_reverse_iterator
typedef allocator_type::difference_type difference_type
typedef BC__RW::__rw_debug_iter<bvector, pointer, pointer> iterator
typedef allocator_type::pointer pointer
typedef allocator_type::reference reference
typedef std::reverse_iterator<iterator> reverse_iterator
typedef allocator_type::size_type size_type
typedef _TypeT value_type

Constructor & Destructor Documentation

bvector ( const allocator_type __alloc = allocator_type ())
explicit
bvector ( size_type  __n,
const_reference  __x = value_type (),
const allocator_type __alloc = allocator_type () 
)
explicit
bvector ( _InputIter  __first,
_InputIter  __last,
const allocator_type __alloc = allocator_type () 
)
bvector ( const bvector< _TypeT, _Allocator > &  __rhs)
bvector ( bvector< _TypeT, _Allocator > &&  rhs)
~bvector ( )

Member Function Documentation

iterator _C_make_iter ( pointer  __ptr)
const_iterator _C_make_iter ( pointer  __ptr) const
void assign ( _InputIter  __first,
_InputIter  __last 
)
void assign ( size_type  __n,
const_reference  __x 
)
reference at ( size_type  )
const_reference at ( size_type  __n) const
reference back ( )
const_reference back ( ) const
iterator begin ( )
const_iterator begin ( ) const
size_type capacity ( ) const
void clear ( )
pointer data ( )
const_pointer data ( ) const
bool empty ( ) const
iterator end ( )
const_iterator end ( ) const
iterator erase ( iterator  )
iterator erase ( iterator  ,
iterator   
)
reference front ( )
const_reference front ( ) const
allocator_type get_allocator ( ) const
iterator insert ( iterator  ,
const_reference   
)
void insert ( iterator  __it,
_InputIter  __first,
_InputIter  __last 
)
void insert ( iterator  __it,
size_type  __n,
const_reference  __x 
)
size_type max_size ( ) const
bvector& operator= ( bvector< _TypeT, _Allocator > &&  rhs)
bvector& operator= ( const bvector< _TypeT, _Allocator > &  )
reference operator[] ( size_type  )
const_reference operator[] ( size_type  ) const
void pop_back ( )
void push_back ( const_reference  )
reverse_iterator rbegin ( )
const_reverse_iterator rbegin ( ) const
reverse_iterator rend ( )
const_reverse_iterator rend ( ) const
void reserve ( size_type  )
void resize ( size_type  ,
value_type  = value_type() 
)
size_type size ( ) const
void swap ( bvector< _TypeT, _Allocator > &  )

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

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.