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_Vector< T > Class Template Reference

this class describes an array More...

#include <CORE_Vector.h>

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

Public Member Functions

 CORE_Vector ()
 build a vector of T More...
 
 CORE_Vector (const int &n)
 build a vector of T More...
 
 CORE_Vector (const CORE_Vector< T > &v)
 build a vector of T More...
 
virtual ~CORE_Vector ()
 destroy an array of T* More...
 
void getSharedPointer (boost::shared_ptr< CORE_Vector< T > > &p)
 get the shared pointer into P More...
 
void getSharedPointer (boost::shared_ptr< const CORE_Vector< T > > &p) const
 get the shared pointer into P More...
 
const T & operator[] (int i) const
 get the i-th element ASSERT_IN(i>-1); ASSERT_IN(i<((int)mVector.size())); More...
 
T & operator[] (int i)
 get the i-th element ASSERT_IN(i>-1); ASSERT_IN(i<((int)mVector.size())); More...
 
void setValue (const int &i, const T &v)
 set value More...
 
void setSize (const int &n)
 set the size of the array More...
 
void setCapacity (const int &n)
 set the size of the array More...
 
void initValues (const T &v)
 init the value to v More...
 
void divideBy (const tReal &v)
 divide by value v More...
 
void multiplyBy (const tReal &v)
 multiplied by value v More...
 
void addAfterIndex (const int &index, const T &v)
 add an element after index More...
 
void addAfterIndices (boost::shared_ptr< CORE_Vector< int > > &p_indices, const CORE_SharedPointersList< CORE_Vector< T > > &values)
 add alements after indices More...
 
void add (const CORE_Vector< T > &v)
 init the value to v More...
 
void normalize ()
 normalize More...
 
void add (const tReal &f, const CORE_Vector< T > &v)
 init the value to v More...
 
void sub (const CORE_Vector< T > &v)
 init the value to v More...
 
void sub (const CORE_Vector< T > &u, const CORE_Vector< T > &v)
 init the value to u-v More...
 
void sub (const tReal &f, const CORE_Vector< T > &v)
 init the value to v More...
 
template<class Y >
void copy (const CORE_Vector< Y > &array)
 copy More...
 
template<class Y >
void copy (const CORE_Vector< Y > *array)
 copy More...
 
template<class Y >
void copy (const boost::shared_ptr< CORE_Vector< T > > &array)
 copy More...
 
template<class Y >
void setValues (const vector< Y > &array)
 copy More...
 
template<class Y >
void setValues (const Y *array, const int &n)
 copy More...
 
tBoolean set (int i, const T &obj)
 set the pointer at the index i More...
 
tBoolean insert (int i, const T &obj)
 insert the pointer at index i the old element i become the element i+1 More...
 
int insertInOrder (const T &obj, const tBoolean &evenIfEqual)
 insert T More...
 
int insert (const T &obj)
 insert T More...
 
void add (const T &obj)
 add an element at the end More...
 
virtual void addInList (const T &obj)
 add a core object More...
 
void merge (const CORE_Vector< T > &array)
 merge the array in this More...
 
void sort (const tString &order)
 sort the vector

decreasing order

< increasing order More...

 
tBoolean remove (const T &obj)
 remove the pointer More...
 
tBoolean removeAtIndex (const int &i)
 remove the pointer at index i More...
 
tBoolean remove ()
 remove the last pointer More...
 
void clear ()
 clear the array More...
 
T & getLastElement ()
 get last element pointer More...
 
const T & get (int i) const
 get the pointer at index i ASSERT_IN(i>-1); ASSERT_IN(i<((int)mVector.size())); More...
 
T & get (int i)
 get the pointer at index i ASSERT_IN(i>-1); ASSERT_IN(i<((int)mVector.size())); More...
 
int size () const
 return the size of the vector More...
 
int getSize () const
 return the size of the vector More...
 
int getDimension () const
 return the dimension of the vector More...
 
const T & getValue (const int &i) const
 get value More...
 
const vector< T > & getValues () const
 get values More...
 
vector< T > & getValues ()
 get values More...
 
tBoolean exists (const T &obj) const
 exists More...
 
vector< T > & getVector ()
 get vector More...
 
const vector< T > & getVector () const
 get vector More...
 
int search (const T &value, const tString &order)
 search the value in values vector ordered in order More...
 
void permute (const int &i, const int &j)
 permute More...
 
void reverse ()
 reverse the vector More...
 
void begin ()
 put the iterator on begin More...
 
tBoolean hasNext () const
 return true if the array has next element More...
 
T & next ()
 return the next element More...
 
template<class Q >
tReal distance2 (const CORE_Vector< Q > &a) const
 return the squared distance of the vector with the a vector More...
 
template<class Q >
tReal distance (const CORE_Vector< Q > &a) const
 return the distance of the vector with the a vector More...
 
template<class Q >
tReal scalarProduct (const CORE_Vector< Q > &a) const
 return the scalar product of the vector with the a vector More...
 
template<class Q >
tReal scalarProduct (const CORE_Vector< Q > *a) const
 return the scalar product of the vector with the a vector More...
 
template<class Q >
void crossProduct (const CORE_Vector< Q > &a, CORE_Vector< Q > &res) const
 return the cross product of the vector with the a vector More...
 
void rotX (const tReal &alpha)
 rotate the vector among x-axes with angle alpha More...
 
void rotZ (const tReal &gamma)
 rotate the vector among z-axes with angle gamma More...
 
tReal norm2 () const
 return the squared norm of the vector More...
 
tReal norm () const
 return the norm of the vector More...
 
virtual tString toString () const
 return the string representation of the object node 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_Vector< T > > 
New (const boost::shared_ptr< CORE_Vector< T > > &v)
 create a shared pointer of vector which is a copy of vector v More...
 
static boost::shared_ptr
< CORE_Vector< T > > 
New (const CORE_Vector< T > &v)
 create a shared pointer of vector which is a copy of vector v More...
 
static boost::shared_ptr
< CORE_Vector< T > > 
New (const CORE_Vector< T > *v)
 create a shared pointer of vector which is a copy of vector v More...
 
static boost::shared_ptr
< CORE_Vector< T > > 
New ()
 create a shared pointer of vector More...
 
static boost::shared_ptr
< CORE_Vector< T > > 
New (const int &dim)
 create a shared pointer of vector of size dim More...
 
static void sort (vector< T > &items, const tString &order)
 sort the vector items More...
 
static int search (const vector< T > &values, const T &value, const tString &order)
 search the value in values vector ordered in order More...
 
template<class Q >
static void crossProduct (const CORE_Vector< Q > &a, const CORE_Vector< Q > &b, CORE_Vector< Q > &res)
 return the cross product of the vector with the a vector 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_Vector< T >

this class describes an array

Constructor & Destructor Documentation

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

build a vector of T

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

build a vector of T

template<class T >
CORE_Vector< T >::CORE_Vector ( const CORE_Vector< T > &  v)

build a vector of T

References CORE_Vector< T >::getSize().

Here is the call graph for this function:

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

destroy an array of T*

Member Function Documentation

template<class T>
void CORE_Vector< T >::add ( const CORE_Vector< T > &  v)
inline

init the value to v

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

Here is the caller graph for this function:

template<class T>
void CORE_Vector< T >::add ( const tReal f,
const CORE_Vector< T > &  v 
)
inline

init the value to v

References CORE_Vector< T >::getSize().

Here is the call graph for this function:

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

add an element at the end

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

add an element after index

Parameters
velement add at index+1
indexmust be in [0,mSize-1]
template<class T >
void CORE_Vector< T >::addAfterIndices ( boost::shared_ptr< CORE_Vector< int > > &  p_indices,
const CORE_SharedPointersList< CORE_Vector< T > > &  values 
)

add alements after indices

Parameters
p_indicesarray of index to add values in increasing order
valuesat index indices[index] add the values of the array of T

References CORE_Vector< T >::get(), CORE_Vector< T >::getSize(), and null.

Here is the call graph for this function:

template<class T>
virtual void CORE_Vector< T >::addInList ( const T &  obj)
inlinevirtual

add a core object

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>
void CORE_Vector< T >::begin ( )
inline

put the iterator on begin

template<class T>
void CORE_Vector< 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>
template<class Y >
void CORE_Vector< T >::copy ( const CORE_Vector< Y > &  array)
inline

copy

References CORE_Vector< T >::getSize().

Here is the call graph for this function:

template<class T>
template<class Y >
void CORE_Vector< T >::copy ( const CORE_Vector< Y > *  array)
inline

copy

References null.

template<class T>
template<class Y >
void CORE_Vector< T >::copy ( const boost::shared_ptr< CORE_Vector< T > > &  array)
inline

copy

template<class T>
template<class Q >
static void CORE_Vector< T >::crossProduct ( const CORE_Vector< Q > &  a,
const CORE_Vector< Q > &  b,
CORE_Vector< Q > &  res 
)
inlinestatic

return the cross product of the vector with the a vector

References CORE_Vector< T >::getSize(), and CORE_Vector< T >::setSize().

Here is the call graph for this function:

template<class T>
template<class Q >
void CORE_Vector< T >::crossProduct ( const CORE_Vector< Q > &  a,
CORE_Vector< Q > &  res 
) const
inline

return the cross product of the vector with the a vector

template<class T>
template<class Q >
tReal CORE_Vector< T >::distance ( const CORE_Vector< Q > &  a) const
inline

return the distance of the vector with the a vector

template<class T>
template<class Q >
tReal CORE_Vector< T >::distance2 ( const CORE_Vector< Q > &  a) const
inline

return the squared distance of the vector with the a vector

References CORE_Vector< T >::getSize(), and tReal.

Here is the call graph for this function:

template<class T>
void CORE_Vector< T >::divideBy ( const tReal v)
inline

divide by value v

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

exists

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

get the pointer at index i ASSERT_IN(i>-1); ASSERT_IN(i<((int)mVector.size()));

References ASSERT_IN.

Referenced by CORE_Vector< T >::addAfterIndices(), CORE_SharedPointersKVMap< Key, Value >::getValues(), CORE_SharedPointersVMap< Key, Value >::getValues(), and CORE_Matrix< T >::set().

Here is the caller graph for this function:

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

get the pointer at index i ASSERT_IN(i>-1); ASSERT_IN(i<((int)mVector.size()));

References ASSERT_IN.

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>
int CORE_Vector< T >::getDimension ( ) const
inline

return the dimension of the 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>
T& CORE_Vector< T >::getLastElement ( )
inline

get last element pointer

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:

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_Vector< T >::getSharedPointer ( boost::shared_ptr< CORE_Vector< T > > &  p)
inline

get the shared pointer into P

References CORE_Object::getSharedPointer().

Here is the call graph for this function:

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

get the shared pointer into P

References CORE_Object::getSharedPointer().

Here is the call graph for this function:

template<class T>
int CORE_Vector< T >::getSize ( ) const
inline
template<class T >
static tString CORE_Object::getTypeName ( )
inlinestaticinherited

get type name

References tString.

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

get value

template<class T>
const vector<T>& CORE_Vector< T >::getValues ( ) const
inline

get values

template<class T>
vector<T>& CORE_Vector< T >::getValues ( )
inline

get values

template<class T>
vector<T>& CORE_Vector< T >::getVector ( )
inline

get vector

template<class T>
const vector<T>& CORE_Vector< T >::getVector ( ) const
inline

get vector

template<class T>
tBoolean CORE_Vector< T >::hasNext ( ) const
inline

return true if the array has next element

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

init the value to v

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

insert the pointer at index i the old element i become the element i+1

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

insert T

the elements are ranged in creasing order Do not insert if the obj already exists

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

insert T

the elements are ranged in creasing order

Parameters
objobject to insert
evenIfEqualtrue insert even if obj already exists
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_Vector< T >::merge ( const CORE_Vector< T > &  array)

merge the array in this

References CORE_Vector< T >::size().

Here is the call graph for this function:

template<class T>
void CORE_Vector< T >::multiplyBy ( const tReal v)
inline

multiplied by value v

template<class T>
static boost::shared_ptr<CORE_Vector<T> > CORE_Vector< T >::New ( const boost::shared_ptr< CORE_Vector< T > > &  v)
inlinestatic

create a shared pointer of vector which is a copy of vector v

Parameters
vvector to copy
template<class T>
static boost::shared_ptr<CORE_Vector<T> > CORE_Vector< T >::New ( const CORE_Vector< T > &  v)
inlinestatic

create a shared pointer of vector which is a copy of vector v

Parameters
vvector to copy
template<class T>
static boost::shared_ptr<CORE_Vector<T> > CORE_Vector< T >::New ( const CORE_Vector< T > *  v)
inlinestatic

create a shared pointer of vector which is a copy of vector v

Parameters
vvector to copy

References null.

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

create a shared pointer of vector

Referenced by CORE_Matrix< T >::add(), and CORE_Matrix< T >::copy().

Here is the caller graph for this function:

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

create a shared pointer of vector of size dim

Parameters
dimsize of the vector
template<class T>
T& CORE_Vector< T >::next ( )
inline

return the next element

template<class T>
tReal CORE_Vector< T >::norm ( ) const
inline

return the norm of the vector

template<class T>
tReal CORE_Vector< T >::norm2 ( ) const
inline

return the squared norm of the vector

References tReal.

template<class T>
void CORE_Vector< T >::normalize ( )
inline

normalize

References tReal.

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

get the i-th element ASSERT_IN(i>-1); ASSERT_IN(i<((int)mVector.size()));

References ASSERT_IN.

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

get the i-th element ASSERT_IN(i>-1); ASSERT_IN(i<((int)mVector.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:

template<class T >
void CORE_Vector< T >::permute ( const int &  i,
const int &  j 
)

permute

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_Vector< T >::remove ( const T &  obj)

remove the pointer

Returns
true if the pointerexists,
false otherwise.

References null, and tBoolean.

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

remove the last pointer

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

remove the pointer at index i

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

reverse the vector

template<class T>
void CORE_Vector< T >::rotX ( const tReal alpha)
inline

rotate the vector among x-axes with angle alpha

References tReal.

template<class T>
void CORE_Vector< T >::rotZ ( const tReal gamma)
inline

rotate the vector among z-axes with angle gamma

References tReal.

template<class T>
template<class Q >
tReal CORE_Vector< T >::scalarProduct ( const CORE_Vector< Q > &  a) const
inline

return the scalar product of the vector with the a vector

References CORE_Vector< T >::getSize(), and tReal.

Here is the call graph for this function:

template<class T>
template<class Q >
tReal CORE_Vector< T >::scalarProduct ( const CORE_Vector< Q > *  a) const
inline

return the scalar product of the vector with the a vector

References null.

template<class T >
int CORE_Vector< T >::search ( const vector< T > &  values,
const T &  value,
const tString order 
)
static

search the value in values vector ordered in order

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

search the value in values vector ordered in order

template<class T >
tBoolean CORE_Vector< T >::set ( int  i,
const T &  obj 
)

set the pointer at the index i

Referenced by CORE_Map< Key, Value >::getValues().

Here is the caller graph for this function:

template<class T>
void CORE_Vector< T >::setCapacity ( const int &  n)
inline

set the size of the array

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

set output

template<class T>
void CORE_Vector< T >::setSize ( const int &  n)
inline
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_Vector< T >::setValue ( const int &  i,
const T &  v 
)
inline

set value

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

copy

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

copy

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

return the size of the vector

Referenced by CORE_Vector< T >::merge().

Here is the caller graph for this function:

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

sort the vector

decreasing order

< increasing order

Referenced by CORE_IO::getFiles().

Here is the caller graph for this function:

template<class T >
void CORE_Vector< T >::sort ( vector< T > &  items,
const tString order 
)
static

sort the vector items

template<class T>
void CORE_Vector< T >::sub ( const CORE_Vector< T > &  v)
inline

init the value to v

template<class T>
void CORE_Vector< T >::sub ( const CORE_Vector< T > &  u,
const CORE_Vector< T > &  v 
)
inline

init the value to u-v

References CORE_Vector< T >::getSize().

Here is the call graph for this function:

template<class T>
void CORE_Vector< T >::sub ( const tReal f,
const CORE_Vector< T > &  v 
)
inline

init the value to v

References CORE_Vector< T >::getSize().

Here is the call graph for this function:

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

return the string representation of the object node

Returns
the string representation of the object node

Reimplemented from CORE_Object.

References 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: