#include <YCPInteger.h>

Public Member Functions | |
| long long | value () const |
| YCPOrder | compare (const YCPInteger &v) const |
| string | toString () const |
| std::ostream & | toStream (std::ostream &str) const |
| std::ostream & | toXml (std::ostream &str, int indent) const |
| YCPValueType | valuetype () const |
Protected Member Functions | |
| YCPIntegerRep (long long v) | |
| YCPIntegerRep (const char *r, bool *valid) | |
Private Attributes | |
| long long | v |
Friends | |
| class | YCPInteger |
YCPSyntax:
-2, 0, 4711, ...
| YCPIntegerRep::YCPIntegerRep | ( | long long | v | ) | [protected] |
Constructs a new YCPIntegerRep from the value given in v.
| YCPIntegerRep::YCPIntegerRep | ( | const char * | r, | |
| bool * | valid | |||
| ) | [protected] |
Constructs a new YCPIntegerRep from its ASCII representation. if valid != NULL, returns validity of string (if it really represents an integer)
References ExecutionEnvironment::filename(), ExecutionEnvironment::linenumber(), v, and ycp2warning.
| YCPOrder YCPIntegerRep::compare | ( | const YCPInteger & | v | ) | const |
Compares two YCPIntegers for equality, greaterness or smallerness.
| v | value to compare against |
References v, YO_EQUAL, YO_GREATER, and YO_LESS.
| std::ostream & YCPIntegerRep::toStream | ( | std::ostream & | str | ) | const [virtual] |
| string YCPIntegerRep::toString | ( | void | ) | const [virtual] |
Gives the ASCII representation of this value, i.e. "1" or "-17" or "327698"
Implements YCPElementRep.
References v.
| std::ostream & YCPIntegerRep::toXml | ( | std::ostream & | str, | |
| int | indent | |||
| ) | const [virtual] |
| long long YCPIntegerRep::value | ( | ) | const |
Returns the value of this object in form of a long long C value.
References v.
| YCPValueType YCPIntegerRep::valuetype | ( | ) | const [virtual] |
friend class YCPInteger [friend] |
long long YCPIntegerRep::v [private] |
Referenced by compare(), toStream(), toString(), toXml(), value(), and YCPIntegerRep().
1.5.9