程序包 mpi

类 Info

所有已实现的接口:
Cloneable, Freeable

public final class Info extends Object implements Freeable, Cloneable
This class represents MPI_Info.
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    protected long
     
    protected static final long
     
  • 构造器概要

    构造器
    限定符
    构造器
    说明
     
    Java binding of the MPI operation MPI_INFO_CREATE.
    protected
    Info(long handle)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    Java binding of the MPI operation MPI_INFO_DUP.
    void
    Java binding of the MPI operation MPI_INFO_DELETE.
    dup()
    Java binding of the MPI operation MPI_INFO_DUP.
    void
    Java binding of the MPI operation MPI_INFO_FREE.
    get(String key)
    Java binding of the MPI operation MPI_INFO_GET.
    getKey(int i)
    Java binding of the MPI operation MPI_INFO_GET_NTHKEY.
    boolean
    Tests if the info object is MPI_INFO_NULL (has been freed).
    protected static Info
     
    void
    set(String key, String value)
    Java binding of the MPI operation MPI_INFO_SET.
    int
    Java binding of the MPI operation MPI_INFO_GET_NKEYS.

    从类继承的方法 java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • handle

      protected long handle
    • NULL

      protected static final long NULL
  • 构造器详细资料

    • Info

      public Info() throws MPIException
      Java binding of the MPI operation MPI_INFO_CREATE.
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • Info

      protected Info(long handle)
  • 方法详细资料

    • newEnv

      protected static Info newEnv()
    • set

      public void set(String key, String value) throws MPIException
      Java binding of the MPI operation MPI_INFO_SET.
      参数:
      key - key
      value - value
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • get

      public String get(String key) throws MPIException
      Java binding of the MPI operation MPI_INFO_GET.
      参数:
      key - key
      返回:
      value or null if key is not defined
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • delete

      public void delete(String key) throws MPIException
      Java binding of the MPI operation MPI_INFO_DELETE.
      参数:
      key - key
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • size

      public int size() throws MPIException
      Java binding of the MPI operation MPI_INFO_GET_NKEYS.
      返回:
      number of defined keys
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • getKey

      public String getKey(int i) throws MPIException
      Java binding of the MPI operation MPI_INFO_GET_NTHKEY.
      参数:
      i - key number
      返回:
      key
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • clone

      public Info clone()
      Java binding of the MPI operation MPI_INFO_DUP.

      It is recommended to use dup() instead of clone() because the last can't throw an MPIException.

      覆盖:
      clone 在类中 Object
      返回:
      info object
    • dup

      public Info dup() throws MPIException
      Java binding of the MPI operation MPI_INFO_DUP.
      返回:
      info object
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • free

      public void free() throws MPIException
      Java binding of the MPI operation MPI_INFO_FREE.
      指定者:
      free 在接口中 Freeable
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • isNull

      public boolean isNull()
      Tests if the info object is MPI_INFO_NULL (has been freed).
      返回:
      true if the info object is MPI_INFO_NULL, false otherwise.