Bonmin  1.7
Public Member Functions
Bonmin::vector< T > Class Template Reference

A small wrap around std::vector to give easy access to array for interfacing with fortran code. More...

#include <BonTypes.hpp>

Inheritance diagram for Bonmin::vector< T >:
vector

List of all members.

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.

Detailed Description

template<typename T>
class Bonmin::vector< T >

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.


Constructor & Destructor Documentation

template<typename T>
Bonmin::vector< T >::vector ( ) [inline]

Default constructor.

Definition at line 12 of file BonTypes.hpp.

template<typename T>
Bonmin::vector< T >::vector ( size_t  n,
const T &  v 
) [inline]

Constructor with initialization.

Definition at line 14 of file BonTypes.hpp.

template<typename T>
Bonmin::vector< T >::vector ( const vector< T > &  other) [inline]

Copy constructor.

Definition at line 16 of file BonTypes.hpp.

template<typename T>
Bonmin::vector< T >::vector ( const std::vector< T > &  other) [inline]

Copy constructor.

Definition at line 18 of file BonTypes.hpp.

template<typename T>
Bonmin::vector< T >::vector ( size_t  n) [inline]

constructor with size.

Definition at line 20 of file BonTypes.hpp.


Member Function Documentation

template<typename T>
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=().

template<typename T>
vector<T>& Bonmin::vector< T >::operator= ( const std::vector< T > &  other) [inline]

Assignment.

Definition at line 26 of file BonTypes.hpp.

template<typename T>
T* Bonmin::vector< T >::operator() ( ) [inline]

Access pointer to first element of storage.

Definition at line 31 of file BonTypes.hpp.

template<typename T>
const T* Bonmin::vector< T >::operator() ( ) const [inline]

Access pointer to first element of storage.

Definition at line 38 of file BonTypes.hpp.


The documentation for this class was generated from the following file: