NeoPZ
|
#include <vectors.h>
Public Types | |
typedef T | value_type |
typedef value_type * | pointer |
typedef const value_type * | const_pointer |
typedef value_type * | iterator |
typedef const value_type * | const_iterator |
typedef value_type & | reference |
typedef const value_type & | const_reference |
typedef size_t | size_type |
typedef ptrdiff_t | difference_type |
Public Member Functions | |
Vector () | |
Vector (int csize) | |
Vector (int csize, const T &val) | |
Vector (const Vector< T > &a) | |
~Vector () | |
T & | operator[] (int) |
const T & | operator[] (int) const |
T & | operator() (int) |
const T & | operator() (int) const |
Vector< T > & | operator= (const Vector< T > &a) |
Vector< T > & | operator= (const T &val) |
Vector< T > & | operator+= (const Vector< T > &a) |
Vector< T > & | operator-= (const Vector< T > &a) |
int | empty () const |
void | reserve (int) |
void | resize (int) |
int | size () const |
int | length () const |
int | capacity () const |
T * | begin () const |
T * | end () const |
void | destroy () |
int | no (const T *ptr) const |
Private Member Functions | |
void | copy (const Vector< T > &a) |
Private Attributes | |
int | num_elts |
T *RESTRICT | ptr_to_data |
typedef const value_type* Vector< T >::const_iterator |
typedef const value_type* Vector< T >::const_pointer |
typedef const value_type& Vector< T >::const_reference |
typedef ptrdiff_t Vector< T >::difference_type |
typedef value_type* Vector< T >::iterator |
typedef value_type* Vector< T >::pointer |
typedef value_type& Vector< T >::reference |
typedef T Vector< T >::value_type |
Definition at line 209 of file vectors.h.
References Vector< T >::ptr_to_data.
Definition at line 222 of file vectors.h.
References error(), Vector< T >::num_elts, and Vector< T >::ptr_to_data.
Definition at line 376 of file vectors.h.
References error(), Vector< T >::num_elts, Vector< T >::ptr_to_data, and val().
Definition at line 242 of file vectors.h.
References Vector< T >::copy(), Vector< T >::num_elts, and Vector< T >::ptr_to_data.
Definition at line 405 of file vectors.h.
References Vector< T >::destroy().
|
inline |
Definition at line 370 of file vectors.h.
References Vector< T >::ptr_to_data.
Referenced by Fad< T >::operator*=(), Fad< T >::operator+=(), Fad< T >::operator-=(), and Fad< T >::operator/=().
|
inline |
Definition at line 363 of file vectors.h.
References Vector< T >::num_elts.
Definition at line 399 of file vectors.h.
References MEM_CPY< T >::copy(), Vector< T >::num_elts, and Vector< T >::ptr_to_data.
Referenced by Vector< T >::operator=(), and Vector< T >::Vector().
|
inline |
Definition at line 261 of file vectors.h.
References Vector< T >::num_elts, and Vector< T >::ptr_to_data.
Referenced by Vector< T >::operator=(), Vector< T >::resize(), and Vector< T >::~Vector().
|
inline |
|
inline |
Definition at line 138 of file vectors.h.
References MEM_CPY< T >::copy().
|
inline |
Definition at line 307 of file vectors.h.
References Vector< T >::operator[]().
|
inline |
Definition at line 312 of file vectors.h.
References Vector< T >::operator[]().
Definition at line 111 of file vectors.h.
References error(), and Vector< T >::size().
Definition at line 119 of file vectors.h.
References error(), and Vector< T >::size().
Definition at line 417 of file vectors.h.
References Vector< T >::copy(), Vector< T >::destroy(), Vector< T >::num_elts, and Vector< T >::reserve().
Definition at line 441 of file vectors.h.
References error(), Vector< T >::num_elts, and Vector< T >::ptr_to_data.
|
inline |
Definition at line 276 of file vectors.h.
References error(), Vector< T >::num_elts, and Vector< T >::ptr_to_data.
Referenced by Vector< T >::operator()().
|
inline |
Definition at line 292 of file vectors.h.
References error(), Vector< T >::num_elts, and Vector< T >::ptr_to_data.
|
inline |
Definition at line 319 of file vectors.h.
References error(), Vector< T >::num_elts, and Vector< T >::ptr_to_data.
Referenced by Vector< T >::operator=().
|
inline |
Definition at line 339 of file vectors.h.
References Vector< T >::destroy(), error(), Vector< T >::num_elts, and Vector< T >::ptr_to_data.
Referenced by Fad< T >::operator*=(), Fad< T >::operator+=(), Fad< T >::operator-=(), and Fad< T >::operator/=().
|
inline |
Definition at line 132 of file vectors.h.
Referenced by Fad< T >::copy(), Fad< T >::dx(), Fad< T >::hasFastAccess(), operator*(), Fad< T >::operator*=(), operator+(), Vector< T >::operator+=(), Fad< T >::operator+=(), operator-(), Vector< T >::operator-=(), Fad< T >::operator-=(), Fad< T >::operator/=(), operator<<(), Fad< T >::operator=(), and Fad< T >::size().
|
private |
Definition at line 146 of file vectors.h.
Referenced by Vector< T >::capacity(), Vector< T >::copy(), Vector< T >::destroy(), Vector< T >::operator=(), Vector< T >::operator[](), Vector< T >::reserve(), Vector< T >::resize(), and Vector< T >::Vector().
Definition at line 147 of file vectors.h.
Referenced by Vector< T >::begin(), Vector< T >::copy(), Vector< T >::destroy(), Vector< T >::operator=(), Vector< T >::operator[](), Vector< T >::reserve(), Vector< T >::resize(), and Vector< T >::Vector().