Bonmin
1.7
|
A small wrap around std::vector to give easy access to array for interfacing with fortran code. More...
#include <BonTypes.hpp>
Public Member Functions | |
vector () | |
Default constructor. | |
vector (size_t n, const T &v) | |
Constructor with initialization. | |
vector (const vector< T > &other) | |
Copy constructor. | |
vector (const std::vector< T > &other) | |
Copy constructor. | |
vector (size_t n) | |
constructor with size. | |
vector< T > & | operator= (const vector< T > &other) |
Assignment. | |
vector< T > & | operator= (const std::vector< T > &other) |
Assignment. | |
T * | operator() () |
Access pointer to first element of storage. | |
const T * | operator() () const |
Access pointer to first element of storage. |
A small wrap around std::vector to give easy access to array for interfacing with fortran code.
Definition at line 9 of file BonTypes.hpp.
Bonmin::vector< T >::vector | ( | ) | [inline] |
Default constructor.
Definition at line 12 of file BonTypes.hpp.
Bonmin::vector< T >::vector | ( | size_t | n, |
const T & | v | ||
) | [inline] |
Constructor with initialization.
Definition at line 14 of file BonTypes.hpp.
Bonmin::vector< T >::vector | ( | const vector< T > & | other | ) | [inline] |
Copy constructor.
Definition at line 16 of file BonTypes.hpp.
Bonmin::vector< T >::vector | ( | const std::vector< T > & | other | ) | [inline] |
Copy constructor.
Definition at line 18 of file BonTypes.hpp.
Bonmin::vector< T >::vector | ( | size_t | n | ) | [inline] |
constructor with size.
Definition at line 20 of file BonTypes.hpp.
vector<T>& Bonmin::vector< T >::operator= | ( | const vector< T > & | other | ) | [inline] |
Assignment.
Definition at line 22 of file BonTypes.hpp.
Referenced by Bonmin::vector< std::pair< int, int > >::operator=().
vector<T>& Bonmin::vector< T >::operator= | ( | const std::vector< T > & | other | ) | [inline] |
Assignment.
Definition at line 26 of file BonTypes.hpp.
T* Bonmin::vector< T >::operator() | ( | ) | [inline] |
Access pointer to first element of storage.
Definition at line 31 of file BonTypes.hpp.
const T* Bonmin::vector< T >::operator() | ( | ) | const [inline] |
Access pointer to first element of storage.
Definition at line 38 of file BonTypes.hpp.