Hoa central
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Hoa\Realdom\Constfloat Class Reference
Inheritance diagram for Hoa\Realdom\Constfloat:

Public Member Functions

 getConstantValue ()
 
 getConstantRepresentation ()
 
- Public Member Functions inherited from Hoa\Realdom\Realdom
 __construct ()
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 
 getArguments ()
 
 count ()
 
 getName ()
 
 setSampler (Math\Sampler $sampler)
 
 getSampler ()
 
 getValue ()
 
 reset ()
 
 predicate ($q)
 
 sample (Math\Sampler $sampler=null)
 
 intersectWith (Realdom $realdom)
 
 setConstraints (Array &$constraints)
 
 propagateConstraints ($type, $index)
 
 is ($qualifier)
 
 setHolder (IRealdom\Holder $holder)
 
 getHolder ()
 
 setPraspelVisitor (Visitor\Visit $visitor)
 
 getPraspelVisitor ()
 
 accept (Visitor\Visit $visitor, &$handle=null, $eldnah=null)
 
- Public Member Functions inherited from Hoa\Visitor\Element
 accept (Visit $visitor, &$handle=null, $eldnah=null)
 

Public Attributes

const NAME = 'constfloat'
 
- Public Attributes inherited from Hoa\Realdom\RealdomFloat
const NAME = 'float'
 
- Public Attributes inherited from Hoa\Realdom\Realdom
const NAME = '(null)'
 

Protected Member Functions

 _predicate ($q)
 
 _sample (Math\Sampler $sampler)
 
- Protected Member Functions inherited from Hoa\Realdom\RealdomFloat
 _predicate ($q)
 
 _sample (Math\Sampler $sampler)
 
- Protected Member Functions inherited from Hoa\Realdom\Realdom
 construct ()
 
 setValue ($sampled)
 
 resetArguments ()
 
 _predicate ($q)
 
 _sample (Math\Sampler $sampler)
 
getConstraints ()
 
 _propagateConstraints ($type, $index, Array &$constraints)
 

Protected Attributes

 $_arguments
 
- Protected Attributes inherited from Hoa\Realdom\Realdom
 $_arguments = null
 
 $arguments = null
 
 $__sampler = null
 
 $_value = null
 
 $_constraints = null
 
 $_holder = null
 
 $_constructed = false
 
 $_praspelVisitor = null
 

Additional Inherited Members

- Static Public Member Functions inherited from Hoa\Realdom\Realdom
static autoBoxing (Array &$arguments, Realdom $self=null)
 
static setDefaultSampler (Math\Sampler $sampler)
 
static getDefaultSampler ()
 
static setMaxTry ($maxtry)
 
static getMaxTry ()
 
static setDefaultPraspelVisitor (Visitor\Visit $visitor)
 
static getDefaultPraspelVisitor ()
 
- Static Protected Attributes inherited from Hoa\Realdom\Realdom
static $_sampler = null
 
static $_maxtry = 64
 
static $_defaultPraspelVisitor = null
 

Detailed Description

Class .

Realistic domain: constfloat.

Definition at line 49 of file Constfloat.php.

Member Function Documentation

Hoa\Realdom\Constfloat::_predicate (   $q)
protected

Predicate whether the sampled value belongs to the realistic domains.

Parameters
mixed$qSampled value.
Returns
boolean

Definition at line 75 of file Constfloat.php.

76  {
77  return
78  parent::_predicate($q) &&
79  $this['value'] === $q;
80  }
Hoa\Realdom\Constfloat::_sample ( Math\Sampler  $sampler)
protected

Sample one new value.

Parameters
\Hoa\Math\Sampler$samplerSampler.
Returns
mixed

Definition at line 88 of file Constfloat.php.

89  {
90  return $this['value'];
91  }
Hoa\Realdom\Constfloat::getConstantRepresentation ( )

Get representation of the realistic domain.

Returns
string

Implements Hoa\Realdom\IRealdom\Constant.

Definition at line 108 of file Constfloat.php.

109  {
110  return sprintf('%F', $this->getConstantValue());
111  }

Here is the call graph for this function:

Hoa\Realdom\Constfloat::getConstantValue ( )

Get constant value.

Returns
float

Implements Hoa\Realdom\IRealdom\Constant.

Definition at line 98 of file Constfloat.php.

99  {
100  return $this['value'];
101  }

Here is the caller graph for this function:

Member Data Documentation

Hoa\Realdom\Constfloat::$_arguments
protected
Initial value:
= [
'value'
]

Definition at line 63 of file Constfloat.php.

const Hoa\Realdom\Constfloat::NAME = 'constfloat'

Realistic domain name.

string

Definition at line 56 of file Constfloat.php.


The documentation for this class was generated from the following file: