63 static SP::CORE_Out
OUT;
111 SP::CORE_Object ptr(mThis);
118 SPC::CORE_Object ptr(mThis);
173 if (out.get()!=
null) OUT=out;
185 if (thread.get()!=
null) THREAD=thread;
212 return *THREAD.get();
234 return identityString.substr(0,identityString.find(
"@"));
260 return (dynamic_cast<const T*>(
this)!=
null);
275 const char *name=
typeid(T).name();
276 char *v=__cxxabiv1::__cxa_demangle(name,NULL,NULL,NULL);
287 return (
sizeof(
long double)==16);
294 return (
sizeof(
long double)==8);
336 return std::numeric_limits<tChar>::max();
342 return std::numeric_limits<tChar>::min();
349 return std::numeric_limits<tUChar>::max();
355 return std::numeric_limits<tUChar>::min();
362 return std::numeric_limits<tSInt>::max();
368 return std::numeric_limits<tSInt>::min();
374 return std::numeric_limits<tUSInt>::max();
380 return std::numeric_limits<tUSInt>::min();
387 return std::numeric_limits<tInt>::max();
394 return std::numeric_limits<tInt>::min();
400 return std::numeric_limits<tUInt>::max();
406 return std::numeric_limits<tUInt>::min();
413 return std::numeric_limits<tLInt>::max();
419 return std::numeric_limits<tLInt>::min();
426 return std::numeric_limits<tULInt>::max();
432 return std::numeric_limits<tULInt>::min();
439 return std::numeric_limits<tLLInt>::max();
445 return std::numeric_limits<tLLInt>::min();
452 return std::numeric_limits<tULLInt>::max();
458 return std::numeric_limits<tULLInt>::min();
465 return std::numeric_limits<tFloat>::max();
471 return std::numeric_limits<tFloat>::min();
478 return std::numeric_limits<T>::epsilon();
485 return std::numeric_limits<T>::infinity();
492 return getEpsilon<tFloat>();
498 return getInfinity<tFloat>();
504 return std::numeric_limits<tDouble>::max();
510 return std::numeric_limits<tDouble>::min();
516 return getInfinity<tFloat>();
522 return getEpsilon<tDouble>();
528 return std::numeric_limits<tLDouble>::min();
534 return std::numeric_limits<tLDouble>::max();
540 return getEpsilon<tLDouble>();
546 return getInfinity<tLDouble>();
554 return std::numeric_limits<tIndex>::max();
560 return std::numeric_limits<tIndex>::min();
566 return std::numeric_limits<tUIndex>::max();
572 return std::numeric_limits<tUIndex>::min();
579 return std::numeric_limits<tFlag>::max();
585 return std::numeric_limits<tFlag>::min();
591 return std::numeric_limits<tUInteger>::max();
597 return std::numeric_limits<tUInteger>::min();
603 return std::numeric_limits<tInteger>::max();
609 return std::numeric_limits<tInteger>::min();
615 return std::numeric_limits<tReal>::max();
621 return std::numeric_limits<tReal>::min();
627 return getEpsilon<tReal>();
634 return getInfinity<tReal>();
642 T eps=getEpsilon<T>();
643 int exp=(int) -(log(eps)/(3.*log(10.)));
static tUSInt getMinUSInt()
get the min value for tUSInt type
Definition: CORE_Object.h:379
static SP::CORE_Out OUT
Definition: CORE_Object.h:63
This class describes a program routine analyser.
Definition: CORE_Thread.h:20
#define tLDouble
Definition: types.h:54
static tDouble getMinDouble()
get the min value for tDouble type
Definition: CORE_Object.h:509
#define tDouble
Definition: types.h:52
static void setIsMemoryChecked(const tBoolean &v)
set if the memory checking is used
Definition: CORE_Object.h:165
static tFloat getMaxFloat()
get the max value for tFloat type
Definition: CORE_Object.h:464
void getSharedPointer(SPC::CORE_Object &p) const
get the shared pointer of this class into p
Definition: CORE_Object.h:103
static tUChar getMinUChar()
get the min value for tUChar type
Definition: CORE_Object.h:354
static T getEpsilon()
get the epsilon value for T type
Definition: CORE_Object.h:477
static tString getClassName(const tString &identityString)
return the class name of the object
Definition: CORE_Object.h:233
static tReal getRealInfinity()
get the infinity value
Definition: CORE_Object.h:633
#define tUInteger
Definition: types.h:91
void operator()(const CORE_Object *p)
operator to delete the class
Definition: CORE_Object.h:145
static T getInfinity()
get the infinity for T type
Definition: CORE_Object.h:484
static tReal getMaxReal()
get the max value for the real type
Definition: CORE_Object.h:614
static tBoolean is32Architecture()
return true if the machine is a 32 bits machine
Definition: CORE_Object.h:293
#define tFloat
Definition: types.h:50
void setThis(SP::CORE_Object p)
set this weak shared pointer called toDoAfterThis setting method
Definition: CORE_Object.h:89
static SP::CORE_Thread THREAD
Definition: CORE_Object.h:66
static tDouble getMaxDouble()
get the max value for tDouble type
Definition: CORE_Object.h:503
static tInteger getMaxInteger()
get the max value for the integer type
Definition: CORE_Object.h:602
static tFlag getMaxFlag()
get the max value for the tFlag type
Definition: CORE_Object.h:578
static tFlag getMinFlag()
get the min value for the tFlag type
Definition: CORE_Object.h:584
static tUIndex getMinUIndex()
get the min value for difference the array/vector indexing type
Definition: CORE_Object.h:571
#define tUSInt
Definition: types.h:28
static tUChar getMaxUChar()
get the max value for tUChar type
Definition: CORE_Object.h:348
static T computeEpsilon()
compute epsilon
Definition: CORE_Object.h:641
#define tBoolean
Definition: types.h:139
static tLDouble getMinLDouble()
get the min value for tLDouble type
Definition: CORE_Object.h:527
static tFloat getFloatEpsilon()
get the epsilon value for tFloat type
Definition: CORE_Object.h:491
static SP::CORE_Out getOut()
get the output
Definition: CORE_Object.h:204
#define tLInt
Definition: types.h:42
static tIndex getMinIndex()
get the min value for the array/vector indexing type
Definition: CORE_Object.h:559
static tLDouble getLDoubleEpsilon()
get the epsilon value for tLDouble type
Definition: CORE_Object.h:539
static tSInt getMinSInt()
get the min value for tSInt type
Definition: CORE_Object.h:367
static tLLInt getMinLLInt()
get the min value for tLLInt type
Definition: CORE_Object.h:444
tString getClassName() const
return the class name of the object
Definition: CORE_Object.cpp:70
#define null
Definition: types.h:144
tBoolean isInstanceOf(const tString &name) const
test if the object is an instance of className
Definition: CORE_Object.h:266
static void setOut(SP::CORE_Out out)
set the output stream
Definition: CORE_Object.h:172
CORE_Object()
build an object
Definition: CORE_Object.cpp:18
static void resetThread()
reset the output stream
Definition: CORE_Object.h:189
static void setThread(SP::CORE_Thread thread)
set the thread
Definition: CORE_Object.h:184
static tLLInt getMaxLLInt()
get the max value for tULInt type
Definition: CORE_Object.h:438
SPC::CORE_Object getThis() const
get this shared pointer associated to this class
Definition: CORE_Object.h:117
static tFloat getMinFloat()
get the min value for tFloat type
Definition: CORE_Object.h:470
static tLInt getMaxLInt()
get the max value for tLInt type
Definition: CORE_Object.h:412
static tBoolean mIsMemoryTesting
indicator to store all classes created and deleted only for debuging version
Definition: CORE_Object.h:72
static tInt getMaxInt()
get the max value for tInt type
Definition: CORE_Object.h:386
static void printObjectsInMemory()
print object in memory in the standart output
Definition: CORE_Object.h:319
static tUInt getMinUInt()
get the min value for tUInt type
Definition: CORE_Object.h:405
static tChar getMinChar()
get the min value for tChar type
Definition: CORE_Object.h:341
#define tULInt
Definition: types.h:39
static tChar getMaxChar()
get the max value for tChar type
Definition: CORE_Object.h:335
#define tLLInt
Definition: types.h:47
#define tIndex
Definition: types.h:129
static tString getTypeName()
get type name
Definition: CORE_Object.h:274
tString getIdentityString() const
return the identity string of the object of the form className_at_address
Definition: CORE_Object.h:241
static tReal getRealEpsilon()
get the eps which is the difference between 1 and the least value greater than 1 that is representabl...
Definition: CORE_Object.h:626
#define tSInt
Definition: types.h:30
static tULInt getMinULInt()
get the min value for tULInt type
Definition: CORE_Object.h:431
static tDouble getDoubleEpsilon()
get the epsilon value for tDouble type
Definition: CORE_Object.h:521
static tIndex getMaxIndex()
get the max value for the array/vector indexing type
Definition: CORE_Object.h:553
WP::CORE_Object mThis
Definition: CORE_Object.h:82
#define tUChar
Definition: types.h:20
static tULInt getMaxULInt()
get the max value for tULInt type
Definition: CORE_Object.h:425
static tLDouble getMaxLDouble()
get the max value for tLDouble type
Definition: CORE_Object.h:533
virtual ~CORE_Object()
destroy an object
Definition: CORE_Object.cpp:30
tString getPointerAddress() const
return the identity string of the object
Definition: CORE_Object.h:251
#define tUInt
Definition: types.h:33
SP::CORE_Object getThis()
get this shared pointer associated to this class
Definition: CORE_Object.h:110
static tUInteger getMaxUInteger()
get the max value for the unsigned integer type
Definition: CORE_Object.h:590
void getSharedPointer(SP::CORE_Object &p)
get the shared pointer of this class into p
Definition: CORE_Object.h:97
friend ostream & operator<<(ostream &out, const CORE_Object &obj)
print the class object
Definition: CORE_Object.h:656
static const tBoolean & isMemoryChecked()
get if the memory checking is used
Definition: CORE_Object.h:219
static tULLInt getMaxULLInt()
get the max value for tULLInt type
Definition: CORE_Object.h:451
#define tUIndex
Definition: types.h:126
static tUIndex getMaxUIndex()
get the max value for difference the array/vector indexing type
Definition: CORE_Object.h:565
abstract base class for most classes.
Definition: CORE_Object.h:53
static tInteger getMinInteger()
get the min value for the integer type
Definition: CORE_Object.h:608
#define tString
Definition: types.h:135
virtual tString toString() const
return the string representation of the object node
Definition: CORE_Object.h:326
static tDouble getLDoubleInfinity()
get the infinity value for tDouble type
Definition: CORE_Object.h:545
static tDouble getDoubleInfinity()
get the infinity value for tFloat type
Definition: CORE_Object.h:515
#define tChar
Definition: types.h:23
static tLInt getMinLInt()
get the min value for tLInt type
Definition: CORE_Object.h:418
tBoolean isInstanceOf() const
test if the clas T is an instance of this class
Definition: CORE_Object.h:259
static CORE_Out & out()
get the output
Definition: CORE_Object.h:198
this class describes the output by default write on standart output
Definition: CORE_Out.h:22
static tString pointer2String(const void *obj)
return the string representation of a pointer
Definition: CORE_Object.cpp:79
static tUInteger getMinUInteger()
get the min value for the unsigned integer type
Definition: CORE_Object.h:596
virtual void toDoAfterThisSetting()
method called after setThis() method this method can oly be called once.
Definition: CORE_Object.h:157
static tUSInt getMaxUSInt()
get the max value for tUSInt type
Definition: CORE_Object.h:373
static tReal getMinReal()
get the min value for the real type
Definition: CORE_Object.h:620
#define tULLInt
Definition: types.h:45
static tULLInt getMinULLInt()
get the min value for tULLInt type
Definition: CORE_Object.h:457
static map< tString, CORE_Object * > mObjects
Definition: CORE_Object.h:75
static tInt getMinInt()
get the min value for tInt type
Definition: CORE_Object.h:393
#define tInt
Definition: types.h:35
static void resetOut()
reset the output stream
Definition: CORE_Object.h:177
static CORE_Thread & getThread()
get the profilier
Definition: CORE_Object.h:211
#define tReal
Definition: types.h:118
static tSInt getMaxSInt()
get the max value for tSInt type
Definition: CORE_Object.h:361
static tFloat getFloatInfinity()
get the infinity value for tFloat type
Definition: CORE_Object.h:497
static tUInt getMaxUInt()
get the max value for tUInt type
Definition: CORE_Object.h:399
#define tInteger
Definition: types.h:90
static tBoolean is64Architecture()
return true if the machine is a 64 bits machine
Definition: CORE_Object.h:286
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141
#define tFlag
Definition: types.h:74