43 lines
669 B
C
43 lines
669 B
C
|
/**
|
||
|
* @file Ordering.h
|
||
|
* @brief Ordering of indices for eliminating a factor graph
|
||
|
* @author Frank Dellaert
|
||
|
*/
|
||
|
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <vector>
|
||
|
#include <string>
|
||
|
|
||
|
// \namespace
|
||
|
|
||
|
namespace gtsam {
|
||
|
|
||
|
/**
|
||
|
* @class Ordering
|
||
|
* @brief ordering of indices for eliminating a factor graph
|
||
|
*/
|
||
|
class Ordering : public std::vector<std::string>
|
||
|
{
|
||
|
public:
|
||
|
/** Constructor */
|
||
|
Ordering(){clear();}
|
||
|
|
||
|
Ordering(std::vector<std::string> strings_in) : std::vector<std::string> (strings_in) {}
|
||
|
|
||
|
/** Destructor */
|
||
|
~Ordering(){}
|
||
|
|
||
|
void print() const;
|
||
|
|
||
|
/**
|
||
|
* check if two orderings are the same
|
||
|
* @param ordering
|
||
|
* @return bool
|
||
|
*/
|
||
|
bool equals(Ordering &ord);
|
||
|
};
|
||
|
|
||
|
}
|