|
yast2-core
|
YCPValueRep representing a 64 bit signed integer. More...
#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 |
Public Member Functions inherited from YCPValueRep | |
| const char * | valuetype_str () const |
| bool | isVoid () const |
| bool | isBoolean () const |
| bool | isInteger () const |
| bool | isFloat () const |
| bool | isString () const |
| bool | isByteblock () const |
| bool | isPath () const |
| bool | isSymbol () const |
| bool | isList () const |
| bool | isTerm () const |
| bool | isMap () const |
| bool | isCode () const |
| bool | isBreak () const |
| bool | isReturn () const |
| bool | isEntry () const |
| bool | isReference () const |
| bool | isExternal () const |
| YCPVoid | asVoid () const |
| YCPBoolean | asBoolean () const |
| YCPInteger | asInteger () const |
| YCPFloat | asFloat () const |
| YCPString | asString () const |
| YCPByteblock | asByteblock () const |
| YCPPath | asPath () const |
| YCPSymbol | asSymbol () const |
| YCPList | asList () const |
| YCPTerm | asTerm () const |
| YCPMap | asMap () const |
| YCPCode | asCode () const |
| YCPEntry | asEntry () const |
| YCPReference | asReference () const |
| YCPExternal | asExternal () const |
| bool | equal (const YCPValue &) const |
| YCPOrder | compare (const YCPValue &v, bool rl=false) const |
Public Member Functions inherited from YCPElementRep | |
| YCPValue | asValue () const |
| virtual const YCPElementRep * | shallowCopy () const |
Protected Member Functions | |
| YCPIntegerRep (long long v) | |
| YCPIntegerRep (const char *r, bool *valid) | |
Protected Member Functions inherited from YCPElementRep | |
| YCPElementRep () | |
| virtual | ~YCPElementRep () |
Private Attributes | |
| long long | v |
Friends | |
| class | YCPInteger |
|
protected |
Constructs a new YCPIntegerRep from the value given in v.
|
protected |
Constructs a new YCPIntegerRep from its ASCII representation. if valid != NULL, returns validity of string (if it really represents an integer)
References YaST::ee, 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.
|
virtual |
|
virtual |
Gives the ASCII representation of this value, i.e. "1" or "-17" or "327698"
Implements YCPElementRep.
References v.
|
virtual |
Implements YCPValueRep.
References v.
| long long YCPIntegerRep::value | ( | ) | const |
Returns the value of this object in form of a long long C value.
References v.
|
virtual |
|
friend |
|
private |
Referenced by compare(), toStream(), toString(), toXml(), value(), and YCPIntegerRep().
1.8.6