rooNumericValue
class description - source file - inheritance tree
public:
rooNumericValue rooNumericValue()
rooNumericValue rooNumericValue(void*, Int_t)
rooNumericValue rooNumericValue(Long_t, Int_t)
rooNumericValue rooNumericValue(ULong_t, Int_t)
rooNumericValue rooNumericValue(Double_t, Int_t)
rooNumericValue rooNumericValue(Char_t)
rooNumericValue rooNumericValue(UChar_t)
rooNumericValue rooNumericValue(Short_t)
rooNumericValue rooNumericValue(UShort_t)
rooNumericValue rooNumericValue(Int_t)
rooNumericValue rooNumericValue(UInt_t)
rooNumericValue rooNumericValue(Long_t)
rooNumericValue rooNumericValue(ULong_t)
rooNumericValue rooNumericValue(Float_t)
rooNumericValue rooNumericValue(Double_t)
rooNumericValue rooNumericValue(void*)
rooNumericValue rooNumericValue(rooNumericValue&)
virtual void ~rooNumericValue()
TClass* Class()
Bool_t is_valid() const
virtual TClass* IsA() const
Char_t operator Char_t() const
Double_t operator Double_t() const
Float_t operator Float_t() const
Int_t operator Int_t() const
Long_t operator Long_t() const
Short_t operator Short_t() const
UChar_t operator UChar_t() const
UInt_t operator UInt_t() const
ULong_t operator ULong_t() const
UShort_t operator UShort_t() const
void* operator void*() const
Bool_t operator!=(const rooNumericValue&)
Bool_t operator<(const rooNumericValue&)
Bool_t operator<=(const rooNumericValue&)
Bool_t operator==(const rooNumericValue&)
Bool_t operator>(const rooNumericValue&)
Bool_t operator>=(const rooNumericValue&)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
Int_t type() const
Class rooNumericValue corresponds to Numeric_Value class
The class rooNumericValue is a self-describing data type for
persistent numeric values. An instance of this class, called a
numeric value, contains up to 64 bits of raw data and a code
indicating the basic numeric type of the data. The data can be
any fundamental character, integer, floating-point, or pointer type.
All numeric data in persistent objects is transferred to an Active Schema
application as numeric values. Encapsulating the data within a
numeric value avoids the inherent risk that the data may be transferred
to program memory under mistaken assumptions about alignment, precision,
or integral versus floating-point representation.
Typically, an Active Schema application does not work with numeric values
explicitly, but instead works with the basic numeric data types such as
int8, float32, uint64.
When you pass a number of a basic numeric type as a parameter to a member
function that expects a numeric value, the appropriate constructor converts
the parameter to an instance of rooNumericValue.
Certain member functions return an instance of rooNumericValue on the
stack. If you call such a function, assigning its returned value to a
variable of the correct basic numeric type, the appropriate conversion
function converts the return value to the required type.
If you examine persistent data in the federated database, you may obtain a
numeric value (for example, the value of an attribute) without knowing
what type of data it contains. In that situation, you can call its type
member function and then cast the numeric value to the correct basic
numeric type. For example, if a numeric value's type member function
returns kooUINT32, you can cast it to the basic numeric type
uint32 ( UInt_t in ROOT case ).
rooNumericValue()
default ctor
~rooNumericValue()
destructor
rooNumericValue(void* val, Int_t basetype)
Constructs a numeric value from a number of basic numeric type.
rooNumericValue(Long_t val, Int_t basetype)
Constructs a numeric value from a number of basic numeric type.
rooNumericValue(ULong_t val, Int_t basetype)
Constructs a numeric value from a number of basic numeric type.
rooNumericValue(Double_t val, Int_t basetype)
Constructs a numeric value from a number of basic numeric type.
rooNumericValue(Char_t val)
Constructs a numeric value from a number of basic numeric type.
rooNumericValue(UChar_t val)
Constructs a numeric value from a number of basic numeric type.
rooNumericValue(Short_t val)
Constructs a numeric value from a number of basic numeric type.
rooNumericValue(UShort_t val)
Constructs a numeric value from a number of basic numeric type.
rooNumericValue(Int_t val)
Constructs a numeric value from a number of basic numeric type.
rooNumericValue(UInt_t val)
Constructs a numeric value from a number of basic numeric type.
rooNumericValue(Long_t val)
Constructs a numeric value from a number of basic numeric type.
rooNumericValue(ULong_t val)
Constructs a numeric value from a number of basic numeric type.
rooNumericValue(Float_t val)
Constructs a numeric value from a number of basic numeric type.
rooNumericValue(Double_t val)
Constructs a numeric value from a number of basic numeric type.
rooNumericValue(void* val)
Constructs a numeric value from a number of basic numeric type.
Bool_t is_valid() const
Tests whether this is a valid numeric value.
Returns kTRUE if this is a valid numeric value; otherwise, kFALSE.
A numeric value is valid if it has a valid numeric type; it is invalid
if its type isv kooNONE.
Int_t type() const
Gets the type of numeric data that this numeric value contains.
Returns: The type of numeric data; one of the following:
kooCHAR indicates an 8-bit character.
kooINT8 indicates an 8-bit signed integer.
kooINT16 indicates a 16-bit signed integer.
kooINT32 indicates a 32-bit signed integer.
kooINT64 indicates a 64-bit signed integer.
kooUINT8 indicates an 8-bit unsigned integer.
kooUINT16 indicates a 16-bit unsigned integer.
kooUINT32 indicates a 32-bit unsigned integer.
kooUINT64 indicates a 64-bit unsigned integer.
kooFLOAT32 indicates a 32-bit (single-precision) floating-point number.
kooFLOAT64 indicates a 64-bit (double-precision) floating-point number.
kooPTR indicates a 32-bit pointer.
kooNONE indicates that this numeric value is invalid.
Inline Functions
Char_t operator Char_t() const
UChar_t operator UChar_t() const
Short_t operator Short_t() const
UShort_t operator UShort_t() const
Int_t operator Int_t() const
UInt_t operator UInt_t() const
Float_t operator Float_t() const
Double_t operator Double_t() const
Long_t operator Long_t() const
ULong_t operator ULong_t() const
void* operator void*() const
Bool_t operator==(const rooNumericValue&)
Bool_t operator!=(const rooNumericValue&)
Bool_t operator>(const rooNumericValue&)
Bool_t operator<(const rooNumericValue&)
Bool_t operator>=(const rooNumericValue&)
Bool_t operator<=(const rooNumericValue&)
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
rooNumericValue rooNumericValue(rooNumericValue&)
Author: Valeriy Onuchin 11/09/2000
ROOT page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.