LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
PArtial specialization for zero-size vectors to avoid compiler errors on some platforms. More...
#include <Vector.h>
Public Types | |
typedef T | Element |
typedef T | Value |
typedef T & | Reference |
typedef T const & | ConstReference |
typedef T * | Iterator |
typedef T const * | ConstIterator |
typedef Value | value_type |
typedef Iterator | iterator |
typedef ConstIterator | const_iterator |
typedef Reference | reference |
typedef ConstReference | const_reference |
typedef boost::reverse_iterator< T * > | reverse_iterator |
typedef boost::reverse_iterator< const T * > | const_reverse_iterator |
typedef T * | pointer |
typedef int | difference_type |
typedef int | size_type |
typedef boost::mpl::int_< 0 > | ND |
Public Member Functions | |
size_type | size () const |
Return the size of the Vector. More... | |
size_type | max_size () const |
Return the size of the Vector. More... | |
bool | empty () const |
Return true if size() == 0. More... | |
iterator | begin () |
Return an iterator to the beginning of the Vector. More... | |
const_iterator | begin () const |
Return a const_iterator to the beginning of the Vector. More... | |
iterator | end () |
Return an iterator to the end of the Vector. More... | |
const_iterator | end () const |
Return a const_iterator to the end of the Vector. More... | |
reverse_iterator | rbegin () |
Return a reverse_iterator to the beginning of the reversed Vector. More... | |
const_reverse_iterator | rbegin () const |
Return a const_reverse_iterator to the beginning of the reversed Vector. More... | |
reverse_iterator | rend () |
Return a reverse_iterator to the end of the reversed Vector. More... | |
const_reverse_iterator | rend () const |
Return a const_reverse_iterator to the end of the reversed Vector. More... | |
reference | front () |
Return a reference to the first element. More... | |
reference | back () |
Return a reference to the last element. More... | |
const_reference | front () const |
Return a const_reference to the first element. More... | |
const_reference | back () const |
Return a const_reference to the last element. More... | |
reference | operator[] (int i) |
Return a reference to the element with the given index. More... | |
const_reference | operator[] (int i) const |
Return a const_reference to the element with the given index. More... | |
template<int Start, int Stop> | |
Vector< T, Stop-Start > | getRange () const |
Create a new Vector that is a subset of this. More... | |
template<int M> | |
Vector< T, M > | first () const |
Create a new Vector from the first M elements of this. More... | |
template<int M> | |
Vector< T, M > | last () const |
Create a new Vector from the last M elements of this. More... | |
Vector () | |
Default constructor. More... | |
template<typename U > | |
Vector (U scalar) | |
Construct with copies of a scalar. More... | |
template<typename U > | |
Vector (Vector< U, 0 > const &other) | |
Converting copy constructor. More... | |
bool | operator== (Vector const &other) const |
Return true if elements of other are equal to the elements of this. More... | |
bool | operator!= (Vector const &other) const |
Return false if any elements of other are not equal to the elements of this. More... | |
T | sum () const |
Return the sum of all elements. More... | |
T | product () const |
Return the product of all elements. More... | |
Vector | reverse () const |
Return a Vector with the elements reversed. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, Vector< T, 0 > const &obj) |
Stream output. More... | |
PArtial specialization for zero-size vectors to avoid compiler errors on some platforms.
typedef ConstIterator ndarray::Vector< T, 0 >::const_iterator |
typedef ConstReference ndarray::Vector< T, 0 >::const_reference |
typedef boost::reverse_iterator<const T*> ndarray::Vector< T, 0 >::const_reverse_iterator |
typedef T const* ndarray::Vector< T, 0 >::ConstIterator |
typedef T const& ndarray::Vector< T, 0 >::ConstReference |
typedef int ndarray::Vector< T, 0 >::difference_type |
typedef T ndarray::Vector< T, 0 >::Element |
typedef T* ndarray::Vector< T, 0 >::Iterator |
typedef Iterator ndarray::Vector< T, 0 >::iterator |
typedef boost::mpl::int_<0> ndarray::Vector< T, 0 >::ND |
typedef T* ndarray::Vector< T, 0 >::pointer |
typedef T& ndarray::Vector< T, 0 >::Reference |
typedef Reference ndarray::Vector< T, 0 >::reference |
typedef boost::reverse_iterator<T*> ndarray::Vector< T, 0 >::reverse_iterator |
typedef int ndarray::Vector< T, 0 >::size_type |
typedef T ndarray::Vector< T, 0 >::Value |
typedef Value ndarray::Vector< T, 0 >::value_type |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Return a reverse_iterator to the beginning of the reversed Vector.
Definition at line 446 of file Vector.h.
|
inline |
Return a const_reverse_iterator to the beginning of the reversed Vector.
Definition at line 448 of file Vector.h.
|
inline |
Return a reverse_iterator to the end of the reversed Vector.
Definition at line 450 of file Vector.h.
|
inline |
Return a const_reverse_iterator to the end of the reversed Vector.
Definition at line 452 of file Vector.h.
|
inline |
|
inline |
|
inline |
|
friend |