9 #include <boost/lexical_cast.hpp> 55 static inline SP::CORE_Integer
New() {
197 return std::bitset<N>(i).to_string();
250 #endif // end of ifndef
tInteger mInteger
Definition: CORE_Integer.h:29
static tLLInt parseInt(const tString &str)
return the integer associated to the string
Definition: CORE_Integer.cpp:102
void increment()
increment the value
Definition: CORE_Integer.h:236
CORE_Integer(const tInteger &i)
create an integer initialize to i
Definition: CORE_Integer.cpp:8
~CORE_Integer()
destriuctors
Definition: CORE_Integer.cpp:13
#define tUInteger
Definition: types.h:91
static tString toHexString(const tUInt &i, const tUIndex &nDigits)
return the hexadecimal string corresponding to the int integer
Definition: CORE_Integer.cpp:95
const tInteger & getInteger() const
get the integer
Definition: CORE_Integer.h:94
#define tUSInt
Definition: types.h:28
#define tBoolean
Definition: types.h:139
#define tLInt
Definition: types.h:42
tString toString() const
return the string associated to the integer
Definition: CORE_Integer.h:106
static tULLInt parseUInt(const tString &str)
return the integer associated to the string
Definition: CORE_Integer.cpp:113
static SP::CORE_Integer New()
build an integer object
Definition: CORE_Integer.h:55
this class describes an integer
Definition: CORE_Integer.h:25
DEFINE_SPTR(CORE_Integer)
void setInteger(const tString &i)
set the integer to i
Definition: CORE_Integer.h:80
#define tULInt
Definition: types.h:39
#define tLLInt
Definition: types.h:47
static tString toBinString(const tUInteger &i)
return the binary string corresponding to the int integer
Definition: CORE_Integer.h:196
#define tSInt
Definition: types.h:30
void decrement()
decrement the value
Definition: CORE_Integer.h:241
#define tUChar
Definition: types.h:20
#define tUInt
Definition: types.h:33
#define tUIndex
Definition: types.h:126
void setInteger(const tInteger &i)
set the integer to i
Definition: CORE_Integer.h:74
static SP::CORE_Integer New(const tInteger &i)
build an integer object
Definition: CORE_Integer.h:64
abstract base class for most classes.
Definition: CORE_Object.h:53
#define tString
Definition: types.h:135
#define tChar
Definition: types.h:23
static tULLInt parseHex(const tString &str)
return the integer associated to the hex string
Definition: CORE_Integer.cpp:126
static tInteger turnIntoPBase(const tString &str, const tInteger &p)
return the integer associated to str in base P
Definition: CORE_Integer.cpp:142
#define tULLInt
Definition: types.h:45
#define tInt
Definition: types.h:35
#define tInteger
Definition: types.h:90
static tBoolean parseBoolean(const tString &str)
return the integer associated to a boolean
Definition: CORE_Integer.h:220
static tBoolean isInteger(const tString &str)
return true if the str is an integer
Definition: CORE_Integer.cpp:132
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141