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

Public Member Functions

 getConstantValue ()
 
 getConstantRepresentation ()
 
- Public Member Functions inherited from Hoa\Realdom\RealdomString
 discredit ($value)
 
 getSize ()
 
- 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 = 'conststring'
 
- Public Attributes inherited from Hoa\Realdom\RealdomString
const NAME = 'string'
 
- Public Attributes inherited from Hoa\Realdom\Realdom
const NAME = '(null)'
 

Protected Member Functions

 construct ()
 
 _predicate ($q)
 
 _sample (Math\Sampler $sampler)
 
- Protected Member Functions inherited from Hoa\Realdom\RealdomString
 construct ()
 
 _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\RealdomString
 $_arguments
 
 $_discredited = []
 
- 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: conststring.

Definition at line 49 of file Conststring.php.

Member Function Documentation

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

Predicate whether the sampled value belongs to the realistic domains.

Parameters
mixed$qSampled value.
Returns
boolean

Definition at line 85 of file Conststring.php.

86  {
87  return
88  is_string($q) &&
89  $this['value'] === $q;
90  }
Hoa\Realdom\Conststring::_sample ( Math\Sampler  $sampler)
protected

Sample one new value.

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

Definition at line 98 of file Conststring.php.

99  {
100  return $this['value'];
101  }
Hoa\Realdom\Conststring::construct ( )
protected

Construct a realistic domain.

Returns
void

Definition at line 74 of file Conststring.php.

75  {
76  return;
77  }
Hoa\Realdom\Conststring::getConstantRepresentation ( )

Get representation of the realistic domain.

Returns
string

Implements Hoa\Realdom\IRealdom\Constant.

Definition at line 118 of file Conststring.php.

119  {
120  return
121  '\'' .
122  preg_replace('#(?<!\\\)\'#', '\\\'', $this['value']) .
123  '\'';
124  }
Hoa\Realdom\Conststring::getConstantValue ( )

Get constant value.

Returns
string

Implements Hoa\Realdom\IRealdom\Constant.

Definition at line 108 of file Conststring.php.

109  {
110  return $this['value'];
111  }

Member Data Documentation

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

Definition at line 63 of file Conststring.php.

const Hoa\Realdom\Conststring::NAME = 'conststring'

Realistic domain name.

string

Definition at line 56 of file Conststring.php.


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