pyTooling.CallByRef
Auxiliary classes to implement call-by-reference.
Hint
See high-level help for explanations and usage examples.
Classes
CallByRefParam
: Implements a call-by-reference parameter.CallByRefBoolParam
: A special call-by-reference implementation for boolean reference types.CallByRefIntParam
: A special call-by-reference implementation for integer reference types.
Classes
- class pyTooling.CallByRef.CallByRefParam[source]
Implements a call-by-reference parameter.
See also
CallByRefBoolParam
→ A special call-by-reference implementation for boolean reference types.CallByRefIntParam
→ A special call-by-reference implementation for integer reference types.
Inheritance
- __ilshift__(other)[source]
Assigns a value to the call-by-reference object.
- Parameters:
other (
TypeVar
(T
)) – The value to be assigned to this call-by-reference object.- Return type:
- Returns:
Itself.
- __eq__(other)[source]
Compare a CallByRefParam wrapped value with another instances (CallbyRefParam) or non-wrapped value for equality.
- __ne__(other)[source]
Compare a CallByRefParam wrapped value with another instances (CallbyRefParam) or non-wrapped value for inequality.
- Parameters:
other – Parameter to compare against.
- Return type:
- Returns:
True
, if both values are unequal.
- class pyTooling.CallByRef.CallByRefBoolParam[source]
A special call-by-reference implementation for boolean reference types.
Inheritance
- __eq__(other)[source]
Compare a CallByRefBoolParam wrapped boolean value with another instances (CallByRefBoolParam) or non-wrapped boolean value for equality.
- Parameters:
other (
Any
) – Parameter to compare against.- Return type:
- Returns:
True
, if both values are equal.- Raises:
TypeError – If parameter
other
is not of typebool
orCallByRefBoolParam
.
- __ne__(other)[source]
Compare a CallByRefBoolParam wrapped boolean value with another instances (CallByRefBoolParam) or non-wrapped boolean value for inequality.
- Parameters:
other – Parameter to compare against.
- Return type:
- Returns:
True
, if both values are unequal.- Raises:
TypeError – If parameter
other
is not of typebool
orCallByRefBoolParam
.
- __int__()[source]
Type conversion to
int
.- Return type:
- Returns:
The integer representation of the wrapped boolean value.
- __ilshift__(other)
Assigns a value to the call-by-reference object.
- Parameters:
other (
TypeVar
(T
)) – The value to be assigned to this call-by-reference object.- Return type:
- Returns:
Itself.
- __init__(value=None)
Constructs a call-by-reference object for any type.
- __repr__()
Returns the wrapped object’s string representation.
- Return type:
- Returns:
The string representation of the wrapped value.
- class pyTooling.CallByRef.CallByRefIntParam[source]
A special call-by-reference implementation for integer reference types.
Inheritance
- __eq__(other)[source]
Compare a CallByRefIntParam wrapped integer value with another instances (CallByRefIntParam) or non-wrapped integer value for equality.
- __ne__(other)[source]
Compare a CallByRefIntParam wrapped integer value with another instances (CallByRefIntParam) or non-wrapped integer value for inequality.
- __lt__(other)[source]
Compare a CallByRefIntParam wrapped integer value with another instances (CallByRefIntParam) or non-wrapped integer value for less-than.
- __le__(other)[source]
Compare a CallByRefIntParam wrapped integer value with another instances (CallByRefIntParam) or non-wrapped integer value for less-than-or-equal.
- __gt__(other)[source]
Compare a CallByRefIntParam wrapped integer value with another instances (CallByRefIntParam) or non-wrapped integer value for geater-than.
- __ge__(other)[source]
Compare a CallByRefIntParam wrapped integer value with another instances (CallByRefIntParam) or non-wrapped integer value for greater-than-or-equal.
- __bool__()[source]
Type conversion to
bool
.- Return type:
- Returns:
The boolean representation of the wrapped integer value.
- __float__()[source]
Type conversion to
float
.- Returns:
The float representation of the wrapped integer value.
- __ilshift__(other)
Assigns a value to the call-by-reference object.
- Parameters:
other (
TypeVar
(T
)) – The value to be assigned to this call-by-reference object.- Return type:
- Returns:
Itself.
- __init__(value=None)
Constructs a call-by-reference object for any type.
- __repr__()
Returns the wrapped object’s string representation.
- Return type:
- Returns:
The string representation of the wrapped value.