#include <ovector_tlate.h>
Definition at line 611 of file ovector_tlate.h.
Public Types | |
typedef ovector_const_view_tlate < data_t, vparent_t, block_t > ::const_iterator | const_iterator |
Desc. | |
typedef ovector_const_view_tlate < data_t, vparent_t, block_t > ::iterator | iterator |
Desc. | |
Public Member Functions | |
const_iterator | begin () const |
Desc. | |
const_iterator | end () const |
Desc. | |
iterator | begin () |
Desc. | |
iterator | end () |
Desc. | |
Copy constructors | |
ovector_base_tlate (ovector_base_tlate &v) | |
Shallow copy constructor - create a new view of the same vector. | |
ovector_base_tlate & | operator= (ovector_base_tlate &v) |
Shallow copy constructor - create a new view of the same vector. | |
Get and set methods | |
const data_t & | operator[] (size_t i) const |
Array-like indexing. | |
const data_t & | operator() (size_t i) const |
Array-like indexing with operator(). | |
data_t & | operator[] (size_t i) |
Array-like indexing. | |
data_t & | operator() (size_t i) |
Array-like indexing with operator(). | |
data_t * | get_ptr (size_t i) |
Get pointer (with optional range-checking). | |
int | set (size_t i, data_t val) |
Set (with optional range-checking). | |
int | set_all (double val) |
Set all of the value to be the value val . | |
Arithmetic | |
ovector_base_tlate< data_t, vparent_t, block_t > & | operator+= (const ovector_base_tlate< data_t, vparent_t, block_t > &x) |
operator+= | |
ovector_base_tlate< data_t, vparent_t, block_t > & | operator-= (const ovector_base_tlate< data_t, vparent_t, block_t > &x) |
operator-= | |
ovector_base_tlate< data_t, vparent_t, block_t > & | operator+= (const data_t &x) |
operator+= | |
ovector_base_tlate< data_t, vparent_t, block_t > & | operator-= (const data_t &x) |
operator-= | |
ovector_base_tlate< data_t, vparent_t, block_t > & | operator*= (const data_t &y) |
operator*= | |
Other methods | |
vparent_t * | get_gsl_vector () |
Return a gsl vector. | |
const vparent_t * | get_gsl_vector_const () const |
Return a const gsl vector. | |
Protected Member Functions | |
ovector_base_tlate () | |
Empty constructor for use by children. |
ovector_base_tlate<data_t,vparent_t,block_t>& operator*= | ( | const data_t & | y | ) | [inline] |
If the vector is empty, this function does not perform any modifications and does not call the error handler.
Definition at line 852 of file ovector_tlate.h.
ovector_base_tlate<data_t,vparent_t,block_t>& operator+= | ( | const data_t & | x | ) | [inline] |
If the vector is empty, this function does not perform any modifications and does not call the error handler.
Definition at line 829 of file ovector_tlate.h.
ovector_base_tlate<data_t,vparent_t,block_t>& operator+= | ( | const ovector_base_tlate< data_t, vparent_t, block_t > & | x | ) | [inline] |
This operator only operates on elements which are present in both vectors, i.e. elements which are present in one vector but missing in the other will be ignored. If one of the two vectors is empty, this function does nothing and does not call the error handler.
Definition at line 797 of file ovector_tlate.h.
ovector_base_tlate<data_t,vparent_t,block_t>& operator-= | ( | const data_t & | x | ) | [inline] |
If the vector is empty, this function does not perform any modifications and does not call the error handler.
Definition at line 840 of file ovector_tlate.h.
ovector_base_tlate<data_t,vparent_t,block_t>& operator-= | ( | const ovector_base_tlate< data_t, vparent_t, block_t > & | x | ) | [inline] |
This operator only operates on elements which are present in both vectors, i.e. elements which are present in one vector but missing in the other will be ignored. If one of the two vectors is empty, this function does nothing and does not call the error handler.
Definition at line 815 of file ovector_tlate.h.
int set_all | ( | double | val | ) | [inline] |
If the vector is empty, this function does not perform any assignment and does not call the error handler.
Reimplemented in ovector_reverse_tlate, and ovector_subvector_reverse_tlate.
Definition at line 777 of file ovector_tlate.h.
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.
Project hosting provided by
,
O2scl Sourceforge Project Page