/* Line 371 of yacc.c */
#line 56 "parser.y"
-#include "gromacs/utility/scoped_ptr_sfree.h"
+#include "gromacs/utility/scoped_cptr.h"
#include "parser_internal.h"
-using gmx::scoped_ptr_sfree;
+using gmx::scoped_guard_sfree;
using gmx::SelectionParserValue;
using gmx::SelectionParserValueList;
using gmx::SelectionParserValueListPointer;
#line 252 "parser.y"
{
BEGIN_ACTION;
- scoped_ptr_sfree nameGuard((yyvsp[(1) - (1)].str));
+ scoped_guard_sfree nameGuard((yyvsp[(1) - (1)].str));
SelectionTreeElementPointer s
= _gmx_sel_init_group_by_name((yyvsp[(1) - (1)].str), scanner);
SelectionTreeElementPointer p
#line 270 "parser.y"
{
BEGIN_ACTION;
- scoped_ptr_sfree nameGuard((yyvsp[(1) - (2)].str));
+ scoped_guard_sfree nameGuard((yyvsp[(1) - (2)].str));
set((yyval.sel), _gmx_sel_init_selection((yyvsp[(1) - (2)].str), get((yyvsp[(2) - (2)].sel)), scanner));
END_ACTION;
}
#line 277 "parser.y"
{
BEGIN_ACTION;
- scoped_ptr_sfree nameGuard((yyvsp[(1) - (3)].str));
+ scoped_guard_sfree nameGuard((yyvsp[(1) - (3)].str));
set((yyval.sel), _gmx_sel_assign_variable((yyvsp[(1) - (3)].str), get((yyvsp[(3) - (3)].sel)), scanner));
END_ACTION;
}
#line 284 "parser.y"
{
BEGIN_ACTION;
- scoped_ptr_sfree nameGuard((yyvsp[(1) - (3)].str));
+ scoped_guard_sfree nameGuard((yyvsp[(1) - (3)].str));
set((yyval.sel), _gmx_sel_assign_variable((yyvsp[(1) - (3)].str), get((yyvsp[(3) - (3)].sel)), scanner));
END_ACTION;
}
#line 291 "parser.y"
{
BEGIN_ACTION;
- scoped_ptr_sfree nameGuard((yyvsp[(1) - (3)].str));
+ scoped_guard_sfree nameGuard((yyvsp[(1) - (3)].str));
set((yyval.sel), _gmx_sel_assign_variable((yyvsp[(1) - (3)].str), get((yyvsp[(3) - (3)].sel)), scanner));
END_ACTION;
}
#line 383 "parser.y"
{
BEGIN_ACTION;
- scoped_ptr_sfree opGuard((yyvsp[(2) - (3)].str));
+ scoped_guard_sfree opGuard((yyvsp[(2) - (3)].str));
set((yyval.sel), _gmx_sel_init_comparison(get((yyvsp[(1) - (3)].sel)), get((yyvsp[(3) - (3)].sel)), (yyvsp[(2) - (3)].str), scanner));
CHECK_SEL((yyval.sel));
END_ACTION;
#line 394 "parser.y"
{
BEGIN_ACTION;
- scoped_ptr_sfree nameGuard((yyvsp[(2) - (2)].str));
+ scoped_guard_sfree nameGuard((yyvsp[(2) - (2)].str));
set((yyval.sel), _gmx_sel_init_group_by_name((yyvsp[(2) - (2)].str), scanner));
END_ACTION;
}
#line 422 "parser.y"
{
BEGIN_ACTION;
- scoped_ptr_sfree posmodGuard((yyvsp[(1) - (2)].str));
+ scoped_guard_sfree posmodGuard((yyvsp[(1) - (2)].str));
set((yyval.sel), _gmx_sel_init_keyword((yyvsp[(2) - (2)].meth), SelectionParserValueListPointer(), (yyvsp[(1) - (2)].str), scanner));
CHECK_SEL((yyval.sel));
END_ACTION;
#line 430 "parser.y"
{
BEGIN_ACTION;
- scoped_ptr_sfree posmodGuard((yyvsp[(1) - (3)].str));
+ scoped_guard_sfree posmodGuard((yyvsp[(1) - (3)].str));
set((yyval.sel), _gmx_sel_init_keyword_strmatch((yyvsp[(2) - (3)].meth), gmx::eStringMatchType_Auto, get((yyvsp[(3) - (3)].vlist)), (yyvsp[(1) - (3)].str), scanner));
CHECK_SEL((yyval.sel));
END_ACTION;
#line 438 "parser.y"
{
BEGIN_ACTION;
- scoped_ptr_sfree posmodGuard((yyvsp[(1) - (4)].str));
+ scoped_guard_sfree posmodGuard((yyvsp[(1) - (4)].str));
set((yyval.sel), _gmx_sel_init_keyword_strmatch((yyvsp[(2) - (4)].meth), (yyvsp[(3) - (4)].smt), get((yyvsp[(4) - (4)].vlist)), (yyvsp[(1) - (4)].str), scanner));
CHECK_SEL((yyval.sel));
END_ACTION;
#line 446 "parser.y"
{
BEGIN_ACTION;
- scoped_ptr_sfree posmodGuard((yyvsp[(1) - (3)].str));
+ scoped_guard_sfree posmodGuard((yyvsp[(1) - (3)].str));
set((yyval.sel), _gmx_sel_init_keyword((yyvsp[(2) - (3)].meth), get((yyvsp[(3) - (3)].vlist)), (yyvsp[(1) - (3)].str), scanner));
CHECK_SEL((yyval.sel));
END_ACTION;
#line 457 "parser.y"
{
BEGIN_ACTION;
- scoped_ptr_sfree posmodGuard((yyvsp[(1) - (3)].str));
+ scoped_guard_sfree posmodGuard((yyvsp[(1) - (3)].str));
set((yyval.sel), _gmx_sel_init_method((yyvsp[(2) - (3)].meth), get((yyvsp[(3) - (3)].plist)), (yyvsp[(1) - (3)].str), scanner));
CHECK_SEL((yyval.sel));
END_ACTION;
#line 497 "parser.y"
{
BEGIN_ACTION;
- scoped_ptr_sfree posmodGuard((yyvsp[(1) - (2)].str));
+ scoped_guard_sfree posmodGuard((yyvsp[(1) - (2)].str));
set((yyval.sel), _gmx_sel_init_keyword((yyvsp[(2) - (2)].meth), SelectionParserValueListPointer(), (yyvsp[(1) - (2)].str), scanner));
CHECK_SEL((yyval.sel));
END_ACTION;
#line 505 "parser.y"
{
BEGIN_ACTION;
- scoped_ptr_sfree posmodGuard((yyvsp[(1) - (3)].str));
+ scoped_guard_sfree posmodGuard((yyvsp[(1) - (3)].str));
set((yyval.sel), _gmx_sel_init_method((yyvsp[(2) - (3)].meth), get((yyvsp[(3) - (3)].plist)), (yyvsp[(1) - (3)].str), scanner));
CHECK_SEL((yyval.sel));
END_ACTION;
#line 570 "parser.y"
{
BEGIN_ACTION;
- scoped_ptr_sfree posmodGuard((yyvsp[(1) - (2)].str));
+ scoped_guard_sfree posmodGuard((yyvsp[(1) - (2)].str));
set((yyval.sel), _gmx_sel_init_keyword((yyvsp[(2) - (2)].meth), SelectionParserValueListPointer(), (yyvsp[(1) - (2)].str), scanner));
CHECK_SEL((yyval.sel));
END_ACTION;
#line 608 "parser.y"
{
BEGIN_ACTION;
- scoped_ptr_sfree keywordGuard((yyvsp[(1) - (3)].str));
+ scoped_guard_sfree keywordGuard((yyvsp[(1) - (3)].str));
set((yyval.sel), _gmx_sel_init_position(get((yyvsp[(3) - (3)].sel)), (yyvsp[(1) - (3)].str), scanner));
CHECK_SEL((yyval.sel));
END_ACTION;
#line 675 "parser.y"
{
BEGIN_ACTION;
- scoped_ptr_sfree nameGuard((yyvsp[(1) - (2)].str));
+ scoped_guard_sfree nameGuard((yyvsp[(1) - (2)].str));
set((yyval.param), SelectionParserParameter::create((yyvsp[(1) - (2)].str), get((yyvsp[(2) - (2)].vlist))));
END_ACTION;
}
#line 783 "parser.y"
{
BEGIN_ACTION;
- scoped_ptr_sfree stringGuard((yyvsp[(1) - (1)].str));
+ scoped_guard_sfree stringGuard((yyvsp[(1) - (1)].str));
set((yyval.val), SelectionParserValue::createString((yyvsp[(1) - (1)].str)));
END_ACTION;
}