OpendTect
7.0
|
Simple vector-based container simplifying index-based work. More...
Public Types | |
typedef impl_type::const_iterator | const_iterator |
typedef size_type | idx_type |
typedef std::vector< T > | impl_type |
typedef impl_type::iterator | iterator |
typedef T | object_type |
typedef IT | size_type |
Public Member Functions | |
VectorAccess () | |
VectorAccess (const VectorAccess &v2) | |
VectorAccess (IT n) | |
VectorAccess (IT n, const T &t) | |
iterator | begin () |
const_iterator | begin () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
IT | count (const T &) const |
iterator | end () |
const_iterator | end () const |
void | erase () |
void | erase (const T &t) |
void | fillWith (const T &val) |
T & | first () |
const T & | first () const |
IT | getCapacity () const |
idx_type | getIdx (const_iterator it) const |
idx_type | getIdx (iterator it) const |
IT | indexOf (const T &, bool forward, IT start=-1) const |
void | insert (IT pos, const T &val) |
bool | isPresent (const T &) const |
T & | last () |
const T & | last () const |
void | moveAfter (const T &t, const T &aft) |
void | moveToStart (const T &t) |
VectorAccess & | operator= (const VectorAccess &v2) |
T & | operator[] (IT) |
const T & | operator[] (IT) const |
T | pop_back () |
bool | push_back (const T &t) |
void | remove (IT i) |
void | remove (IT i1, IT i2) |
void | replace (const T &val, const T &newval) |
bool | setCapacity (IT sz, bool withmargin) |
bool | setSize (IT sz, T val) |
IT | size () const |
void | swap (VectorAccess &oth) |
void | swapElems (IT i, IT j) |
bool | validIdx (IT i) const |
impl_type & | vec () |
const impl_type & | vec () const |
Protected Attributes | |
impl_type | v_ |
Simple vector-based container simplifying index-based work.
This class is an implementation detail of the 'sets.h' and 'sortedlist.h' classes. Thus, this class is not meant to be used anywhere else in OpendTect! Use TypeSet, ObjectSet or SortedList instead. If you need to have the std::vector to pass to an external C++ object, use the TypeSet::vec() or SortedList::vec().
NOTE: because this class is based directly upon the STL vector, we have a problem for the bool type. In STL, they have made the vector<bool> implemented in terms of the bit_vector. That really sucks because we cannot return a reference to T! This is why there is a 'BoolTypeSet'.
<>
typedef impl_type::const_iterator VectorAccess< T, IT >::const_iterator |
typedef size_type VectorAccess< T, IT >::idx_type |
typedef std::vector<T> VectorAccess< T, IT >::impl_type |
typedef impl_type::iterator VectorAccess< T, IT >::iterator |
typedef T VectorAccess< T, IT >::object_type |
typedef IT VectorAccess< T, IT >::size_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Allocates mem for sz, does not change size.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024