本文整理汇总了C++中Domain::convertTypes方法的典型用法代码示例。如果您正苦于以下问题:C++ Domain::convertTypes方法的具体用法?C++ Domain::convertTypes怎么用?C++ Domain::convertTypes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Domain
的用法示例。
在下文中一共展示了Domain::convertTypes方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SHOPparse
void HTNMethod::SHOPparse( Filereader & f, TokenStruct< std::string > & ts, Domain & d ) {
TokenStruct< std::string > astruct = f.parseTypedList( false );
params = d.convertTypes( astruct.types );
parseSHOPConditions( f, astruct, d );
parseTaskList( f, astruct, d );
}
示例2: SHOPparse
void Forall::SHOPparse( Filereader & f, TokenStruct< std::string > & ts, Domain & d ) {
f.next();
f.assert( "(" );
TokenStruct< std::string > fs = f.parseTypedList( false );
params = d.convertTypes( fs.types );
TokenStruct< std::string > fstruct( ts );
fstruct.append( fs );
f.next();
f.assert( "(" );
if ( f.getChar() != ')' ) {
cond = new And;
cond->SHOPparse( f, fstruct, d );
}
else ++f.c;
f.next();
f.assert( "(" );
if ( f.getChar() != ')' ) {
cond1 = new And;
cond1->SHOPparse( f, fstruct, d );
}
else ++f.c;
f.next();
f.assert( ")" );
}
示例3: parse
void Action::parse( Filereader & f, TokenStruct< std::string > & ts, Domain & d ) {
f.next();
f.assert( ":PARAMETERS" );
f.assert( "(" );
TokenStruct< std::string > astruct = f.parseTypedList( true, d.types );
params = d.convertTypes( astruct.types );
parseConditions( f, astruct, d );
}
示例4: parse
void Derived::parse( Filereader & f, TokenStruct< std::string > & ts, Domain & d ) {
f.next();
f.assert( "(" );
name = f.getToken( d.preds );
TokenStruct< std::string > dstruct = f.parseTypedList( true, d.types );
params = d.convertTypes( dstruct.types );
f.next();
f.assert( "(" );
cond = createCondition( f, d );
cond->parse( f, dstruct, d );
f.next();
f.assert( ")" );
}
示例5: parse
void Forall::parse( Filereader & f, TokenStruct< std::string > & ts, Domain & d ) {
f.next();
f.assert( "(" );
TokenStruct< std::string > fs = f.parseTypedList( true, d.types );
params = d.convertTypes( fs.types );
TokenStruct< std::string > fstruct( ts );
fstruct.append( fs );
f.next();
f.assert( "(" );
if ( f.getChar() != ')' ) {
cond = createCondition( f, d );
cond->parse( f, fstruct, d );
}
else ++f.c;
f.next();
f.assert( ")" );
}