44 const S *
data()
const {
return v.data(); }
49 operator S *() {
return v.data(); }
50 operator const S *()
const {
return v.data(); }
60 return dim > 0 ?
v[0] : S();
84 std::string
str()
const;
95 typedef typename std::vector<S>::iterator
iterator;
114 v.insert(pos, value);
116 template<
class InputIt>
120 v.insert(pos, first, last);
165bool operator==(
const ParameterVector<S> &v1,
const ParameterVector<S> &v2);
167bool operator!=(
const ParameterVector<S> &v1,
const ParameterVector<S> &v2);
170bool operator<(
const ParameterVector<S> &v1,
const ParameterVector<S> &v2);
172bool operator>(
const ParameterVector<S> &v1,
const ParameterVector<S> &v2);
175std::ostream &
operator<<(std::ostream &out,
const ParameterVector<S> &v);
177#define V_DECLARE_PARAMVEC(S) \
178 extern template class V_COREEXPORT ParameterVector<S>; \
179 extern template V_COREEXPORT bool operator==(const ParameterVector<S> &v1, const ParameterVector<S> &v2); \
180 extern template V_COREEXPORT bool operator!=(const ParameterVector<S> &v1, const ParameterVector<S> &v2); \
181 extern template V_COREEXPORT bool operator<(const ParameterVector<S> &v1, const ParameterVector<S> &v2); \
182 extern template V_COREEXPORT bool operator>(const ParameterVector<S> &v1, const ParameterVector<S> &v2); \
183 extern template V_COREEXPORT std::ostream &operator<<(std::ostream &out, const ParameterVector<S> &v);
Definition: paramvector.h:18
iterator end()
Definition: paramvector.h:109
ParameterVector(iterator begin, iterator end)
std::vector< S >::iterator iterator
Definition: paramvector.h:95
ParameterVector()
Definition: paramvector_impl.h:76
void push_back(const S &value)
Definition: paramvector.h:123
const S * data() const
Definition: paramvector.h:44
void insert(iterator pos, const S &value)
Definition: paramvector.h:111
int dim
Definition: paramvector.h:38
const_iterator end() const
Definition: paramvector.h:110
void insert(iterator pos, InputIt first, InputIt last)
Definition: paramvector.h:117
std::vector< S > m_max
Definition: paramvector.h:40
std::vector< S > m_min
Definition: paramvector.h:40
static ParameterVector max(int dim=MaxDimension)
Definition: paramvector_impl.h:122
const S & operator[](int i) const
Definition: paramvector.h:47
Scalar & back()
Definition: paramvector.h:131
ParameterVector & operator=(const ParameterVector &rhs)
Definition: paramvector_impl.h:89
size_t index_type
Definition: paramvector.h:90
size_t size() const
Definition: paramvector.h:94
void shrink_to_fit()
Definition: paramvector.h:158
S * data()
Definition: paramvector.h:43
size_t size_type
Definition: paramvector.h:89
std::vector< S >::const_iterator const_iterator
Definition: paramvector.h:96
bool empty() const
Definition: paramvector.h:92
ssize_t difference_type
Definition: paramvector.h:91
static const int MaxDimension
Definition: paramvector.h:21
void erase(iterator s)
Definition: paramvector.h:97
void erase(iterator s, iterator e)
Definition: paramvector.h:102
void clear() const
Definition: paramvector.h:93
Scalar value_type
Definition: paramvector.h:88
S & w
Definition: paramvector.h:41
S & operator[](int i)
Definition: paramvector.h:46
std::vector< S > v
Definition: paramvector.h:39
const Scalar & back() const
Definition: paramvector.h:138
S & y
Definition: paramvector.h:41
static ParameterVector min(int dim=MaxDimension)
Definition: paramvector_impl.h:113
iterator begin()
Definition: paramvector.h:107
const_iterator begin() const
Definition: paramvector.h:108
std::string str() const
Definition: paramvector_impl.h:219
S & z
Definition: paramvector.h:41
S & x
Definition: paramvector.h:41
S Scalar
Definition: paramvector.h:20
void pop_back()
Definition: paramvector.h:145
void reserve(size_t dim)
Definition: paramvector.h:152
Definition: exception.h:13
Definition: exception.h:30
Definition: allobjects.cpp:30
bool operator!=(const ParameterVector< S > &v1, const ParameterVector< S > &v2)
Definition: paramvector_impl.h:237
Eigen::Matrix< Scalar, 3, 1 > Vector3
Definition: vector.h:33
double Float
Definition: scalar.h:18
const int MaxDimension
Definition: dimensions.h:11
std::ostream & operator<<(std::ostream &out, const Meta &meta)
Definition: objectmeta.cpp:45
bool operator<(const ParameterVector< S > &v1, const ParameterVector< S > &v2)
Definition: paramvector_impl.h:243
bool operator>(const ParameterVector< S > &v1, const ParameterVector< S > &v2)
Definition: paramvector_impl.h:256
VistleVector< Scalar, d > ScalarVector
Definition: vector.h:20
bool operator==(const ParameterVector< S > &v1, const ParameterVector< S > &v2)
Definition: paramvector_impl.h:225
Eigen::Matrix< Scalar, 4, 1 > Vector4
Definition: vector.h:34
int64_t Integer
Definition: scalar.h:19
Eigen::Matrix< Scalar, 1, 1 > Vector1
Definition: vector.h:31
Eigen::Matrix< Scalar, 2, 1 > Vector2
Definition: vector.h:32
#define V_DECLARE_PARAMVEC(S)
Definition: paramvector.h:177