bpp-core  2.2.0
bpp::BppVector< TYPE > Class Template Reference

The BppVector object class. More...

#include <Bpp/BppVector.h>

+ Inheritance diagram for bpp::BppVector< TYPE >:
+ Collaboration diagram for bpp::BppVector< TYPE >:

Public Member Functions

 BppVector ()
 
 BppVector (typename std::vector< TYPE >::size_type num, const TYPE &val=TYPE())
 
 BppVector (typename std::vector< TYPE >::iterator start, typename std::vector< TYPE >::iterator end)
 
virtual ~BppVector ()
 
const std::vector< TYPE > & toSTL () const
 
std::vector< TYPE > & toSTL ()
 
unsigned int size () const
 
TYPE & operator[] (unsigned int i)
 
const TYPE & operator[] (unsigned int i) const
 
The Clonable interface.
BppVector< TYPE > * clone () const
 Create a copy of this object and send a pointer to it. More...
 

Private Attributes

std::vector< TYPE > vector_
 

Detailed Description

template<class TYPE>
class bpp::BppVector< TYPE >

The BppVector object class.

This class extends the std::vector class to support the Clonable interface.

Definition at line 57 of file BppVector.h.

Constructor & Destructor Documentation

◆ BppVector() [1/3]

template<class TYPE>
bpp::BppVector< TYPE >::BppVector ( )
inline

Definition at line 64 of file BppVector.h.

◆ BppVector() [2/3]

template<class TYPE>
bpp::BppVector< TYPE >::BppVector ( typename std::vector< TYPE >::size_type  num,
const TYPE &  val = TYPE() 
)
inline

Definition at line 67 of file BppVector.h.

◆ BppVector() [3/3]

template<class TYPE>
bpp::BppVector< TYPE >::BppVector ( typename std::vector< TYPE >::iterator  start,
typename std::vector< TYPE >::iterator  end 
)
inline

Definition at line 70 of file BppVector.h.

◆ ~BppVector()

template<class TYPE>
virtual bpp::BppVector< TYPE >::~BppVector ( )
inlinevirtual

Definition at line 73 of file BppVector.h.

Member Function Documentation

◆ clone()

template<class TYPE>
BppVector<TYPE>* bpp::BppVector< TYPE >::clone ( ) const
inlinevirtual

Create a copy of this object and send a pointer to it.

Returns
A pointer toward the copy object.

Implements bpp::Clonable.

Definition at line 87 of file BppVector.h.

◆ operator[]() [1/2]

template<class TYPE>
TYPE& bpp::BppVector< TYPE >::operator[] ( unsigned int  i)
inline

Definition at line 96 of file BppVector.h.

References bpp::BppVector< TYPE >::vector_.

◆ operator[]() [2/2]

template<class TYPE>
const TYPE& bpp::BppVector< TYPE >::operator[] ( unsigned int  i) const
inline

Definition at line 98 of file BppVector.h.

References bpp::BppVector< TYPE >::vector_.

◆ size()

template<class TYPE>
unsigned int bpp::BppVector< TYPE >::size ( ) const
inline

Definition at line 94 of file BppVector.h.

References bpp::BppVector< TYPE >::vector_.

◆ toSTL() [1/2]

template<class TYPE>
const std::vector<TYPE>& bpp::BppVector< TYPE >::toSTL ( ) const
inline

Definition at line 90 of file BppVector.h.

References bpp::BppVector< TYPE >::vector_.

◆ toSTL() [2/2]

template<class TYPE>
std::vector<TYPE>& bpp::BppVector< TYPE >::toSTL ( )
inline

Definition at line 92 of file BppVector.h.

References bpp::BppVector< TYPE >::vector_.

Member Data Documentation

◆ vector_

template<class TYPE>
std::vector<TYPE> bpp::BppVector< TYPE >::vector_
private

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