33 #ifndef UNSORTED_VECTOR_H_
34 #define UNSORTED_VECTOR_H_
58 template<
typename TValue>
65 typedef typename std::vector<connection>::iterator
iterator;
70 std::vector<connection >
con;
113 for(
size_t i=0; i<
con.size(); i++)
123 return con[
p].value();
125 assert(0 &&
"const_and_not_available");
132 return con[
p].value();
137 return con[
p].value();
Definition: connection.h:40
Definition: unsorted_sparse_vector.h:60
size_t num_connections() const
Definition: unsorted_sparse_vector.h:95
void clear()
Definition: unsorted_sparse_vector.h:111
std::vector< connection >::const_iterator const_iterator
Definition: unsorted_sparse_vector.h:66
AlgebraicConnection< TValue > connection
Definition: unsorted_sparse_vector.h:63
const_iterator end() const
Definition: unsorted_sparse_vector.h:90
connection * unsorted_raw_ptr()
Definition: unsorted_sparse_vector.h:105
UnsortedSparseVector(size_t s)
Definition: unsorted_sparse_vector.h:74
std::vector< connection >::iterator iterator
Definition: unsorted_sparse_vector.h:65
iterator end()
Definition: unsorted_sparse_vector.h:82
std::vector< int > posInConnections
Definition: unsorted_sparse_vector.h:69
std::vector< connection > con
Definition: unsorted_sparse_vector.h:70
size_t m_size
Definition: unsorted_sparse_vector.h:71
size_t size() const
Definition: unsorted_sparse_vector.h:100
value_type & operator()(size_t c)
Definition: unsorted_sparse_vector.h:127
const_iterator begin() const
Definition: unsorted_sparse_vector.h:86
const value_type & operator()(size_t c) const
Definition: unsorted_sparse_vector.h:118
bool has_connection(size_t c) const
Definition: unsorted_sparse_vector.h:140
iterator begin()
Definition: unsorted_sparse_vector.h:78
TValue value_type
Definition: unsorted_sparse_vector.h:62