remove KeyVector
parent
19287ad5c8
commit
f5da852222
|
@ -66,27 +66,6 @@ class KeySet {
|
||||||
void serialize() const;
|
void serialize() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Actually a vector<Key>
|
|
||||||
class KeyVector {
|
|
||||||
KeyVector();
|
|
||||||
KeyVector(const gtsam::KeyVector& other);
|
|
||||||
|
|
||||||
// Note: no print function
|
|
||||||
|
|
||||||
// common STL methods
|
|
||||||
size_t size() const;
|
|
||||||
bool empty() const;
|
|
||||||
void clear();
|
|
||||||
|
|
||||||
// structure specific methods
|
|
||||||
size_t at(size_t i) const;
|
|
||||||
size_t front() const;
|
|
||||||
size_t back() const;
|
|
||||||
void push_back(size_t key) const;
|
|
||||||
|
|
||||||
void serialize() const;
|
|
||||||
};
|
|
||||||
|
|
||||||
// Actually a FastMap<Key,int>
|
// Actually a FastMap<Key,int>
|
||||||
class KeyGroupMap {
|
class KeyGroupMap {
|
||||||
KeyGroupMap();
|
KeyGroupMap();
|
||||||
|
@ -104,39 +83,6 @@ class KeyGroupMap {
|
||||||
bool insert2(size_t key, int val);
|
bool insert2(size_t key, int val);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Actually a FastSet<FactorIndex>
|
|
||||||
class FactorIndexSet {
|
|
||||||
FactorIndexSet();
|
|
||||||
FactorIndexSet(const gtsam::FactorIndexSet& set);
|
|
||||||
|
|
||||||
// common STL methods
|
|
||||||
size_t size() const;
|
|
||||||
bool empty() const;
|
|
||||||
void clear();
|
|
||||||
|
|
||||||
// structure specific methods
|
|
||||||
void insert(size_t factorIndex);
|
|
||||||
bool erase(size_t factorIndex); // returns true if value was removed
|
|
||||||
bool count(size_t factorIndex) const; // returns true if value exists
|
|
||||||
};
|
|
||||||
|
|
||||||
// Actually a vector<FactorIndex>
|
|
||||||
class FactorIndices {
|
|
||||||
FactorIndices();
|
|
||||||
FactorIndices(const gtsam::FactorIndices& other);
|
|
||||||
|
|
||||||
// common STL methods
|
|
||||||
size_t size() const;
|
|
||||||
bool empty() const;
|
|
||||||
void clear();
|
|
||||||
|
|
||||||
// structure specific methods
|
|
||||||
size_t at(size_t i) const;
|
|
||||||
size_t front() const;
|
|
||||||
size_t back() const;
|
|
||||||
void push_back(size_t factorIndex) const;
|
|
||||||
};
|
|
||||||
|
|
||||||
//*************************************************************************
|
//*************************************************************************
|
||||||
// Utilities
|
// Utilities
|
||||||
//*************************************************************************
|
//*************************************************************************
|
||||||
|
|
|
@ -10,8 +10,3 @@
|
||||||
* Without this they will be automatically converted to a Python object, and all
|
* Without this they will be automatically converted to a Python object, and all
|
||||||
* mutations on Python side will not be reflected on C++.
|
* mutations on Python side will not be reflected on C++.
|
||||||
*/
|
*/
|
||||||
#ifdef GTSAM_ALLOCATOR_TBB
|
|
||||||
PYBIND11_MAKE_OPAQUE(std::vector<gtsam::Key, tbb::tbb_allocator<gtsam::Key>>);
|
|
||||||
#else
|
|
||||||
PYBIND11_MAKE_OPAQUE(std::vector<gtsam::Key>);
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -10,11 +10,3 @@
|
||||||
* with `PYBIND11_MAKE_OPAQUE` this allows the types to be modified with Python,
|
* with `PYBIND11_MAKE_OPAQUE` this allows the types to be modified with Python,
|
||||||
* and saves one copy operation.
|
* and saves one copy operation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef GTSAM_ALLOCATOR_TBB
|
|
||||||
py::bind_vector<std::vector<gtsam::Key, tbb::tbb_allocator<gtsam::Key> > >(m_, "KeyVector");
|
|
||||||
py::implicitly_convertible<py::list, std::vector<gtsam::Key, tbb::tbb_allocator<gtsam::Key> > >();
|
|
||||||
#else
|
|
||||||
py::bind_vector<std::vector<gtsam::Key> >(m_, "KeyVector");
|
|
||||||
py::implicitly_convertible<py::list, std::vector<gtsam::Key> >();
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in New Issue