src/AstProgram.cpp
std::vector<AstRelation*> AstProgram::getRelations() const {
    std::vector<AstRelation*> res;
    for (const auto& rel : relations) {
        res.push_back(rel.second.get());
    }
    return res;
}
/* Put all relations of the program into a list */
Put all relations of the program into a list
Put all relations of the program into a list
std::vector<AstRelation*> AstProgram::getRelations() const {
    std::vector<AstRelation*> res;
    for (const auto& rel : relations) {
        res.push_back(rel.second.get());
    }
    return res;
}
std :: vector < AstRelation * > AstProgram :: getRelations ( ) const { std :: vector < AstRelation * > res ; for ( const auto & rel : relations ) { res . push_back ( rel . second . get ( ) ) ; } return res ; }
Put all relations of the program into a list
Put all relations of the program into a list