inline std::string asString(const VariableSet& vset) { std::ostringstream oss; for( VariableSet::const_iterator it = vset.begin(); it != vset.end(); ++it ) { oss << it->getType() << " " << it->getSource() << " " << it->getSatellite() << " " << it->getTypeIndexed() << " " << it->getSourceIndexed() << " " << it->getSatIndexed()<< std::endl; } return oss.str(); }
VariableSet GeneralConstraint::getVariables( const SourceID& source ) { VariableSet vset; VariableSet unkSet( getVariables() ); if(source==Variable::allSources) return unkSet; for( VariableSet::const_iterator itv = unkSet.begin(); itv != unkSet.end(); ++itv ) { if( (itv->getSource() == source) && itv->getSourceIndexed() ) { vset.insert( *itv ); } } return vset; } // End of method 'GeneralConstraint::getVariables(const SourceID& source)'