Documentation of MARTY
A Modern ARtificial Theoretical phYsicist
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
mty::double_vector< Type > Class Template Reference

Public Types

using iterator = double_vector_iterator< Type, double_vector< Type > * >
 
using const_iterator = double_vector_iterator< Type, double_vector< Type > const * >
 

Public Member Functions

 double_vector (std::vector< Type > const &init)
 
 double_vector (std::initializer_list< Type > init)
 
 double_vector (double_vector const &other)=default
 
 double_vector (double_vector &&other)=default
 
double_vectoroperator= (double_vector const &other)=default
 
double_vectoroperator= (double_vector &&other)=default
 
bool empty () const
 
size_t size () const
 
TypegetElement (size_t i)
 
Type const & getElement (size_t i) const
 
size_t getCut (size_t i) const
 
std::vector< Type > const & getData () const
 
std::vector< size_t > const & getCuts () const
 
void push_back (std::vector< Type > const &row)
 
void push_back (std::vector< Type > &&row)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
double_vector_single_view< Type, double_vector< Type > * > operator[] (size_t i)
 
const double_vector_single_view< Type, double_vector< Type > const * > operator[] (size_t i) const
 

Private Member Functions

std::vector< Type >::iterator vecBegin ()
 
std::vector< Type >::const_iterator vecBegin () const
 
std::vector< Type >::iterator vecEnd ()
 
std::vector< Type >::const_iterator vecEnd () const
 
void push_row (size_t pos, Type const &el)
 
void eraseEl (size_t pos, size_t pos_j)
 

Private Attributes

std::vector< Typedata
 
std::vector< size_t > cut
 

Friends

class double_vector_single_view< Type, double_vector< Type > *>
 
class double_vector_single_view< Type, double_vector< Type > const *>
 

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