HiRISE
 PDS_JP2

Integer Class Reference
Inheritance diagram for Integer:
Collaboration diagram for Integer:

Public Member Functions

Integerclone () const
int compare (const Value &value) const
 Integer (const Integer_type datum, const int base, const int digits=0)
 Integer (const Unsigned_Integer_type datum, const int base, const int digits=0)
 Integer (const unsigned int datum, const int base, const int digits=0)
 Integer (const Real_type datum, const bool is_signed=SIGNED, const int base=10, const int digits=0)
 Integer (const int datum, const bool is_signed=SIGNED, const int base=10, const int digits=0)
 Integer (const Real_type datum, const int base, const int digits=0)
 Integer (const String_type &datum, const bool is_signed=SIGNED, const int base=0, const int digits=0)
 Integer (const Integer_type datum=0, const bool is_signed=SIGNED, const int base=10, const int digits=0)
 Integer (const int datum, const int base, const int digits=0)
 Integer (const String_type &datum, const int base, const int digits=0)
 Integer (const Integer &value)
 Integer (const Unsigned_Integer_type datum, const bool is_signed=UNSIGNED, const int base=10, const int digits=0)
 Integer (const Value &value)
 Integer (const unsigned int datum, const bool is_signed=UNSIGNED, const int base=10, const int digits=0)
bool is_Integer () const
bool is_Numeric () const
bool is_signed () const
Integeris_signed (const bool sign)
 operator int () const
 operator Integer_type () const
 operator Real_type () const
 operator String_type () const
Integer operator+ (const Value &value) const
Integeroperator+= (const Value &value)
Integeroperator= (const unsigned int value)
Integeroperator= (const Real_type value)
Integeroperator= (const Value &value)
Integeroperator= (const Integer_type value)
Integeroperator= (const int value)
Integeroperator= (const String_type &value)
Integeroperator= (const char *value)
Type type () const
std::string type_name () const
Public Member Functions inherited from Value
virtual int base () const
virtual Valuebase (const int base)
Valuedigits (const int digits)
int digits () const
virtual bool is_Array () const
virtual bool is_Date_Time () const
virtual bool is_Identifier () const
virtual bool is_Real () const
virtual bool is_Sequence () const
virtual bool is_Set () const
virtual bool is_String () const
virtual bool is_Symbol () const
virtual bool is_Text () const
std::string nearest_units () const
 operator unsigned int () const
 operator Unsigned_Integer_type () const
bool operator!= (const Value &value) const
bool operator< (const Value &value) const
bool operator<= (const Value &value) const
bool operator== (const Value &value) const
bool operator> (const Value &value) const
bool operator>= (const Value &value) const
virtual Valueoperator[] (unsigned int index)
virtual const Valueoperator[] (unsigned int index) const
Arrayparent () const
std::ostream & print (std::ostream &out) const
void read (Parser &parser)
void read (std::istream &in=std::cin)
Arrayroot () const
virtual Valuetype (const Type type_code)
std::string units () const
Valueunits (const std::string &units)
 Value (const Value &value)
 Value (const std::string &units="", const int digits=0, const int base=10)
 Value (const int digits, const int base=10)
unsigned int write (std::ostream &out=std::cout, int depth=-1) const
virtual ~Value ()

Additional Inherited Members

Public Types inherited from Value
enum  Type
typedef High_Precision_Integer_type Integer_type
typedef High_Precision_Floating_Point_type Real_type
typedef std::string String_type
typedef High_Precision_Unsigned_Integer_type Unsigned_Integer_type
Static Public Member Functions inherited from Value
static std::string integer_to_string (const Integer_type value, const bool is_signed=SIGNED, const int base=10, const int digits=0)
static std::string real_to_string (const Real_type value, std::ios::fmtflags format=std::ios::showpoint, unsigned int precision=0)
static unsigned int string_numeric_base (const std::string &value)
static Integer_type string_to_integer (const std::string &value, const int base=0)
static Real_type string_to_real (const std::string &value)
static std::string type_name (const Type type_code)
Public Attributes inherited from Value
 MIN_BASE
 MAX_BASE
 NUMERIC
 INTEGER
 REAL
 STRING
 IDENTIFIER
 SYMBOL
 TEXT
 DATE_TIME
 ARRAY
 SET
 SEQUENCE
static const bool SIGNED
Static Public Attributes inherited from Value
static const char *const ID
static const bool UNSIGNED
Protected Attributes inherited from Value
int Base
int Digits
ArrayParent
std::string Units

The documentation for this class was generated from the following files: