|
C++ main module for gpm Package
1.0
|
this class describes an integer More...
#include <CORE_Integer.h>


Public Member Functions | |
| void | setInteger (const tRelativeInteger &i) |
| set the integer to i More... | |
| void | setInteger (const tString &i) |
| set the integer to i More... | |
| tRelativeInteger | getInteger () const |
| get the integer More... | |
| int | intValue () const |
| get the integer More... | |
| int | shortValue () const |
| get the integer More... | |
| tString | toString () const |
| return the string associated to the integer More... | |
| void | increment () |
| increment the value More... | |
| void | decrement () |
| decrement the value More... | |
| void | getSharedPointer (SP::CORE_Object &p) |
| get the shared pointer of this class into p More... | |
| void | getSharedPointer (SPC::CORE_Object &p) const |
| get the shared pointer of this class into p More... | |
| tString | getClassName () const |
| return the class name of the object More... | |
| tString | getIdentityString () const |
| return the identity string of the object of the form className_at_address More... | |
| tString | getPointerAddress () const |
| return the identity string of the object More... | |
| template<class T > | |
| tBoolean | isInstanceOf () const |
| return true if the object is an instance of T More... | |
| virtual void | print () |
| print the class More... | |
| virtual ostream & | print (ostream &out) const |
| print the class More... | |
| virtual void | print (const tString &message) |
| print the class More... | |
| virtual void | print (const tInteger &str) |
| print More... | |
| virtual void | print (const tRelativeInteger &str) |
| print More... | |
| virtual void | print (const tReal &str) |
| print More... | |
| virtual void | print (const int &str) |
| print More... | |
Static Public Member Functions | |
| static SP::CORE_Integer | New () |
| build an integer object More... | |
| static SP::CORE_Integer | New (tRelativeInteger i) |
| build an integer object More... | |
| static tBoolean | isInteger (const tString &str) |
| return true if the str is an integer More... | |
| static int | xtoi (const char *buffer, unsigned int *i) |
| C function which return the int value corresponding to buffer. More... | |
| static char * | itoa (int val, char *buf, int base) |
| C function which return the val val into string. More... | |
| static char * | ltoa (long int val, char *buf, int base) |
| C function which return the val val into string. More... | |
| static char * | lltoa (long long int val, char *buf, int base) |
| C function which return the val val into string. More... | |
| static char * | utoa (unsigned int val, char *buf, int base) |
| C function which return the val val into string. More... | |
| static char * | ultoa (unsigned long int val, char *buf, int base) |
| C function which return the val val into string. More... | |
| static char * | ulltoa (unsigned long long int val, char *buf, int base) |
| C function which return the val val into string. More... | |
| static tString | toString (int i) |
| return the string associated to the int integer More... | |
| static tString | toString (long i) |
| return the string associated to the int integer More... | |
| static tString | toString (long long i) |
| return the string associated to the int integer More... | |
| static tString | toString (unsigned int i) |
| return the string associated to the int integer More... | |
| static tString | toString (unsigned long i) |
| return the string associated to the int integer More... | |
| static tString | toString (unsigned long long i) |
| return the string associated to the int integer More... | |
| static tString | toString (const tRelativeInteger &i, const int &nDigits) |
| return the string associated to the int integer More... | |
| static tString | toHexString (const tRelativeInteger &i, const int &nDigits) |
| return the hexadecimal string corresponding to the int integer More... | |
| static tString | toHexString (const tRelativeInteger &i) |
| return the hexadecimal string corresponding to the int integer More... | |
| static tString | toBinString (tRelativeInteger i) |
| return the binary string corresponding to the int integer More... | |
| static long int | parseInt (tString str) |
| return the integer associated to the string More... | |
| static unsigned long long | parseHex (const tString &str) |
| return the integer associated to the hex string More... | |
| static unsigned long int | parseUnsignedInt (tString str) |
| return the integer associated to the string More... | |
| static tBoolean | parseBoolean (const tString &str) |
| return the integer associated to a boolean More... | |
| static tInteger | turnIntoPBase (tString str, tInteger p) |
| return the integer associated to str in base P More... | |
| static tString | getClassName (const tString &identityString) |
| return the class name of the object using only the identity string More... | |
| template<class T > | |
| static tString | getTypeName () |
| get type name More... | |
| static tBoolean | is64Architecture () |
| return true if the machine is a 64 bits machine More... | |
| static tBoolean | is32Architecture () |
| return true if the machine is a 32 bits machine More... | |
| static tString | pointer2String (const void *obj) |
| return the string represantation of a pointer More... | |
| static void | setOutput (ostream &out) |
| set output More... | |
| static ostream & | getOutput () |
| get output More... | |
| static void | printObjectsInMemory () |
| print object in memory More... | |
| static ostream & | print (ostream &out, const tString &message) |
| print the class More... | |
| static void | outputPrint (const tString &message) |
Static Public Attributes | |
| static tBoolean | mIsMemoryTesting =false |
| indicator to store all classes created and deleted only for debuging version More... | |
Protected Member Functions | |
| CORE_Integer (const tRelativeInteger &i) | |
| create an integer initialize to i More... | |
| ~CORE_Integer () | |
| destriuctors More... | |
| void | setThis (SP::CORE_Object p) |
| set this weak shared pointer called toDoAfterThis setting method More... | |
| virtual void | setType (tString type) |
| set the type of the object More... | |
| virtual void | toDoAfterThisSetting () |
| method called after setThis() method this method can oly be called once. More... | |
this class describes an integer
Attributes:
mInteger is the internal representtaion of an integer -type: int -card:1
|
protected |
|
protected |
destriuctors
|
inline |
decrement the value
return the class name of the object using only the identity string
Referenced by CORE_Object::printObjectsInMemory().

|
inherited |
return the class name of the object
References tString.
Referenced by CORE_Object::getIdentityString().

|
inlineinherited |
return the identity string of the object of the form className_at_address
References CORE_Object::getClassName(), CORE_Object::pointer2String(), and tString.
Referenced by CORE_Object::toString().


|
inline |
get the integer
|
inlinestaticinherited |
get output
|
inlineinherited |
return the identity string of the object
References CORE_Object::pointer2String().

|
inlineinherited |
get the shared pointer of this class into p
Referenced by MATH_ParentExpression::addArgument(), GPMG_EnvironmentPanel::componentClicked(), GPM_GraphElement::copy(), CORE_Map< Key, Value >::getSharedPointer(), CORE_Array< T >::getSharedPointer(), CORE_Vector< T >::getSharedPointer(), CORE_Matrix< T >::getSharedPointer(), CORE_Object::printObjectsInMemory(), MATH_ParentExpression::setArgument(), GPMG_EnvironmentPanel::setEnvironment(), GPM_GraphElement::setGraph(), GPMG_GraphElementWindow::setGraphElement(), GPMG_ShowGraphDrawPanel::showGraph(), and GPMG_RuleGraphDrawPanel::showRule().

|
inlineinherited |
get the shared pointer of this class into p
|
inlinestaticinherited |
get type name
References tString.
|
inline |
increment the value
|
inline |
get the integer
|
inlinestaticinherited |
return true if the machine is a 32 bits machine
References CORE_Object::is64Architecture().

|
staticinherited |
return true if the machine is a 64 bits machine
Referenced by CORE_Object::is32Architecture().

|
inlineinherited |
return true if the object is an instance of T
References null.
Referenced by MATH_BinaryOperator::insertInTree(), MATH_UnaryOperator::insertInTree(), and MATH_EndBlock::insertInTree().

|
static |
C function which return the val val into string.
References ltoa().
Referenced by toString().


|
static |
C function which return the val val into string.
References ulltoa().
Referenced by toString().


|
static |
C function which return the val val into string.
References ultoa().
Referenced by itoa(), toBinString(), toHexString(), and toString().


|
inlinestatic |
|
inlinestatic |
|
staticinherited |
print on output
References null, and CORE_Object::print().
Referenced by CORE_Exception::CORE_Exception().


return the integer associated to a boolean
References parseInt(), and tBoolean.

|
static |
return the integer associated to the hex string
Referenced by CORE_Color::setColor().

|
static |
return the integer associated to the string
Referenced by GPMG_MovieGraphPanel::componentClicked(), GPMG_VariablePanel::componentClicked(), GPMG_RunWindow::componentClicked(), GPMG_GraphElementWindow::componentClicked(), GPMG_RulesWindow::componentClicked(), GPMG_GraphPanel::componentClicked(), MATH_LeafExpression::evaluate(), GPM_ModelFunction::expandVariableNames(), CORE_String::parse(), parseBoolean(), GPM_ModelFunction::parseVarName(), CORE_Run::readInt(), CORE_CommandLine::readOption(), GPM_ModelFunction::readRulesFromFile(), CORE_Color::setColor(), CORE_Time::setDate(), CORE_Time::setHour(), setInteger(), CORE_Time::setTime(), GPM_ModelFunction::updatePatternGraphStates(), GPM_ModelFunction::updateTransformerGraphStates(), and GPMG_RulesWindow::updateValues().

|
static |
return the integer associated to the string
|
staticinherited |
return the string represantation of a pointer
References tString.
Referenced by CORE_Object::CORE_Object(), CORE_Object::getIdentityString(), CORE_Object::getPointerAddress(), and CORE_Object::~CORE_Object().

|
inlinevirtualinherited |
print the class
References CORE_Object::toString().
Referenced by CORE_Object::outputPrint(), CORE_Out::print(), CORE_Object::print(), CORE_Out::printInt(), CORE_Out::println(), CORE_Out::printReal(), CORE_Out::printString(), and CORE_Out::setAction().


|
inlinevirtualinherited |
print the class
References CORE_Object::print(), and CORE_Object::toString().

|
virtualinherited |
print the class
Reimplemented in CORE_Out.
References null, and CORE_Object::print().

|
virtualinherited |
References null.
|
virtualinherited |
References null.
|
inlinestaticinherited |
print the class
|
staticinherited |
print object in memory
References CORE_Object::getClassName(), CORE_Object::getSharedPointer(), and CORE_Object::mIsMemoryTesting.
Referenced by main().


|
inline |
|
inline |
set the integer to i
References parseInt(), and setInteger().

|
inlinestaticinherited |
set output
|
inlineprotectedinherited |
set this weak shared pointer called toDoAfterThis setting method
References CORE_Object::toDoAfterThisSetting().

|
inlineprotectedvirtualinherited |
set the type of the object
Referenced by CORE_CommandLine::CORE_CommandLine(), CORE_IO::CORE_IO(), GPM_2DSnowGraph::GPM_2DSnowGraph(), GPM_BGLTest::GPM_BGLTest(), GPM_ClassFactory::GPM_ClassFactory(), GPM_ConwayFunction::GPM_ConwayFunction(), GPM_ConwayGraph::GPM_ConwayGraph(), GPM_CoreRun::GPM_CoreRun(), GPM_CoreTest::GPM_CoreTest(), GPM_Edge::GPM_Edge(), GPM_ExamplesRun::GPM_ExamplesRun(), GPM_Function::GPM_Function(), GPM_Graph::GPM_Graph(), GPM_GraphElement::GPM_GraphElement(), GPM_ModelGraph::GPM_ModelGraph(), GPM_Node::GPM_Node(), GPM_Object::GPM_Object(), GPM_PatternFunction::GPM_PatternFunction(), GPM_Port::GPM_Port(), GPM_PortGraph::GPM_PortGraph(), GPM_Snow2DFunction::GPM_Snow2DFunction(), GPM_Snow3DFunction::GPM_Snow3DFunction(), GPM_Vertex::GPM_Vertex(), and MATH_ExpressionRun::MATH_ExpressionRun().

|
inline |
get the integer
|
static |
return the binary string corresponding to the int integer
References ltoa(), tRelativeInteger, and tString.

|
inlineprotectedvirtualinherited |
method called after setThis() method this method can oly be called once.
Reimplemented in GPM_2DSnowGraph, GPMG_EnvironmentWindow, GPM_GraphElement, GPM_ModelFunction, GPM_ModelGraph, GPMG_RuleGraphWindow, GPMG_MovieGraphWindow, GPMG_ShowGraphWindow, and GPM_Function.
Referenced by CORE_Object::setThis(), GPM_ModelGraph::toDoAfterThisSetting(), GPM_GraphElement::toDoAfterThisSetting(), and GPM_2DSnowGraph::toDoAfterThisSetting().

|
static |
return the hexadecimal string corresponding to the int integer
References ltoa(), tRelativeInteger, and tString.
Referenced by CORE_Color::toString().


|
static |
return the hexadecimal string corresponding to the int integer
References ltoa(), tRelativeInteger, and tString.

|
inlinevirtual |
return the string associated to the integer
Reimplemented from CORE_Object.
References toString().
Referenced by CORE_Array< T >::add(), CORE_Array< T >::addAfterIndices(), GPM_Rule::buildEnvironment(), GPMG_GraphElementWindow::componentClicked(), GPMG_RulesWindow::componentClicked(), CORE_Array< T >::contractToLastElements(), CORE_Array< T >::CORE_Array(), GPM_Graph::executeTriggerActions(), CORE_Time::getWeekIntervalString(), CORE_Array< T >::insert(), GPM_PortGraph::isEdgeValid(), GPMG_Project::loadData(), GPMG_Project::loadFromUIClass(), GPM_PortGraph::loadGraph(), GPM_Graph::merge(), CORE_Array< T >::merge(), GPM_PrintCallback::operator()(), GPM_ModelRootNode::orderRulesByCallTree(), CORE_Out::printInt(), MATH_FunctionNode::readArguments(), GPM_ModelFunction::readRulesFromFile(), CORE_Array< T >::resize(), GPMG_Project::run(), GPMG_MovieGraphDrawPanel::save(), GPMG_Project::saveData(), GPM_2DSnowGraph::saveGraph(), GPM_ConwayGraph::saveGraph(), GPM_PortGraph::saveGraph(), GPMG_Project::saveToUIClass(), CORE_Out::setAction(), CORE_Array< T >::setCapacity(), CORE_Array3D< T >::toString(), GPM_Edge::toString(), toString(), GPM_Variable::toString(), CORE_SharedPointersListVMap< Key, Value >::toString(), GPM_ModelFunction::toString(), CORE_String::toString(), CORE_Color::toString(), CORE_Array2D< T >::toString(), GPM_Graph::toString(), GPM_PatternFunction::toString(), CORE_Array< T >::toString(), CORE_Time::toString(), GPM_ModelFunction::updatePatternGraphStates(), GPM_ModelFunction::updatePTEdgesStates(), GPM_Snow3DFunction::updateTransformerGraphStates(), GPM_ModelFunction::updateTransformerGraphStates(), GPMG_VertexWindow::updateTriggerVariables(), GPMG_EdgeWindow::updateValues(), GPMG_VertexWindow::updateValues(), GPMG_VariablePanel::updateValues(), GPMG_GraphElementWindow::updateValues(), and GPM_ModelFunction::varNameToString().


|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
return the string associated to the int integer
References ltoa(), tRelativeInteger, and tString.

return the integer associated to str in base P
turnIntoPBase("OO1",2)=1 turnIntoPBase("O1",2)=1 turnIntoPBase("11",2)=3
References tCharacter, and tInteger.
|
static |
C function which return the val val into string.
Referenced by lltoa(), and toString().

|
static |
C function which return the val val into string.
Referenced by ltoa(), toString(), and utoa().

|
static |
C function which return the val val into string.
References ultoa().
Referenced by toString().


|
static |
C function which return the int value corresponding to buffer.
References tString.
|
staticinherited |
indicator to store all classes created and deleted only for debuging version
Referenced by CORE_Object::CORE_Object(), main(), CORE_Object::printObjectsInMemory(), and CORE_Object::~CORE_Object().
1.8.8