YCPIntegerRep Class Reference

YCPValueRep representing a 64 bit signed integer. More...

#include <YCPInteger.h>

Inheritance diagram for YCPIntegerRep:

YCPValueRep YCPElementRep List of all members.

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

Detailed Description

YCPValueRep representing a 64 bit signed integer.

YCPSyntax:

-2, 0, 4711, ...


Constructor & Destructor Documentation

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)


Member Function Documentation

YCPOrder YCPIntegerRep::compare const YCPInteger v  )  const
 

Compares two YCPIntegers for equality, greaterness or smallerness.

Parameters:
v value to compare against
Returns:
YO_LESS, if this is smaller than v, YO_EQUAL, if this is equal to v, YO_GREATER, if this is greater to v

std::ostream & YCPIntegerRep::toStream std::ostream &  str  )  const [virtual]
 

Output value as bytecode to stream

Implements YCPElementRep.

string YCPIntegerRep::toString  )  const [virtual]
 

Gives the ASCII representation of this value, i.e. "1" or "-17" or "327698"

Implements YCPElementRep.

long long YCPIntegerRep::value  )  const
 

Returns the value of this object in form of a long long C value.

YCPValueType YCPIntegerRep::valuetype  )  const [virtual]
 

Returns YT_INTEGER. See YCPValueRep::type.

Implements YCPValueRep.


Friends And Related Function Documentation

friend class YCPInteger [friend]
 


Member Data Documentation

long long YCPIntegerRep::v [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 18:07:46 2006 for yast2-core by  doxygen 1.4.6