Added constructor for NoiseModelFactor that takes only a noisemodel for subclasses

release/4.3a0
Alex Cunningham 2011-10-03 21:11:39 +00:00
parent 9fefccae26
commit 684ccc91b2
1 changed files with 9 additions and 0 deletions

View File

@ -160,6 +160,15 @@ public:
this->keys_.insert(this->keys_.end(), beginKeys, endKeys);
}
protected:
/**
* Constructor - only for subclasses, as this does not set keys.
*/
NoiseModelFactor(const SharedNoiseModel& noiseModel) : noiseModel_(noiseModel) {}
public:
/** Print */
virtual void print(const std::string& s = "") const {
std::cout << s << ": NoiseModelFactor\n";