当前位置: 首页>>代码示例>>Java>>正文


Java Pointer.allocateBoolean方法代码示例

本文整理汇总了Java中org.bridj.Pointer.allocateBoolean方法的典型用法代码示例。如果您正苦于以下问题:Java Pointer.allocateBoolean方法的具体用法?Java Pointer.allocateBoolean怎么用?Java Pointer.allocateBoolean使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.bridj.Pointer的用法示例。


在下文中一共展示了Pointer.allocateBoolean方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: isValidIterator

import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean isValidIterator() throws ClingoException {
    Pointer<Boolean> ret = Pointer.allocateBoolean();
    handleError(LIB.clingo_symbolic_atoms_is_valid(atoms, iter, ret), "Error check the atoms is valid function!");
    return ret.getBoolean();
}
 
开发者ID:lorislab,项目名称:clingo4j,代码行数:6,代码来源:SymbolicAtomIterator.java

示例2: isEqualIterator

import org.bridj.Pointer; //导入方法依赖的package包/类
private boolean isEqualIterator(long iterator, long end) throws ClingoException {
    Pointer<Boolean> value = Pointer.allocateBoolean();
    handleError(LIB.clingo_symbolic_atoms_iterator_is_equal_to(atoms, iterator, end, value), "Error check atoms iterator is equal!");
    return value.get();
}
 
开发者ID:lorislab,项目名称:clingo4j,代码行数:6,代码来源:SymbolicAtomIterator.java

示例3: waitHandle

import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean waitHandle(double timeout) {
    Pointer<Boolean> ret = Pointer.allocateBoolean();
    LIB.clingo_solve_handle_wait(pointer, timeout, ret);
    return ret.get();
}
 
开发者ID:lorislab,项目名称:clingo4j,代码行数:6,代码来源:SolveHandle.java

示例4: isAssigned

import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean isAssigned() throws ClingoException {
    Pointer<Boolean> result = Pointer.allocateBoolean();
    handleError(LIB.clingo_configuration_value_is_assigned(pointer, key, result), "Error reading the configureation assigned.");
    return result.getBoolean();
}
 
开发者ID:lorislab,项目名称:clingo4j,代码行数:6,代码来源:Configuration.java

示例5: isFixed

import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean isFixed(int lit) throws ClingoException {
    Pointer<Boolean> ret = Pointer.allocateBoolean();
    handleError(LIB.clingo_assignment_is_fixed(pointer, lit, ret), "Error reading the assignment is fixed!");
    return ret.get();
}
 
开发者ID:lorislab,项目名称:clingo4j,代码行数:6,代码来源:Assignment.java

示例6: isTrue

import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean isTrue(int lit) throws ClingoException {
    Pointer<Boolean> ret = Pointer.allocateBoolean();
    handleError(LIB.clingo_assignment_is_true(pointer, lit, ret), "Error reading the assignment is true!");
    return ret.get();
}
 
开发者ID:lorislab,项目名称:clingo4j,代码行数:6,代码来源:Assignment.java

示例7: isFalse

import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean isFalse(int lit) throws ClingoException {
    Pointer<Boolean> ret = Pointer.allocateBoolean();
    handleError(LIB.clingo_assignment_is_false(pointer, lit, ret), "Error reading the assignment is false!");
    return ret.get();
}
 
开发者ID:lorislab,项目名称:clingo4j,代码行数:6,代码来源:Assignment.java

示例8: contains

import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean contains(Symbol atom) throws ClingoException {
    Pointer<Boolean> ret = Pointer.allocateBoolean();
    handleError(LIB.clingo_model_contains(pointer, atom.getStructObject(), ret), "Error reading model contains symbol atom!");
    return ret.get();
}
 
开发者ID:lorislab,项目名称:clingo4j,代码行数:6,代码来源:Model.java

示例9: getOptimalityProven

import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean getOptimalityProven() throws ClingoException {
    Pointer<Boolean> ret = Pointer.allocateBoolean();
    handleError(LIB.clingo_model_optimality_proven(pointer, ret), "Error reading the model optimality provden!");
    return ret.get();
}
 
开发者ID:lorislab,项目名称:clingo4j,代码行数:6,代码来源:Model.java

示例10: isFact

import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean isFact() throws ClingoException {
    Pointer<Boolean> ret = Pointer.allocateBoolean();
    handleError(LIB.clingo_symbolic_atoms_is_fact(pointer, iterator, ret), "Error reading the symbol atom is fact!");
    return ret.get();        
}
 
开发者ID:lorislab,项目名称:clingo4j,代码行数:6,代码来源:SymbolicAtom.java

示例11: isExternal

import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean isExternal() throws ClingoException {
    Pointer<Boolean> ret = Pointer.allocateBoolean();
    handleError(LIB.clingo_symbolic_atoms_is_external(pointer, iterator, ret), "Error reading he symbol atom is external!");
    return ret.get();
}
 
开发者ID:lorislab,项目名称:clingo4j,代码行数:6,代码来源:SymbolicAtom.java

示例12: hasGuard

import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean hasGuard() throws ClingoException {
    Pointer<Boolean> ret = Pointer.allocateBoolean();
    handleError(LIB.clingo_theory_atoms_atom_has_guard(pointer, id, ret), "Error reading the theory atom has guard!");
    return ret.get();
}
 
开发者ID:lorislab,项目名称:clingo4j,代码行数:6,代码来源:TheoryAtom.java

示例13: hasConst

import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean hasConst(String name) throws ClingoException {
    Pointer<Boolean> ret = Pointer.allocateBoolean();
    handleError(LIB.clingo_control_has_const(pointer, Pointer.pointerToCString(name), ret), "Error has const " + name);
    return ret.get();
}
 
开发者ID:lorislab,项目名称:clingo4j,代码行数:6,代码来源:Clingo.java

示例14: addClause

import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean addClause(List<Integer> clause, ClauseType type) throws ClingoException {
    NativeList list = PointerObject.toNativeList(clause);
    Pointer<Boolean> ret = Pointer.allocateBoolean();
    handleError(LIB.clingo_propagate_control_add_clause(pointer, list.getPointer(), list.size(), type.getInt(), ret), "Error add the clause to the propagete control!");
    return ret.get();
}
 
开发者ID:lorislab,项目名称:clingo4j,代码行数:7,代码来源:PropagateControl.java

示例15: getPropagate

import org.bridj.Pointer; //导入方法依赖的package包/类
public boolean getPropagate() throws ClingoException {
    Pointer<Boolean> ret = Pointer.allocateBoolean();
    handleError(LIB.clingo_propagate_control_propagate(pointer, ret), "Error propagete the propagete control!");
    return ret.get();
}
 
开发者ID:lorislab,项目名称:clingo4j,代码行数:6,代码来源:PropagateControl.java


注:本文中的org.bridj.Pointer.allocateBoolean方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。