Couenne  0.5.7
Public Member Functions | List of all members
Couenne::CouenneSparseBndVec< T > Class Template Reference

#include <CouenneSparseBndVec.hpp>

Public Member Functions

 CouenneSparseBndVec (unsigned int size)
 Constructor. More...
 
 CouenneSparseBndVec (CouenneSparseBndVec &src)
 Copy constructor. More...
 
 ~CouenneSparseBndVec ()
 Destructor. More...
 
void reset ()
 Reset (eeeeasy!) More...
 
T & operator[] (register unsigned int index)
 Access – the only chance for garbage to be returned (and for valgrind to complain) is when object[ind] is READ without making sure it has been written. More...
 
T * data ()
 Return data in DENSE format – use with care. More...
 
unsigned int * indices ()
 Return indices in DENSE format – for use with data() More...
 
unsigned int nElements ()
 Return current size. More...
 
void resize (unsigned int newsize)
 Resize. More...
 

Detailed Description

template<class T>
class Couenne::CouenneSparseBndVec< T >

Definition at line 16 of file CouenneSparseBndVec.hpp.

Constructor & Destructor Documentation

◆ CouenneSparseBndVec() [1/2]

template<class T >
Couenne::CouenneSparseBndVec< T >::CouenneSparseBndVec ( unsigned int  size)
inline

Constructor.

Definition at line 51 of file CouenneSparseBndVec.hpp.

◆ CouenneSparseBndVec() [2/2]

template<class T >
Couenne::CouenneSparseBndVec< T >::CouenneSparseBndVec ( CouenneSparseBndVec< T > &  src)
inline

Copy constructor.

assert: src.sInd [ind] == i

Definition at line 62 of file CouenneSparseBndVec.hpp.

◆ ~CouenneSparseBndVec()

template<class T >
Couenne::CouenneSparseBndVec< T >::~CouenneSparseBndVec ( )
inline

Destructor.

Definition at line 76 of file CouenneSparseBndVec.hpp.

Member Function Documentation

◆ reset()

template<class T >
void Couenne::CouenneSparseBndVec< T >::reset ( )
inline

Reset (eeeeasy!)

Definition at line 83 of file CouenneSparseBndVec.hpp.

◆ operator[]()

template<class T >
T& Couenne::CouenneSparseBndVec< T >::operator[] ( register unsigned int  index)
inline

Access – the only chance for garbage to be returned (and for valgrind to complain) is when object[ind] is READ without making sure it has been written.

This should not happen to the end user as read operations are only performed on the dense structure, after this object has been populated.

Definition at line 91 of file CouenneSparseBndVec.hpp.

◆ data()

template<class T >
T* Couenne::CouenneSparseBndVec< T >::data ( )
inline

Return data in DENSE format – use with care.

Definition at line 103 of file CouenneSparseBndVec.hpp.

◆ indices()

template<class T >
unsigned int* Couenne::CouenneSparseBndVec< T >::indices ( )
inline

Return indices in DENSE format – for use with data()

Definition at line 107 of file CouenneSparseBndVec.hpp.

◆ nElements()

template<class T >
unsigned int Couenne::CouenneSparseBndVec< T >::nElements ( )
inline

Return current size.

Definition at line 111 of file CouenneSparseBndVec.hpp.

◆ resize()

template<class T >
void Couenne::CouenneSparseBndVec< T >::resize ( unsigned int  newsize)
inline

Resize.

Definition at line 115 of file CouenneSparseBndVec.hpp.


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