#include <YCPInteger.h>
Inheritance diagram for YCPIntegerRep:
Public Member Functions | |
long long | value () const |
YCPOrder | compare (const YCPInteger &v) const |
string | toString () const |
std::ostream & | toStream (std::ostream &str) 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, ...
|
Constructs a new YCPIntegerRep from the value given in v. |
|
Constructs a new YCPIntegerRep from its ASCII representation. if valid != NULL, returns validity of string (if it really represents an integer) |
|
Compares two YCPIntegers for equality, greaterness or smallerness.
|
|
Output value as bytecode to stream Implements YCPElementRep. |
|
Gives the ASCII representation of this value, i.e. "1" or "-17" or "327698" Implements YCPElementRep. |
|
Returns the value of this object in form of a long long C value. |
|
Returns YT_INTEGER. See YCPValueRep::type. Implements YCPValueRep. |
|
|
|
|