Z3
Public Member Functions | Data Fields
ParamDescrsRef Class Reference

Public Member Functions

def __init__ (self, descr, ctx=None)
 
def __del__ (self)
 
def size (self)
 
def __len__ (self)
 
def get_name (self, i)
 
def get_kind (self, n)
 
def __getitem__ (self, arg)
 
def __repr__ (self)
 

Data Fields

 ctx
 
 descr
 

Detailed Description

Set of parameter descriptions for Solvers, Tactics and Simplifiers in Z3.

Definition at line 4549 of file z3py.py.

Constructor & Destructor Documentation

def __init__ (   self,
  descr,
  ctx = None 
)

Definition at line 4552 of file z3py.py.

4552  def __init__(self, descr, ctx=None):
4553  _z3_assert(isinstance(descr, ParamDescrs), "parameter description object expected")
4554  self.ctx = _get_ctx(ctx)
4555  self.descr = descr
4556  Z3_param_descrs_inc_ref(self.ctx.ref(), self.descr)
4557 
def __init__(self, descr, ctx=None)
Definition: z3py.py:4552
void Z3_API Z3_param_descrs_inc_ref(Z3_context c, Z3_param_descrs p)
Increment the reference counter of the given parameter description set.
def __del__ (   self)

Definition at line 4558 of file z3py.py.

4558  def __del__(self):
4559  Z3_param_descrs_dec_ref(self.ctx.ref(), self.descr)
4560 
def __del__(self)
Definition: z3py.py:4558
void Z3_API Z3_param_descrs_dec_ref(Z3_context c, Z3_param_descrs p)
Decrement the reference counter of the given parameter description set.

Member Function Documentation

def __getitem__ (   self,
  arg 
)

Definition at line 4581 of file z3py.py.

4581  def __getitem__(self, arg):
4582  if _is_int(arg):
4583  return self.get_name(arg)
4584  else:
4585  return self.get_kind(arg)
4586 
def get_name(self, i)
Definition: z3py.py:4571
def get_kind(self, n)
Definition: z3py.py:4576
def __getitem__(self, arg)
Definition: z3py.py:4581
def __len__ (   self)
Return the size of in the parameter description `self`.

Definition at line 4566 of file z3py.py.

Referenced by AstVector.__getitem__(), and AstVector.__setitem__().

4566  def __len__(self):
4567  """Return the size of in the parameter description `self`.
4568  """
4569  return self.size()
4570 
def __len__(self)
Definition: z3py.py:4566
def size(self)
Definition: z3py.py:4561
def __repr__ (   self)

Definition at line 4587 of file z3py.py.

4587  def __repr__(self):
4588  return Z3_param_descrs_to_string(self.ctx.ref(), self.descr)
4589 
def __repr__(self)
Definition: z3py.py:4587
Z3_string Z3_API Z3_param_descrs_to_string(Z3_context c, Z3_param_descrs p)
Convert a parameter description set into a string. This function is mainly used for printing the cont...
def get_kind (   self,
  n 
)
Return the kind of the parameter named `n`.

Definition at line 4576 of file z3py.py.

Referenced by ParamDescrsRef.__getitem__().

4576  def get_kind(self, n):
4577  """Return the kind of the parameter named `n`.
4578  """
4579  return Z3_param_descrs_get_kind(self.ctx.ref(), self.descr, to_symbol(n, self.ctx))
4580 
def to_symbol(s, ctx=None)
Definition: z3py.py:94
def get_kind(self, n)
Definition: z3py.py:4576
Z3_param_kind Z3_API Z3_param_descrs_get_kind(Z3_context c, Z3_param_descrs p, Z3_symbol n)
Return the kind associated with the given parameter name n.
def get_name (   self,
  i 
)
Return the i-th parameter name in the parameter description `self`.

Definition at line 4571 of file z3py.py.

Referenced by ParamDescrsRef.__getitem__().

4571  def get_name(self, i):
4572  """Return the i-th parameter name in the parameter description `self`.
4573  """
4574  return _symbol2py(self.ctx, Z3_param_descrs_get_name(self.ctx.ref(), self.descr, i))
4575 
def get_name(self, i)
Definition: z3py.py:4571
Z3_symbol Z3_API Z3_param_descrs_get_name(Z3_context c, Z3_param_descrs p, unsigned i)
Return the number of parameters in the given parameter description set.
def size (   self)
Return the size of in the parameter description `self`.

Definition at line 4561 of file z3py.py.

Referenced by ParamDescrsRef.__len__(), and Goal.__len__().

4561  def size(self):
4562  """Return the size of in the parameter description `self`.
4563  """
4564  return int(Z3_param_descrs_size(self.ctx.ref(), self.descr))
4565 
unsigned Z3_API Z3_param_descrs_size(Z3_context c, Z3_param_descrs p)
Return the number of parameters in the given parameter description set.
def size(self)
Definition: z3py.py:4561

Field Documentation

ctx
descr