C++ main module for gpm Package  1.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
CORE_Array< T > Class Template Reference

this class describes an array More...

#include <CORE_Array.h>

Inheritance diagram for CORE_Array< T >:
Inheritance graph
[legend]
Collaboration diagram for CORE_Array< T >:
Collaboration graph
[legend]

Public Member Functions

 CORE_Array ()
 build an array of T* More...
 
template<class Q >
 CORE_Array (const std::vector< Q > &values)
 build an array of T* More...
 
 CORE_Array (const int &n)
 build an array of T* of size n More...
 
virtual ~CORE_Array ()
 destroy an array of T* More...
 
void getSharedPointer (boost::shared_ptr< CORE_Array< T > > &p)
 return the shared pointer corresponding to the class with casting More...
 
void getSharedPointer (boost::shared_ptr< const CORE_Array< T > > &p) const
 return the shared pointer corresponding to the class whith casting More...
 
const T & operator[] (const int &i) const
 get the i-th element Assert in (i>-1) Assert in (i<size()); More...
 
T & operator[] (const int &i)
 get the i-th element Assert in (i>-1) Assert in (i<size()); More...
 
T & operator() (const size_t &i)
 
const T & operator() (const size_t &i) const
 
T & operator= (const CORE_Array< T > &f)
 operator = More...
 
T & operator/= (const T &f)
 operator /= More...
 
T & operator*= (const T &f)
 operator *= More...
 
T & operator+= (const T &f)
 operator += More...
 
T & operator-= (const T &f)
 operator -= More...
 
const T & get (const int &i) const
 get the value at index i Assert in (i>-1) Assert in (i<size()); More...
 
T & get (const int &i)
 get the value at index i Assert in (i>-1) Assert in (i<size()); More...
 
const T & getValue (const int &i) const
 get the value at index i Assert in (i>-1) Assert in (i<size()); More...
 
const T & getLastElement ()
 get last element Assert in (mSize>0) More...
 
int getCapacityFactor () const
 get the capacity factor More...
 
int getStartIndex () const
 get start index More...
 
int size () const
 return the size of the array More...
 
int getSize () const
 return the size of the array More...
 
int getCapacity () const
 return the memory allocation size of the array More...
 
void copy (const CORE_Array< T > &src)
 void copy More...
 
void copy (const CORE_Array< T > *src)
 void copy More...
 
void setStartIndex (const int &n)
 set the start index of the array adjust the size of the array such that the last element of the array is always the last element i.e: suppose size is 5 setStartIndex(2);-> size=3 setStartIndex(1);->size=4 setStartIndex(0);->size=5 More...
 
void setSize (const int &n)
 set the size of the array More...
 
void setCapacityFactor (const int &n)
 set the capacity factor More...
 
void setCapacity (const int &c)
 set the capacity of the vector More...
 
void setValues (const CORE_Array< T > &array, const int &fromIndex)
 
void setValues (const CORE_Array< T > &array)
 
void setValues (const CORE_Array< T > *array)
 copy a CORE_Array and convert it More...
 
void setValues (const int &n, const T *array, const int &fromIndex)
 copy an array of T on size n to the This value from fromIndex and set the start index to fromIndex. More...
 
void setValues (const int &n, const T *array)
 copy an array of T More...
 
void setValuesByReference (const int &n, T *&array, const tBoolean &hasToBeDeleted)
 set the the values by reference the values is destroyed at the end if hasToBeDeleted is true More...
 
void setValues (const vector< T > &array, const int &fromIndex)
 copy an array of T from fromIndex index and set the start index to fromIndex. More...
 
void setValues (const vector< T > &array)
 
void setValues (const tString &str, const int &fromIndex)
 
void setValues (const tString &str)
 
void set (const int &i, const T &obj)
 set the object at the index i More...
 
void setValue (const int &i, const T &obj)
 set the object at the index i More...
 
void initValues (const T &v)
 init all values to v More...
 
void resize ()
 resize the array to the util size More...
 
void resize (const int &n)
 resize the array to n More...
 
void contractToLastElements (const int &n)
 keep only the last n elements of the array and set its capacity also to n More...
 
const T * getValues (int &s) const
 get the values of the util vector More...
 
const T * getValues () const
 get the values of the util vector More...
 
T * getValues ()
 get the values of the util vector More...
 
T * getValues (int &s)
 get the values of the util vector More...
 
const T * getCompleteValues (int &s) const
 get the values of the complete vector More...
 
T * getCompleteValues (int &s)
 get the values of the complete vector More...
 
void addAfterIndex (const int &index, const T &v)
 add an element after index More...
 
void addAfterIndices (const CORE_Array< int > &indices, CORE_SharedPointersList< CORE_Array< T > > &values)
 add alements after indices More...
 
int insert (const int &i, const T &obj)
 insert the object at index i re-allocate the array if capacity too small More...
 
int insertInOrder (const T &obj, const tBoolean &evenIfEqual)
 insert the object in increasing order More...
 
int insert (const T &obj)
 insert the object in increasing order More...
 
void add (const T &obj)
 add an element at the end re-allocate the array if capacity too small More...
 
void merge (const CORE_Array< T > &array)
 merge the array in this More...
 
void append (const CORE_Array< T > &array)
 merge the array in this More...
 
tBoolean remove (const T &obj)
 remove the object More...
 
tBoolean removeAtIndex (const int &i)
 
tBoolean remove ()
 remove the last element More...
 
virtual void clear ()
 clear the array More...
 
int getIndex (const T &v) const
 get the index of value return -1 if no value in index More...
 
int getInfIndex (const T &v) const
 get the inf index of value return -1 if no value less than v More...
 
int getSupIndex (const T &v) const
 get the sup index of value return -1 if no value less than v More...
 
tBoolean exists (const T &obj) const
 exists More...
 
void reverse ()
 reverse the vector More...
 
int search (const T &value, const tString &order)
 search the value in values vector ordered in order More...
 
void sort ()
 sort the array in an increasing order More...
 
void sort (const tString &order)
 sort the array More...
 
tString toString () const
 turn the array into string More...
 
norm2 () const
 get the norm More...
 
norm () const
 get the norm squared More...
 
distance2 (const CORE_Array< T > &y) const
 return distance squared More...
 
distance (const CORE_Array< T > &y) const
 get the distance 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 boost::shared_ptr
< CORE_Array< T > > 
New ()
 return a CORE_Array shared pointer More...
 
static boost::shared_ptr
< CORE_Array< T > > 
New (const int &n)
 return a CORE_Array shared pointer More...
 
static int search (const T *values, const int &n, const T &value, const tString &order)
 search the value in values array ordered in order More...
 
static void sort (T *&items, const int &N, const tString &order)
 sort the array pointer More...
 
static tBoolean compare (const tString &a, const tString &b, const tString &order)
 compare 2 strings More...
 
static tBoolean compare (const int &a, const int &b, const tString &order)
 compare 2 ints More...
 
static tBoolean compare (const tReal &a, const tReal &b, const tString &order)
 compare 2 reals More...
 
static tBoolean areEqual (const int &a, const int &b)
 compare 2 primitive object More...
 
static tBoolean areEqual (const long int &a, const long int &b)
 compare 2 primitive object More...
 
static tBoolean areEqual (const float &a, const float &b)
 compare 2 primitive object More...
 
static tBoolean areEqual (const double &a, const double &b)
 compare 2 primitive object More...
 
static tBoolean areEqual (const long double &a, const long double &b)
 compare 2 primitive object More...
 
static tBoolean areEqual (const short &a, const short &b)
 compare 2 primitive object More...
 
static tBoolean areEqual (const unsigned char &a, const unsigned char &b)
 compare 2 primitive object More...
 
static tBoolean areEqual (const unsigned long int &a, const unsigned long int &b)
 compare 2 primitive object More...
 
static tBoolean areEqual (const bool &a, const bool &b)
 compare 2 primitive object More...
 
static tBoolean areEqual (const char &a, const char &b)
 compare 2 primitive object More...
 
static tBoolean areEqual (const complex< double > &a, const complex< double > &b)
 compare 2 primitive object More...
 
static tBoolean areEqual (const string &a, const string &b)
 compare 2 primitive object 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

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...
 

Detailed Description

template<class T>
class CORE_Array< T >

this class describes an array

Constructor & Destructor Documentation

template<class T >
CORE_Array< T >::CORE_Array ( )

build an array of T*

References null, and CORE_Integer::toString().

Here is the call graph for this function:

template<class T >
template<class Q >
CORE_Array< T >::CORE_Array ( const std::vector< Q > &  values)

build an array of T*

References null, and CORE_Integer::toString().

Here is the call graph for this function:

template<class T >
CORE_Array< T >::CORE_Array ( const int &  n)

build an array of T* of size n

References null, and CORE_Integer::toString().

Here is the call graph for this function:

template<class T >
CORE_Array< T >::~CORE_Array ( )
virtual

destroy an array of T*

References null.

Member Function Documentation

template<class T >
void CORE_Array< T >::add ( const T &  obj)

add an element at the end re-allocate the array if capacity too small

References null, and CORE_Integer::toString().

Referenced by CORE_IO::getContents(), CORE_IO::getFiles(), CORE_SharedPointersListVMap< Key, Value >::getKeys(), CORE_SharedPointersVMap< Key, Value >::getKeys(), CORE_Map< Key, Value >::getKeys(), and CORE_IO::getPaths().

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T >
void CORE_Array< T >::addAfterIndex ( const int &  index,
const T &  v 
)

add an element after index

Parameters
indexmust be in [0,mSize-1]
vif the value inserted at index

re-allocate the array if capacity too small

template<class T >
void CORE_Array< T >::addAfterIndices ( const CORE_Array< int > &  indices,
CORE_SharedPointersList< CORE_Array< T > > &  values 
)

add alements after indices

Parameters
indicesarray of index to add values in increasing order
valuesat index indices[index] add the values of the array of T re-allocate the array if capacity too small

References CORE_Array< T >::get(), CORE_Array< T >::getSize(), null, and CORE_Integer::toString().

Here is the call graph for this function:

template<class T>
void CORE_Array< T >::append ( const CORE_Array< T > &  array)
inline

merge the array in this

References CORE_Array< T >::merge().

Here is the call graph for this function:

static tBoolean CORE_List::areEqual ( const int &  a,
const int &  b 
)
inlinestaticinherited

compare 2 primitive object

static tBoolean CORE_List::areEqual ( const long int &  a,
const long int &  b 
)
inlinestaticinherited

compare 2 primitive object

static tBoolean CORE_List::areEqual ( const float &  a,
const float &  b 
)
inlinestaticinherited

compare 2 primitive object

static tBoolean CORE_List::areEqual ( const double &  a,
const double &  b 
)
inlinestaticinherited

compare 2 primitive object

static tBoolean CORE_List::areEqual ( const long double &  a,
const long double &  b 
)
inlinestaticinherited

compare 2 primitive object

static tBoolean CORE_List::areEqual ( const short &  a,
const short &  b 
)
inlinestaticinherited

compare 2 primitive object

static tBoolean CORE_List::areEqual ( const unsigned char &  a,
const unsigned char &  b 
)
inlinestaticinherited

compare 2 primitive object

static tBoolean CORE_List::areEqual ( const unsigned long int &  a,
const unsigned long int &  b 
)
inlinestaticinherited

compare 2 primitive object

static tBoolean CORE_List::areEqual ( const bool &  a,
const bool &  b 
)
inlinestaticinherited

compare 2 primitive object

static tBoolean CORE_List::areEqual ( const char &  a,
const char &  b 
)
inlinestaticinherited

compare 2 primitive object

static tBoolean CORE_List::areEqual ( const complex< double > &  a,
const complex< double > &  b 
)
inlinestaticinherited

compare 2 primitive object

static tBoolean CORE_List::areEqual ( const string &  a,
const string &  b 
)
inlinestaticinherited

compare 2 primitive object

template<class T>
virtual void CORE_Array< T >::clear ( )
inlinevirtual
static tBoolean CORE_List::compare ( const tString a,
const tString b,
const tString order 
)
inlinestaticinherited

compare 2 strings

static tBoolean CORE_List::compare ( const int &  a,
const int &  b,
const tString order 
)
inlinestaticinherited

compare 2 ints

static tBoolean CORE_List::compare ( const tReal a,
const tReal b,
const tString order 
)
inlinestaticinherited

compare 2 reals

template<class T >
void CORE_Array< T >::contractToLastElements ( const int &  n)

keep only the last n elements of the array and set its capacity also to n

References null, and CORE_Integer::toString().

Here is the call graph for this function:

template<class T >
void CORE_Array< T >::copy ( const CORE_Array< T > &  src)

void copy

References CORE_Array< T >::getCapacity(), CORE_Array< T >::getCapacityFactor(), CORE_Array< T >::getCompleteValues(), CORE_Array< T >::getSize(), and CORE_Array< T >::getStartIndex().

Referenced by CORE_Array< T >::copy().

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T>
void CORE_Array< T >::copy ( const CORE_Array< T > *  src)
inline

void copy

References CORE_Array< T >::copy(), and null.

Here is the call graph for this function:

template<class T>
T CORE_Array< T >::distance ( const CORE_Array< T > &  y) const
inline

get the distance

References CORE_Array< T >::distance2().

Here is the call graph for this function:

template<class T>
T CORE_Array< T >::distance2 ( const CORE_Array< T > &  y) const
inline

return distance squared

Referenced by CORE_Array< T >::distance().

Here is the caller graph for this function:

template<class T>
tBoolean CORE_Array< T >::exists ( const T &  obj) const
inline

exists

template<class T>
const T& CORE_Array< T >::get ( const int &  i) const
inline

get the value at index i Assert in (i>-1) Assert in (i<size());

References ASSERT_IN.

Referenced by CORE_Array< T >::addAfterIndices().

Here is the caller graph for this function:

template<class T>
T& CORE_Array< T >::get ( const int &  i)
inline

get the value at index i Assert in (i>-1) Assert in (i<size());

References ASSERT_IN.

template<class T>
int CORE_Array< T >::getCapacity ( ) const
inline

return the memory allocation size of the array

Referenced by CORE_Array< T >::copy().

Here is the caller graph for this function:

template<class T>
int CORE_Array< T >::getCapacityFactor ( ) const
inline

get the capacity factor

Referenced by CORE_Array< T >::copy().

Here is the caller graph for this function:

static tString CORE_Object::getClassName ( const tString identityString)
inlinestaticinherited

return the class name of the object using only the identity string

Referenced by CORE_Object::printObjectsInMemory().

Here is the caller graph for this function:

tString CORE_Object::getClassName ( ) const
inherited

return the class name of the object

Returns
the class name of the object

References tString.

Referenced by CORE_Object::getIdentityString().

Here is the caller graph for this function:

template<class T>
const T* CORE_Array< T >::getCompleteValues ( int &  s) const
inline

get the values of the complete vector

Referenced by CORE_Array< T >::copy().

Here is the caller graph for this function:

template<class T>
T* CORE_Array< T >::getCompleteValues ( int &  s)
inline

get the values of the complete vector

tString CORE_Object::getIdentityString ( ) const
inlineinherited

return the identity string of the object of the form className_at_address

Returns
the identity string of the object

References CORE_Object::getClassName(), CORE_Object::pointer2String(), and tString.

Referenced by CORE_Object::toString().

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T >
int CORE_Array< T >::getIndex ( const T &  v) const

get the index of value return -1 if no value in index

template<class T >
int CORE_Array< T >::getInfIndex ( const T &  v) const

get the inf index of value return -1 if no value less than v

template<class T>
const T& CORE_Array< T >::getLastElement ( )
inline

get last element Assert in (mSize>0)

References ASSERT_IN.

static ostream& CORE_Object::getOutput ( )
inlinestaticinherited

get output

tString CORE_Object::getPointerAddress ( ) const
inlineinherited

return the identity string of the object

Returns
the identity string of the object

References CORE_Object::pointer2String().

Here is the call graph for this function:

template<class T>
void CORE_Array< T >::getSharedPointer ( boost::shared_ptr< CORE_Array< T > > &  p)
inline

return the shared pointer corresponding to the class with casting

References CORE_Object::getSharedPointer().

Here is the call graph for this function:

void CORE_Object::getSharedPointer ( SP::CORE_Object &  p)
inlineinherited
void CORE_Object::getSharedPointer ( SPC::CORE_Object &  p) const
inlineinherited

get the shared pointer of this class into p

template<class T>
void CORE_Array< T >::getSharedPointer ( boost::shared_ptr< const CORE_Array< T > > &  p) const
inline

return the shared pointer corresponding to the class whith casting

References CORE_Object::getSharedPointer().

Here is the call graph for this function:

template<class T>
int CORE_Array< T >::getSize ( ) const
inline
template<class T>
int CORE_Array< T >::getStartIndex ( ) const
inline

get start index

Referenced by CORE_Array< T >::copy().

Here is the caller graph for this function:

template<class T >
int CORE_Array< T >::getSupIndex ( const T &  v) const

get the sup index of value return -1 if no value less than v

template<class T >
static tString CORE_Object::getTypeName ( )
inlinestaticinherited

get type name

References tString.

template<class T>
const T& CORE_Array< T >::getValue ( const int &  i) const
inline

get the value at index i Assert in (i>-1) Assert in (i<size());

References ASSERT_IN.

template<class T>
const T* CORE_Array< T >::getValues ( int &  s) const
inline

get the values of the util vector

template<class T>
const T* CORE_Array< T >::getValues ( ) const
inline

get the values of the util vector

Referenced by CORE_Array< T >::getValues().

Here is the caller graph for this function:

template<class T>
T* CORE_Array< T >::getValues ( )
inline

get the values of the util vector

References CORE_Array< T >::getValues().

Here is the call graph for this function:

template<class T>
T* CORE_Array< T >::getValues ( int &  s)
inline

get the values of the util vector

template<class T>
void CORE_Array< T >::initValues ( const T &  v)
inline

init all values to v

template<class T >
int CORE_Array< T >::insert ( const int &  i,
const T &  obj 
)

insert the object at index i re-allocate the array if capacity too small

References null, and CORE_Integer::toString().

Here is the call graph for this function:

template<class T>
int CORE_Array< T >::insert ( const T &  obj)
inline

insert the object in increasing order

Returns
the index of insertion re-allocate the array if capacity too small

References CORE_Array< T >::insertInOrder().

Here is the call graph for this function:

template<class T >
int CORE_Array< T >::insertInOrder ( const T &  obj,
const tBoolean evenIfEqual 
)

insert the object in increasing order

Returns
the index of insertion re-allocate the array if capacity too small

Referenced by CORE_Array< T >::insert().

Here is the caller graph for this function:

static tBoolean CORE_Object::is32Architecture ( )
inlinestaticinherited

return true if the machine is a 32 bits machine

References CORE_Object::is64Architecture().

Here is the call graph for this function:

tBoolean CORE_Object::is64Architecture ( )
staticinherited

return true if the machine is a 64 bits machine

Referenced by CORE_Object::is32Architecture().

Here is the caller graph for this function:

template<class T >
tBoolean CORE_Object::isInstanceOf ( ) const
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().

Here is the caller graph for this function:

template<class T >
void CORE_Array< T >::merge ( const CORE_Array< T > &  array)

merge the array in this

References CORE_Array< T >::getSize(), null, and CORE_Integer::toString().

Referenced by CORE_Array< T >::append().

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T>
static boost::shared_ptr<CORE_Array<T> > CORE_Array< T >::New ( )
inlinestatic

return a CORE_Array shared pointer

template<class T>
static boost::shared_ptr<CORE_Array<T> > CORE_Array< T >::New ( const int &  n)
inlinestatic

return a CORE_Array shared pointer

template<class T>
T CORE_Array< T >::norm ( ) const
inline

get the norm squared

References CORE_Array< T >::norm2().

Here is the call graph for this function:

template<class T>
T CORE_Array< T >::norm2 ( ) const
inline

get the norm

Referenced by CORE_Array< T >::norm().

Here is the caller graph for this function:

template<class T>
T& CORE_Array< T >::operator() ( const size_t &  i)
inline

References ASSERT_IN.

template<class T>
const T& CORE_Array< T >::operator() ( const size_t &  i) const
inline

References ASSERT_IN.

template<class T>
T& CORE_Array< T >::operator*= ( const T &  f)
inline

operator *=

template<class T>
T& CORE_Array< T >::operator+= ( const T &  f)
inline

operator +=

template<class T>
T& CORE_Array< T >::operator-= ( const T &  f)
inline

operator -=

template<class T>
T& CORE_Array< T >::operator/= ( const T &  f)
inline

operator /=

template<class T>
T& CORE_Array< T >::operator= ( const CORE_Array< T > &  f)
inline

operator =

template<class T>
const T& CORE_Array< T >::operator[] ( const int &  i) const
inline

get the i-th element Assert in (i>-1) Assert in (i<size());

References ASSERT_IN.

template<class T>
T& CORE_Array< T >::operator[] ( const int &  i)
inline

get the i-th element Assert in (i>-1) Assert in (i<size());

References ASSERT_IN.

void CORE_Object::outputPrint ( const tString message)
staticinherited

print on output

References null, and CORE_Object::print().

Referenced by CORE_Exception::CORE_Exception().

Here is the call graph for this function:

Here is the caller graph for this function:

tString CORE_Object::pointer2String ( const void *  obj)
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().

Here is the caller graph for this function:

virtual void CORE_Object::print ( )
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().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual ostream& CORE_Object::print ( ostream &  out) const
inlinevirtualinherited

print the class

References CORE_Object::print(), and CORE_Object::toString().

Here is the call graph for this function:

void CORE_Object::print ( const tString message)
virtualinherited

print the class

Reimplemented in CORE_Out.

References null, and CORE_Object::print().

Here is the call graph for this function:

void CORE_Object::print ( const tInteger str)
virtualinherited

print

References null.

void CORE_Object::print ( const tRelativeInteger str)
virtualinherited

print

References null.

void CORE_Object::print ( const tReal str)
virtualinherited

print

References null.

void CORE_Object::print ( const int &  str)
virtualinherited

print

References null.

static ostream& CORE_Object::print ( ostream &  out,
const tString message 
)
inlinestaticinherited

print the class

void CORE_Object::printObjectsInMemory ( )
staticinherited

print object in memory

References CORE_Object::getClassName(), CORE_Object::getSharedPointer(), and CORE_Object::mIsMemoryTesting.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T >
tBoolean CORE_Array< T >::remove ( const T &  obj)

remove the object

Returns
true if the objet exists,
false otherwise.

References tBoolean.

template<class T>
tBoolean CORE_Array< T >::remove ( )
inline

remove the last element

References CORE_Array< T >::removeAtIndex(), and CORE_Array< T >::size().

Here is the call graph for this function:

template<class T >
tBoolean CORE_Array< T >::removeAtIndex ( const int &  i)

brief remove the object at index i

Returns
true if the objet exists,
false otherwise.

Referenced by CORE_IO::getFiles(), and CORE_Array< T >::remove().

Here is the caller graph for this function:

template<class T >
void CORE_Array< T >::resize ( )

resize the array to the util size

  • the start index attribute is set to 0

References null, and CORE_Integer::toString().

Here is the call graph for this function:

template<class T >
void CORE_Array< T >::resize ( const int &  n)

resize the array to n

References null, and CORE_Integer::toString().

Here is the call graph for this function:

template<class T >
void CORE_Array< T >::reverse ( )

reverse the vector

template<class T >
int CORE_Array< T >::search ( const T *  values,
const int &  n,
const T &  value,
const tString order 
)
static

search the value in values array ordered in order

Referenced by CORE_Array< T >::search().

Here is the caller graph for this function:

template<class T>
int CORE_Array< T >::search ( const T &  value,
const tString order 
)
inline

search the value in values vector ordered in order

References CORE_Array< T >::search().

Here is the call graph for this function:

template<class T>
void CORE_Array< T >::set ( const int &  i,
const T &  obj 
)
inline

set the object at the index i

References ASSERT_IN.

Referenced by CORE_Map< Key, Value >::getValues(), and CORE_Array< T >::setValue().

Here is the caller graph for this function:

template<class T >
void CORE_Array< T >::setCapacity ( const int &  c)

set the capacity of the vector

References null, and CORE_Integer::toString().

Here is the call graph for this function:

template<class T>
void CORE_Array< T >::setCapacityFactor ( const int &  n)
inline

set the capacity factor

static void CORE_Object::setOutput ( ostream &  out)
inlinestaticinherited

set output

template<class T >
void CORE_Array< T >::setSize ( const int &  n)

set the size of the array

Referenced by CORE_Array< T >::clear(), CORE_Map< Key, Value >::getValues(), and CORE_Array< T >::setValues().

Here is the caller graph for this function:

template<class T>
void CORE_Array< T >::setStartIndex ( const int &  n)
inline

set the start index of the array adjust the size of the array such that the last element of the array is always the last element i.e: suppose size is 5 setStartIndex(2);-> size=3 setStartIndex(1);->size=4 setStartIndex(0);->size=5

void CORE_Object::setThis ( SP::CORE_Object  p)
inlineprotectedinherited

set this weak shared pointer called toDoAfterThis setting method

References CORE_Object::toDoAfterThisSetting().

Here is the call graph for this function:

virtual void CORE_Object::setType ( tString  type)
inlineprotectedvirtualinherited
template<class T>
void CORE_Array< T >::setValue ( const int &  i,
const T &  obj 
)
inline

set the object at the index i

References CORE_Array< T >::set().

Here is the call graph for this function:

template<class T >
void CORE_Array< T >::setValues ( const CORE_Array< T > &  array,
const int &  fromIndex 
)

copy a CORE_Array from fromIndex index and set the start index to fromIndex.

References CORE_Array< T >::getSize().

Referenced by CORE_Array< T >::setValues().

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T>
void CORE_Array< T >::setValues ( const CORE_Array< T > &  array)
inline

copy a CORE_Array and convert it

References CORE_Array< T >::setValues().

Here is the call graph for this function:

template<class T>
void CORE_Array< T >::setValues ( const CORE_Array< T > *  array)
inline

copy a CORE_Array and convert it

References null, CORE_Array< T >::setSize(), and CORE_Array< T >::setValues().

Here is the call graph for this function:

template<class T >
void CORE_Array< T >::setValues ( const int &  n,
const T *  array,
const int &  fromIndex 
)

copy an array of T on size n to the This value from fromIndex and set the start index to fromIndex.

template<class T>
void CORE_Array< T >::setValues ( const int &  n,
const T *  array 
)
inline

copy an array of T

References CORE_Array< T >::setValues().

Here is the call graph for this function:

template<class T >
void CORE_Array< T >::setValues ( const vector< T > &  array,
const int &  fromIndex 
)

copy an array of T from fromIndex index and set the start index to fromIndex.

template<class T>
void CORE_Array< T >::setValues ( const vector< T > &  array)
inline

copy an array of T

References CORE_Array< T >::setValues().

Here is the call graph for this function:

template<class T >
void CORE_Array< T >::setValues ( const tString str,
const int &  fromIndex 
)

set the values of the array thanks to the string representation of the dorm [x0,x1,x2,...x_n] and set the start index to fromIndex.

References CORE_String::New(), and CORE_String::parse().

Here is the call graph for this function:

template<class T>
void CORE_Array< T >::setValues ( const tString str)
inline

set the values of the array thanks to the string representation of the dorm [x0,x1,x2,...x_n]

References CORE_Array< T >::setValues().

Here is the call graph for this function:

template<class T>
void CORE_Array< T >::setValuesByReference ( const int &  n,
T *&  array,
const tBoolean hasToBeDeleted 
)
inline

set the the values by reference the values is destroyed at the end if hasToBeDeleted is true

References null.

template<class T>
int CORE_Array< T >::size ( ) const
inline

return the size of the array

Referenced by CORE_Array< T >::remove(), testIO(), and testListFiles().

Here is the caller graph for this function:

template<class T>
void CORE_Array< T >::sort ( )
inline

sort the array in an increasing order

Referenced by CORE_IO::getFiles(), and CORE_Array< T >::sort().

Here is the caller graph for this function:

template<class T>
void CORE_Array< T >::sort ( const tString order)
inline

sort the array

References CORE_Array< T >::sort().

Here is the call graph for this function:

template<class T >
void CORE_Array< T >::sort ( T *&  items,
const int &  N,
const tString order 
)
static

sort the array pointer

Sort the objects

virtual void CORE_Object::toDoAfterThisSetting ( )
inlineprotectedvirtualinherited
template<class T >
tString CORE_Array< T >::toString ( ) const
virtual

turn the array into string

Reimplemented from CORE_Object.

References CORE_Integer::toString(), CORE_String::toString(), and tString.

Here is the call graph for this function:

Member Data Documentation

tBoolean CORE_Object::mIsMemoryTesting =false
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().


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