Bonmin 1.8.9
Loading...
Searching...
No Matches
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 >:
+ Collaboration diagram for Bonmin::vector< T >:

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

◆ vector() [1/5]

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

Default constructor.

Definition at line 12 of file BonTypes.hpp.

◆ vector() [2/5]

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.

◆ vector() [3/5]

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

Copy constructor.

Definition at line 16 of file BonTypes.hpp.

◆ vector() [4/5]

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

Copy constructor.

Definition at line 18 of file BonTypes.hpp.

◆ vector() [5/5]

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

◆ operator=() [1/2]

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

Assignment.

Definition at line 22 of file BonTypes.hpp.

◆ operator=() [2/2]

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

Assignment.

Definition at line 26 of file BonTypes.hpp.

◆ operator()() [1/2]

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

Access pointer to first element of storage.

Definition at line 31 of file BonTypes.hpp.

◆ operator()() [2/2]

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

Access pointer to first element of storage.

Definition at line 35 of file BonTypes.hpp.


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