Public Member Functions | List of all members
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 >:
Inheritance graph
[legend]
Collaboration diagram for Bonmin::vector< T >:
Collaboration graph
[legend]

Public Member Functions

 vector ()
 Default constructor. More...
 
 vector (size_t n, const T &v)
 Constructor with initialization. More...
 
 vector (const vector< T > &other)
 Copy constructor. More...
 
 vector (const std::vector< T > &other)
 Copy constructor. More...
 
 vector (size_t n)
 constructor with size. More...
 
vector< T > & operator= (const vector< T > &other)
 Assignment. More...
 
vector< T > & operator= (const std::vector< T > &other)
 Assignment. More...
 
T * operator() ()
 Access pointer to first element of storage. More...
 
const T * operator() () const
 Access pointer to first element of storage. More...
 

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.

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: