C++ main module for emicrom Package  1.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | 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 tUIndex &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[] (const tUIndex &i) const
 get the i-th element More...
 
T & operator[] (const tUIndex &i)
 get the i-th element More...
 
CORE_Vector< T > & operator= (const T &v)
 init the vector to v More...
 
CORE_Vectoroperator+= (const T &v)
 do the arithmetic operation This+=v More...
 
CORE_Vectoroperator-= (const T &v)
 do the arithmetic operation This-=v More...
 
CORE_Vectoroperator*= (const T &v)
 do the arithmetic operation This*=v More...
 
CORE_Vectoroperator/= (const T &v)
 do the arithmetic operation This/=v More...
 
template<class Q >
void copy (const CORE_Vector< Q > &u)
 copy More...
 
template<class Q >
void copy (const boost::shared_ptr< CORE_Vector< Q > > &array)
 copy More...
 
template<class Q >
void copy (const vector< Q > &u)
 copy the values More...
 
void clear ()
 clear the array More...
 
void setSize (const tUIndex &n)
 set the size of the vector More...
 
void reserve (const tUIndex &n)
 set the capacity of the vector More...
 
CORE_Vector< T > & initValues (const T &v)
 init the value to v More...
 
CORE_Vector< T > & initValues (const tUIndex &from, const tString &v)
 init the value to v More...
 
void setValue (const tUIndex &i, const T &v)
 set value at indx i More...
 
void set (const tUIndex &i, const T &v)
 set value at indx i More...
 
template<class Q >
void setValues (const vector< Q > &u)
 set the values More...
 
template<class Q >
void setValues (const Q *u, const tUIndex &n)
 set the values More...
 
vector< T >::const_iterator begin () const
 get iterator More...
 
vector< T >::iterator begin ()
 get iterator More...
 
vector< T >::const_iterator end () const
 get iterator More...
 
vector< T >::iterator end ()
 get iterator More...
 
T & getLastElement ()
 get last element value for writing More...
 
const T & getLastElement () const
 get last element value for reading More...
 
const T & getValue (const tUIndex &i) const
 get value More...
 
const T & get (const tUIndex &i) const
 get the value at index i More...
 
T & get (const tUIndex &i)
 get the value at index i More...
 
tUIndex getSize () const
 return the size of the vector More...
 
tUIndex size () const
 return the size of the vector More...
 
const vector< T > & getValues () const
 get values as a vector More...
 
vector< T > & getValues ()
 get values More...
 
vector< T > & getVector ()
 get vector More...
 
const vector< T > & getVector () const
 get vector More...
 
void divideBy (const tReal &v)
 divide by value v More...
 
void multiplyBy (const tReal &v)
 multiplied by value v More...
 
void add (const CORE_Vector< T > &u, const CORE_Vector< T > &v)
 init the value to this=u-v More...
 
void add (const tReal &f, const CORE_Vector< T > &v)
 This+=f*v;. More...
 
void add (const CORE_Vector< T > &v)
 This+=v. More...
 
void sub (const CORE_Vector< T > &v)
 This-=v;. More...
 
void sub (const T &f, const CORE_Vector< T > &v)
 This-=f*v;. More...
 
void sub (const CORE_Vector< T > &u, const CORE_Vector< T > &v)
 init the value to This=u-v 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 > &u) 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...
 
void normalize ()
 normalize More...
 
tBoolean exists (const T &obj) const
 test if the value obj exists More...
 
virtual void addInList (const T &obj)
 add a core object More...
 
void push_back (const T &obj)
 add an element at the end More...
 
void add (const T &obj)
 add an element at the end More...
 
tBoolean insert (const tUIndex &i, const T &obj)
 insert the pointer at index i the old element i become the element i+1 More...
 
tBoolean insertAtIndex (const tUIndex &i, const T &obj)
 insert the pointer at index i the old element i become the element i+1 More...
 
tUIndex insert (const T &obj)
 insert T More...
 
tUIndex insertInIncreasingOrder (const T &obj, const tBoolean &evenIfEqual)
 insert The value in an increasing order More...
 
void addAfterIndex (const tUIndex &index, const T &v)
 add an element after index More...
 
void addAfterIndices (boost::shared_ptr< CORE_Vector< tUIndex > > &p_indices, const CORE_SharedPointersList< CORE_Vector< T > > &values)
 add alements after indices More...
 
void append (const CORE_Vector< T > &array)
 append the array at the end of this More...
 
tBoolean remove (const T &obj)
 remove all the value for the vector More...
 
tBoolean remove (const T *obj)
 remove the pointer More...
 
tBoolean removeAtIndex (const tUIndex &i)
 remove the pointer at index i More...
 
tBoolean remove ()
 remove the last pointer More...
 
void sort (const tFlag &order)
 sort the vector

decreasing order

< increasing order More...

 
void sort ()
 sort the vector

decreasing order

< increasing order More...

 
tUIndex search (const T &value, const tFlag &order)
 search the value in values vector ordered in order More...
 
void permute (const tUIndex &i, const tUIndex &j)
 permute More...
 
void reverse ()
 reverse the vector More...
 
virtual tString toString () const
 return the string representation of the vector 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
 test if the clas T is an instance of this class More...
 
tBoolean isInstanceOf (const tString &name) const
 test if the object is an instance of className 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 tUIndex &dim)
 create a shared pointer of vector of size dim 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 res=a^b More...
 
static void sort (vector< T > &items, const tFlag &order)
 sort the vector items More...
 
static tUIndex search (const vector< T > &values, const T &value, const tFlag &order)
 search the value in values vector ordered in order If it does not existe return getMaxUIndex() More...
 
static void setIsMemoryChecked (const tBoolean &v)
 set if the memory checking is used More...
 
static void setOut (SP::CORE_Out out)
 set the output stream More...
 
static void resetOut ()
 reset the output stream More...
 
static void setThread (SP::CORE_Thread thread)
 set the thread More...
 
static void resetThread ()
 reset the output stream More...
 
static CORE_Outout ()
 get the output More...
 
static SP::CORE_Out getOut ()
 get the output More...
 
static CORE_ThreadgetThread ()
 get the profilier More...
 
static const tBooleanisMemoryChecked ()
 get if the memory checking is used More...
 
static tString getClassName (const tString &identityString)
 return the class name of the object 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 representation of a pointer More...
 
static void printObjectsInMemory (ostream &f)
 print object in memory More...
 
static void printObjectsInMemory ()
 print object in memory in the standart output More...
 
static tChar getMaxChar ()
 get the max value for tChar type More...
 
static tChar getMinChar ()
 get the min value for tChar type More...
 
static tUChar getMaxUChar ()
 get the max value for tUChar type More...
 
static tUChar getMinUChar ()
 get the min value for tUChar type More...
 
static tSInt getMaxSInt ()
 get the max value for tSInt type More...
 
static tSInt getMinSInt ()
 get the min value for tSInt type More...
 
static tUSInt getMaxUSInt ()
 get the max value for tUSInt type More...
 
static tUSInt getMinUSInt ()
 get the min value for tUSInt type More...
 
static tInt getMaxInt ()
 get the max value for tInt type More...
 
static tInt getMinInt ()
 get the min value for tInt type More...
 
static tUInt getMaxUInt ()
 get the max value for tUInt type More...
 
static tUInt getMinUInt ()
 get the min value for tUInt type More...
 
static tLInt getMaxLInt ()
 get the max value for tLInt type More...
 
static tLInt getMinLInt ()
 get the min value for tLInt type More...
 
static tULInt getMaxULInt ()
 get the max value for tULInt type More...
 
static tULInt getMinULInt ()
 get the min value for tULInt type More...
 
static tLLInt getMaxLLInt ()
 get the max value for tULInt type More...
 
static tLLInt getMinLLInt ()
 get the min value for tLLInt type More...
 
static tULLInt getMaxULLInt ()
 get the max value for tULLInt type More...
 
static tULLInt getMinULLInt ()
 get the min value for tULLInt type More...
 
static tFloat getMaxFloat ()
 get the max value for tFloat type More...
 
static tFloat getMinFloat ()
 get the min value for tFloat type More...
 
template<class T >
static T getEpsilon ()
 get the epsilon value for T type More...
 
template<class T >
static T getInfinity ()
 get the infinity for T type More...
 
static tFloat getFloatEpsilon ()
 get the epsilon value for tFloat type More...
 
static tFloat getFloatInfinity ()
 get the infinity value for tFloat type More...
 
static tDouble getMaxDouble ()
 get the max value for tDouble type More...
 
static tDouble getMinDouble ()
 get the min value for tDouble type More...
 
static tDouble getDoubleInfinity ()
 get the infinity value for tFloat type More...
 
static tDouble getDoubleEpsilon ()
 get the epsilon value for tDouble type More...
 
static tLDouble getMinLDouble ()
 get the min value for tLDouble type More...
 
static tLDouble getMaxLDouble ()
 get the max value for tLDouble type More...
 
static tLDouble getLDoubleEpsilon ()
 get the epsilon value for tLDouble type More...
 
static tDouble getLDoubleInfinity ()
 get the infinity value for tDouble type More...
 
static tIndex getMaxIndex ()
 get the max value for the array/vector indexing type More...
 
static tIndex getMinIndex ()
 get the min value for the array/vector indexing type More...
 
static tUIndex getMaxUIndex ()
 get the max value for difference the array/vector indexing type More...
 
static tUIndex getMinUIndex ()
 get the min value for difference the array/vector indexing type More...
 
static tFlag getMaxFlag ()
 get the max value for the tFlag type More...
 
static tFlag getMinFlag ()
 get the min value for the tFlag type More...
 
static tUInteger getMaxUInteger ()
 get the max value for the unsigned integer type More...
 
static tUInteger getMinUInteger ()
 get the min value for the unsigned integer type More...
 
static tInteger getMaxInteger ()
 get the max value for the integer type More...
 
static tInteger getMinInteger ()
 get the min value for the integer type More...
 
static tReal getMaxReal ()
 get the max value for the real type More...
 
static tReal getMinReal ()
 get the min value for the real type More...
 
static tReal getRealEpsilon ()
 get the eps which is the difference between 1 and the least value greater than 1 that is representable. More...
 
static tReal getRealInfinity ()
 get the infinity value More...
 
template<class T >
static T computeEpsilon ()
 compute epsilon More...
 
template<class Q >
static tBoolean compare (const Q &a, const Q &b, const tFlag &order)
 compare 2 object a & b More...
 
static tBoolean compareString (const tString &a, const tString &b, const tFlag &order)
 compare 2 string a & b More...
 
static tFlag reverse (const tFlag &oder)
 return the reverse order More...
 

Static Public Attributes

static const tFlag NO_ORDER =0
 
static const tFlag EQ =1
 
static const tFlag NEQ =2
 
static const tFlag LT =3
 = More...
 
static const tFlag LE =4
 
static const tFlag GT =5
 
static const tFlag GE =6
 

Protected Member Functions

void setThis (SP::CORE_Object p)
 set this weak shared pointer called toDoAfterThis setting method More...
 
virtual void toDoAfterThisSetting ()
 method called after setThis() method this method can oly be called once. More...
 

Private Member Functions

boost::shared_ptr< CORE_Vector< T > > getThis ()
 get the shared pointer This More...
 
boost::shared_ptr< const CORE_Vector< T > > getThis () const
 get the shared pointer This More...
 

Private Attributes

vector< T > mVector
 

Detailed Description

template<class T>
class CORE_Vector< T >

this class describes an array

Constructor & Destructor Documentation

◆ CORE_Vector() [1/3]

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

build a vector of T

References CORE_Vector< T >::mVector.

◆ CORE_Vector() [2/3]

template<class T >
CORE_Vector< T >::CORE_Vector ( const tUIndex n)

build a vector of T

References CORE_Vector< T >::mVector.

◆ CORE_Vector() [3/3]

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

build a vector of T

References CORE_Vector< T >::copy().

Here is the call graph for this function:

◆ ~CORE_Vector()

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

destroy an array of T*

Member Function Documentation

◆ add() [1/4]

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

init the value to this=u-v

Parameters
ufirst argument of the add method
vsecond argument of the add method
Returns
This=u+v

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

Referenced by CORE_IO::getContents(), CORE_IO::getFiles(), CORE_SharedPointersListVMap< Key, Value >::getKeys(), CORE_Map< Key, Value >::getKeys(), CORE_IO::getPaths(), CORE_Vector< T >::insert(), CORE_Vector< T >::insertInIncreasingOrder(), and CORE_Test::testString().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ add() [2/4]

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

This+=f*v;.

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

Here is the call graph for this function:

◆ add() [3/4]

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

This+=v.

Parameters
vthe vector to add

◆ add() [4/4]

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

add an element at the end

Parameters
objthe element to add

References tBoolean, and tUIndex.

◆ addAfterIndex()

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

add an element after index

Parameters
velement add at index+1
indexmust be in [0,mSize-1]

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

Here is the call graph for this function:

◆ addAfterIndices()

template<class T >
void CORE_Vector< T >::addAfterIndices ( boost::shared_ptr< CORE_Vector< tUIndex > > &  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 >::copy(), CORE_Vector< T >::get(), CORE_Object::getMaxUIndex(), CORE_Vector< T >::getSize(), CORE_Vector< T >::mVector, null, tIndex, and tUIndex.

Here is the call graph for this function:

◆ addInList()

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

add a core object

◆ append()

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

append the array at the end of this

Parameters
arraythe array to append

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

Here is the call graph for this function:

◆ begin() [1/2]

template<class T>
vector<T>::const_iterator CORE_Vector< T >::begin ( ) const
inline

◆ begin() [2/2]

template<class T>
vector<T>::iterator CORE_Vector< T >::begin ( )
inline

get iterator

◆ clear()

template<class T>
void CORE_Vector< T >::clear ( )
inlinevirtual

◆ compare()

template<class Q >
static tBoolean CORE_List::compare ( const Q &  a,
const Q &  b,
const tFlag order 
)
inlinestaticinherited

compare 2 object a & b

Parameters
athe first object to compare
b: the second object to compare
orderthe type of order in EQ,NEQ,LT,LE,GT,GE (=,!=,<,<=,>,>=)
Returns
the comparison between a and b with respect to order

Referenced by CORE_List::compareString(), CORE_ArrayList< tString >::insert(), CORE_Vector< T >::search(), CORE_ArrayList< tString >::sort(), and CORE_Vector< T >::sort().

Here is the caller graph for this function:

◆ compareString()

static tBoolean CORE_List::compareString ( const tString a,
const tString b,
const tFlag order 
)
inlinestaticinherited

compare 2 string a & b

Parameters
athe first string to compare
b: the second string to compare
orderthe type of order in EQ,NEQ,LT,LE,GT,GE (=,!=,<,<=,>,>=)
Returns
the comparison between a and b with respect to order

References CORE_List::compare(), CORE_List::reverse(), and tFlag.

Here is the call graph for this function:

◆ computeEpsilon()

template<class T >
static T CORE_Object::computeEpsilon ( )
inlinestaticinherited

compute epsilon

Returns
the epsilon value eps=10^{-p/3} where p is defined by getEpsilon()=10^{-p}

◆ copy() [1/3]

template<class T>
template<class Q >
void CORE_Vector< T >::copy ( const CORE_Vector< Q > &  u)
inline

copy

Parameters
uthe shared vector to copy

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

Referenced by CORE_Vector< T >::addAfterIndices(), and CORE_Vector< T >::CORE_Vector().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copy() [2/3]

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

copy

Parameters
arraythe shared vector to copy

◆ copy() [3/3]

template<class T>
template<class Q >
void CORE_Vector< T >::copy ( const vector< Q > &  u)
inline

copy the values

Parameters
uthe vector to copy

◆ crossProduct() [1/2]

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 res=a^b

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

Here is the call graph for this function:

◆ crossProduct() [2/2]

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

◆ distance()

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

◆ distance2()

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 >::begin(), CORE_Vector< T >::getSize(), tReal, and tUIndex.

Here is the call graph for this function:

◆ divideBy()

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

divide by value v

Parameters
vdivisor value

◆ end() [1/2]

template<class T>
vector<T>::const_iterator CORE_Vector< T >::end ( ) const
inline

get iterator

Referenced by CORE_Array2D< T >::setRowValue().

Here is the caller graph for this function:

◆ end() [2/2]

template<class T>
vector<T>::iterator CORE_Vector< T >::end ( )
inline

get iterator

◆ exists()

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

test if the value obj exists

Parameters
objthe value to find

References CORE_Vector< T >::mVector.

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

Here is the caller graph for this function:

◆ get() [1/2]

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

get the value at index i

Parameters
iindex of the element
Returns
the value for reading

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

Here is the caller graph for this function:

◆ get() [2/2]

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

get the value at index i

Parameters
iindex of the element
Returns
the value for writing

◆ getClassName() [1/2]

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(), EMM_Operator::getName(), and CORE_Object::isMemoryChecked().

Here is the caller graph for this function:

◆ getClassName() [2/2]

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

return the class name of the object

Parameters
identityStringthe identity string of the object
Returns
the class name

◆ getDoubleEpsilon()

static tDouble CORE_Object::getDoubleEpsilon ( )
inlinestaticinherited

get the epsilon value for tDouble type

Returns
the epsilon value for tDouble type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getDoubleInfinity()

static tDouble CORE_Object::getDoubleInfinity ( )
inlinestaticinherited

get the infinity value for tFloat type

Returns
the intinity value for tFloat type

◆ getEpsilon()

template<class T >
static T CORE_Object::getEpsilon ( )
inlinestaticinherited

get the epsilon value for T type

Returns
the epsilon value for T type

◆ getFloatEpsilon()

static tFloat CORE_Object::getFloatEpsilon ( )
inlinestaticinherited

get the epsilon value for tFloat type

Returns
the epsilon value for tFloat type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getFloatInfinity()

static tFloat CORE_Object::getFloatInfinity ( )
inlinestaticinherited

get the infinity value for tFloat type

Returns
the intinity value for tFloat type

◆ getIdentityString()

tString CORE_Object::getIdentityString ( ) const
inlineinherited

◆ getInfinity()

template<class T >
static T CORE_Object::getInfinity ( )
inlinestaticinherited

get the infinity for T type

Returns
the infinity value for T type

◆ getLastElement() [1/2]

template<class T>
T& CORE_Vector< T >::getLastElement ( )
inline

get last element value for writing

Returns
the last element value

References ASSERT_IN.

Referenced by CORE_Test::testVector().

Here is the caller graph for this function:

◆ getLastElement() [2/2]

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

get last element value for reading

Returns
the last element value

References ASSERT_IN.

◆ getLDoubleEpsilon()

static tLDouble CORE_Object::getLDoubleEpsilon ( )
inlinestaticinherited

get the epsilon value for tLDouble type

Returns
the epsilon value for tLDouble type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getLDoubleInfinity()

static tDouble CORE_Object::getLDoubleInfinity ( )
inlinestaticinherited

get the infinity value for tDouble type

Returns
the infinity value for tDouble type

◆ getMaxChar()

static tChar CORE_Object::getMaxChar ( )
inlinestaticinherited

get the max value for tChar type

Returns
the max value for tChar type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxDouble()

static tDouble CORE_Object::getMaxDouble ( )
inlinestaticinherited

get the max value for tDouble type

Returns
the max value for tDouble type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxFlag()

static tFlag CORE_Object::getMaxFlag ( )
inlinestaticinherited

get the max value for the tFlag type

Returns
the max value for the tFlag type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxFloat()

static tFloat CORE_Object::getMaxFloat ( )
inlinestaticinherited

get the max value for tFloat type

Returns
the max value for tFloat type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxIndex()

static tIndex CORE_Object::getMaxIndex ( )
inlinestaticinherited

get the max value for the array/vector indexing type

Returns
the max value for the array/vector indexing type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxInt()

static tInt CORE_Object::getMaxInt ( )
inlinestaticinherited

get the max value for tInt type

Returns
the max value for tInt type

Referenced by MATSGN_FFT::fastFourierTransform3D_FFTW(), and CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxInteger()

static tInteger CORE_Object::getMaxInteger ( )
inlinestaticinherited

get the max value for the integer type

Returns
the max value for the integer type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxLDouble()

static tLDouble CORE_Object::getMaxLDouble ( )
inlinestaticinherited

get the max value for tLDouble type

Returns
the max value for tLDouble type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxLInt()

static tLInt CORE_Object::getMaxLInt ( )
inlinestaticinherited

get the max value for tLInt type

Returns
the max value for tLInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxLLInt()

static tLLInt CORE_Object::getMaxLLInt ( )
inlinestaticinherited

get the max value for tULInt type

Returns
the max value for tULInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxReal()

static tReal CORE_Object::getMaxReal ( )
inlinestaticinherited

get the max value for the real type

Returns
he max value for the real type

Referenced by EMM_MatterField::adimensionize(), and CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxSInt()

static tSInt CORE_Object::getMaxSInt ( )
inlinestaticinherited

get the max value for tSInt type

Returns
the max value for tSInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxUChar()

static tUChar CORE_Object::getMaxUChar ( )
inlinestaticinherited

get the max value for tUChar type

Returns
the max value for tUChar type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxUIndex()

static tUIndex CORE_Object::getMaxUIndex ( )
inlinestaticinherited

get the max value for difference the array/vector indexing type

Returns
the max value for difference the array/vector indexing type

Referenced by CORE_Vector< T >::addAfterIndices(), CORE_Vector< T >::search(), CORE_Test::testType(), CORE_Integer::toHexString(), and CORE_Integer::toString().

Here is the caller graph for this function:

◆ getMaxUInt()

static tUInt CORE_Object::getMaxUInt ( )
inlinestaticinherited

get the max value for tUInt type

Returns
the max value for tUInt type

Referenced by EMM_Array< tCellFlag >::loadFromFile(), EMM_RealField::loadFromFile(), and CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxUInteger()

static tUInteger CORE_Object::getMaxUInteger ( )
inlinestaticinherited

get the max value for the unsigned integer type

Returns
the max value for the unsigned integer type

Referenced by MATH_Pn::computeExtrenums(), EMM_MultiScaleGrid::computeLevelsNumber(), EMM_Input::restoreBackup(), MATH_P0::solve(), and CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxULInt()

static tULInt CORE_Object::getMaxULInt ( )
inlinestaticinherited

get the max value for tULInt type

Returns
the max value for tULInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxULLInt()

static tULLInt CORE_Object::getMaxULLInt ( )
inlinestaticinherited

get the max value for tULLInt type

Returns
the max value for tULLInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxUSInt()

static tUSInt CORE_Object::getMaxUSInt ( )
inlinestaticinherited

get the max value for tUSInt type

Returns
the max value for tUSInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinChar()

static tChar CORE_Object::getMinChar ( )
inlinestaticinherited

get the min value for tChar type

Returns
the min value for tChar type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinDouble()

static tDouble CORE_Object::getMinDouble ( )
inlinestaticinherited

get the min value for tDouble type

Returns
the min value for tDouble type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinFlag()

static tFlag CORE_Object::getMinFlag ( )
inlinestaticinherited

get the min value for the tFlag type

Returns
the min value for the tFlag type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinFloat()

static tFloat CORE_Object::getMinFloat ( )
inlinestaticinherited

get the min value for tFloat type

Returns
the min value for tFloat type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinIndex()

static tIndex CORE_Object::getMinIndex ( )
inlinestaticinherited

get the min value for the array/vector indexing type

Returns
the min value for the array/vector indexing type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinInt()

static tInt CORE_Object::getMinInt ( )
inlinestaticinherited

get the min value for tInt type

Returns
the min value for tInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinInteger()

static tInteger CORE_Object::getMinInteger ( )
inlinestaticinherited

get the min value for the integer type

Returns
the minin value for the integer type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinLDouble()

static tLDouble CORE_Object::getMinLDouble ( )
inlinestaticinherited

get the min value for tLDouble type

Returns
the min value for tLDouble type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinLInt()

static tLInt CORE_Object::getMinLInt ( )
inlinestaticinherited

get the min value for tLInt type

Returns
the min value for tLInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinLLInt()

static tLLInt CORE_Object::getMinLLInt ( )
inlinestaticinherited

get the min value for tLLInt type

Returns
the min value for tLLInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinReal()

static tReal CORE_Object::getMinReal ( )
inlinestaticinherited

get the min value for the real type

Returns
the min value for the real type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinSInt()

static tSInt CORE_Object::getMinSInt ( )
inlinestaticinherited

get the min value for tSInt type

Returns
the min value for tSInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinUChar()

static tUChar CORE_Object::getMinUChar ( )
inlinestaticinherited

get the min value for tUChar type

Returns
the min value for tUChar type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinUIndex()

static tUIndex CORE_Object::getMinUIndex ( )
inlinestaticinherited

get the min value for difference the array/vector indexing type

Returns
the min value for difference the array/vector indexing type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinUInt()

static tUInt CORE_Object::getMinUInt ( )
inlinestaticinherited

get the min value for tUInt type

Returns
the min value for tUInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinUInteger()

static tUInteger CORE_Object::getMinUInteger ( )
inlinestaticinherited

get the min value for the unsigned integer type

Returns
the min value for the unsigned integer type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinULInt()

static tULInt CORE_Object::getMinULInt ( )
inlinestaticinherited

get the min value for tULInt type

Returns
the min value for tULInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinULLInt()

static tULLInt CORE_Object::getMinULLInt ( )
inlinestaticinherited

get the min value for tULLInt type

Returns
the min value for tULLInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinUSInt()

static tUSInt CORE_Object::getMinUSInt ( )
inlinestaticinherited

get the min value for tUSInt type

Returns
the min value for tUSInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getOut()

static SP::CORE_Out CORE_Object::getOut ( )
inlinestaticinherited

get the output

Returns
the shared pointer to the output stream

References CORE_Object::OUT.

◆ getPointerAddress()

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:

◆ getRealEpsilon()

static tReal CORE_Object::getRealEpsilon ( )
inlinestaticinherited

get the eps which is the difference between 1 and the least value greater than 1 that is representable.

Returns
the eps which is the difference between 1 and the least value greater than 1 that is representable.

Referenced by MATH_P4::solveP4De(), and CORE_Test::testType().

Here is the caller graph for this function:

◆ getRealInfinity()

static tReal CORE_Object::getRealInfinity ( )
inlinestaticinherited

◆ getSharedPointer() [1/4]

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

◆ getSharedPointer() [2/4]

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

get the shared pointer of this class into p

Parameters
p: shared pointer of the class This

◆ getSharedPointer() [3/4]

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

get the shared pointer into P

Parameters
pcreate a shared pointer of a vector

References CORE_Object::getSharedPointer().

Here is the call graph for this function:

◆ getSharedPointer() [4/4]

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

get the shared pointer into P

Parameters
pcreate a shared pointer of a const vector

References CORE_Object::getSharedPointer().

Here is the call graph for this function:

◆ getSize()

template<class T>
tUIndex CORE_Vector< T >::getSize ( ) const
inline

◆ getThis() [1/2]

template<class T>
boost::shared_ptr<CORE_Vector<T> > CORE_Vector< T >::getThis ( )
inlineprivate

get the shared pointer This

Returns
the shared pointer associated to This

◆ getThis() [2/2]

template<class T>
boost::shared_ptr<const CORE_Vector<T> > CORE_Vector< T >::getThis ( ) const
inlineprivate

get the shared pointer This

Returns
the shared pointer associated to const This

◆ getThread()

static CORE_Thread& CORE_Object::getThread ( )
inlinestaticinherited

get the profilier

Returns
the profiler

Referenced by MATH_MaskVector::add(), MATH_Vector::add(), EMM_DisplacementFEMOperator::addBoundaryElasticStress(), EMM_DisplacementFEMOperator::buildDataOnNeumannBoundaryFaces(), EMM_DisplacementFVMOperator::computeCineticEnergy(), EMM_DisplacementFVMOperator::computeElasticStress(), EMM_DisplacementFEMOperator::computeElasticStress(), EMM_DisplacementFVMOperator::computeElasticTensor(), EMM_DisplacementFEMOperator::computeElasticTensor(), EMM_StaticMagneticTensorOperator::computeEnergy(), EMM_CubicAnisotropyOperator::computeEnergy(), EMM_MagnetostrictionOperator::computeEnergy(), EMM_DisplacementOperator::computeEnergy(), EMM_AnisotropyOperator::computeEnergyWithMagneticExcitation(), EMM_DisplacementFVMOperator::computeEquilibriumMatrixDiagonalConditioner(), EMM_DisplacementFEMOperator::computeEquilibriumMatrixDiagonalConditioner(), EMM_FullExchangeOperator::computeMagneticExcitationField(), EMM_StaticMagnetostrictionOperator::computeMagneticExcitationField(), EMM_LinearAnisotropyOperator::computeMagneticExcitationField(), EMM_StaticMagneticTensorOperator::computeMagneticExcitationField(), EMM_CubicAnisotropyOperator::computeMagneticExcitationField(), EMM_MinimalExchangeOperator::computeMagneticExcitationField(), EMM_AnisotropyOperator::computeMagneticExcitationField(), EMM_MagnetostrictionOperator::computeMagneticExcitationField(), EMM_CubicAnisotropyOperator::computeMagneticExcitationFieldGradient(), EMM_AnisotropyOperator::computeMagneticExcitationFieldGradient(), EMM_DisplacementFVMOperator::computeMagneticStress(), EMM_DisplacementFEMOperator::computeMagneticStress(), EMM_OptimalTimeStep::computeOptimalTimeStep(), EMM_DisplacementFEMOperator::computeStressConstraintEnergy(), EMM_FullExchangeOperator::discretize(), EMM_MinimalExchangeOperator::discretize(), EMM_CondensedMassMatrix::discretize(), EMM_LinearAnisotropyOperator::discretize(), EMM_AnisotropyOperator::discretize(), EMM_DemagnetizedOperator::discretize(), EMMG_SLDemagnetizedOperator::discretize(), EMM_LandauLifschitzSystem::discretize(), MATH_Vector::divide(), MATH_MaskVector::dot(), MATH_Vector::dot(), EMM_4SymmetricTensors::doubleDot(), EMM_4Tensors::doubleDotCrossDoubleDotScalar(), EMM_4Tensors::doubleDotCrossProduct(), EMM_4Tensors::doubleDotCrossSquaredScalar(), EMM_4Tensors::doubleDotProduct(), MATH_Vector::init(), MATH_MaskVector::init(), EMM_LandauLifschitzODE_RK::integrateMagnetizationFieldAtTime(), EMM_DisplacementFVM_Interpolator::interpolateUAtVertices(), EMMG_SLDemagnetizedOperator::localAssembly(), EMM_DisplacementOperator::nullProjectionOnDirichletBoundary(), EMM_DisplacementOperator::periodicProjection(), EMM_2PackedSymmetricTensors::product(), EMM_CanonicalMassMatrix::product(), MATH_FullMatrix::product(), EMM_CondensedMassMatrix::product(), EMM_BlockMassMatrix::product(), MATH_MorseMatrix::product(), EMMG_SLDemagnetizedOperator::product(), EMM_DisplacementOperator::projectionOnDirichletBoundary(), EMM_LandauLifschitzSystem::resetOperatorsToInitialState(), EMM_DisplacementFVMOperator::setBoundaryFaceTypes(), FFTW_MultiDFTs::setFFT(), FFTW_MultiLevelsDFT::setFFT(), FFTW_MultiLevelsDFT::setLevels(), FFTW_MultiDFTs::setPlan(), FFTW_MultiLevelsDFT::setPlan(), EMM_CondensedMassMatrix::solve(), EMM_LandauLifschitzODE::solveODE(), EMM_4SymmetricTensors::squaredDoubleDot(), EMM_4Tensors::squaredDoubleDotCrossScalar(), EMM_4Tensors::squaredDoubleDotScalar(), EMM_CanonicalMassMatrix::symmetricDot(), EMM_CondensedMassMatrix::symmetricDot(), EMM_BlockMassMatrix::symmetricDot(), FFTW_Test::test(), MATH_SolverTest::test(), EMM_ODETest::testODE(), and EMM_Grid3D::updateLimitConditionOnPoints().

Here is the caller graph for this function:

◆ getTypeName()

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

get type name

Returns
the type name of the class

References tString.

◆ getValue()

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

get value

Returns
the value for reading

◆ getValues() [1/2]

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

get values as a vector

Returns
the internal standart vector

◆ getValues() [2/2]

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

get values

Returns
the internal standart vector

◆ getVector() [1/2]

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

get vector

◆ getVector() [2/2]

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

get vector

◆ initValues() [1/2]

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

init the value to v

Parameters
vinit value

References tString, and tUIndex.

◆ initValues() [2/2]

template<class T >
CORE_Vector< T > & CORE_Vector< T >::initValues ( const tUIndex from,
const tString v 
)

init the value to v

Parameters
fromfirst index to set
vinit value in form of string [x,y,z,...]

References CORE_Vector< T >::clear(), CORE_Vector< T >::mVector, CORE_String::New(), CORE_String::parse(), CORE_Vector< T >::setSize(), and tUIndex.

Here is the call graph for this function:

◆ insert() [1/2]

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

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

Parameters
ithe index of the array to insert the value
objthe value to insert

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

Here is the call graph for this function:

◆ insert() [2/2]

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

insert T

Parameters
objthe value to insert in increasing order the elements are ranged in increasing order
Returns
the index of the insertion

References tBoolean, and tUIndex.

◆ insertAtIndex()

template<class T>
tBoolean CORE_Vector< T >::insertAtIndex ( const tUIndex i,
const T &  obj 
)
inline

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

Parameters
ithe index of the array to insert the value
objthe value to insert

Referenced by CORE_Vector< T >::insertInIncreasingOrder(), and CORE_Test::testVector().

Here is the caller graph for this function:

◆ insertInIncreasingOrder()

template<class T >
tUIndex CORE_Vector< T >::insertInIncreasingOrder ( const T &  obj,
const tBoolean evenIfEqual 
)

insert The value in an increasing order

the elements are ranged increasing order

Parameters
objobject to insert
evenIfEqualif true : insert even if obj already exists, if false, do not insert it if the value already exits
Returns
the index of the obj.

References CORE_Vector< T >::add(), CORE_Vector< T >::getSize(), CORE_Vector< T >::insertAtIndex(), CORE_Vector< T >::mVector, and tUIndex.

Here is the call graph for this function:

◆ is32Architecture()

static tBoolean CORE_Object::is32Architecture ( )
inlinestaticinherited

return true if the machine is a 32 bits machine

Returns
true is the computing is done in a 32 bits machine

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

Referenced by CORE_Test::testType().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is64Architecture()

static tBoolean CORE_Object::is64Architecture ( )
inlinestaticinherited

return true if the machine is a 64 bits machine

Returns
true is the computing is done in a 64 bits machine

Referenced by EMM_VTK::getVTKType(), and CORE_Test::testType().

Here is the caller graph for this function:

◆ isInstanceOf() [1/2]

template<class T >
tBoolean CORE_Object::isInstanceOf ( ) const
inlineinherited

test if the clas T is an instance of this class

Returns
true if the object is an instance of T

References null.

Referenced by MATH_ToeplitzTest::toeplitzTest().

Here is the caller graph for this function:

◆ isInstanceOf() [2/2]

tBoolean CORE_Object::isInstanceOf ( const tString name) const
inlineinherited

test if the object is an instance of className

Parameters
namename of the class
Returns
true if the object is an instance of class Name

References CORE_Object::getIdentityString().

Here is the call graph for this function:

◆ isMemoryChecked()

static const tBoolean& CORE_Object::isMemoryChecked ( )
inlinestaticinherited

get if the memory checking is used

Returns
true: if the memory checking is used.

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

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ multiplyBy()

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

multiplied by value v

Parameters
vmiltiplicator value

◆ New() [1/5]

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
Returns
a shared pointer of a vector

◆ New() [2/5]

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
Returns
a shared pointer of a vector

◆ New() [3/5]

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
Returns
a shared pointer of a vector

References null.

◆ New() [4/5]

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

create a shared pointer of vector

Returns
a shared pointer of a vector

◆ New() [5/5]

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

create a shared pointer of vector of size dim

Parameters
dimsize of the vector
Returns
a shared pointer of a vector

◆ norm()

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

return the norm of the vector

◆ norm2()

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

return the squared norm of the vector

References tReal.

◆ normalize()

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

normalize

References tBoolean, and tReal.

◆ operator*=()

template<class T>
CORE_Vector& CORE_Vector< T >::operator*= ( const T &  v)
inline

do the arithmetic operation This*=v

Returns
this

◆ operator+=()

template<class T>
CORE_Vector& CORE_Vector< T >::operator+= ( const T &  v)
inline

do the arithmetic operation This+=v

Returns
this

◆ operator-=()

template<class T>
CORE_Vector& CORE_Vector< T >::operator-= ( const T &  v)
inline

do the arithmetic operation This-=v

Returns
this

◆ operator/=()

template<class T>
CORE_Vector& CORE_Vector< T >::operator/= ( const T &  v)
inline

do the arithmetic operation This/=v

Returns
this

◆ operator=()

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

init the vector to v

Parameters
vinit value
Returns
this

◆ operator[]() [1/2]

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

get the i-th element

Parameters
iindex of the element to get
Returns
the value a at index i for reading only

References ASSERT_IN.

◆ operator[]() [2/2]

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

get the i-th element

Parameters
iindex of the element to get
Returns
the value a at index i for reading only

References ASSERT_IN.

◆ out()

static CORE_Out& CORE_Object::out ( )
inlinestaticinherited

get the output

Returns
the output stream

Referenced by EMM_Matter::adimensionize(), EMM_DisplacementFVMOperator::backup(), EMM_DisplacementOperator::backup(), MATH_ElementaryMultiLevelsToeplitzMatrix::buildSpectralVectorProjector(), EMM_Test::caseTest(), EMM_Test::caseTests(), EMM_MatterField::computeAnisotropyDirectionsField(), EMM_OptimalTimeStep::computeOptimalTimeStep(), MATH_MultiLevelsToeplitzMatrix::copy(), CORE_Exception::CORE_Exception(), EMM_MatterField::createAnisotropyOperator(), CORE_Run::createIO(), EMM_ElementaryTest::defaultBackupTest(), EMM_ElementaryTest::defaultTest(), MATH_MultiLevelsFFTToeplitzMatrix::diagonalize(), EMM_DisplacementFVMOperator::discretize(), EMM_MagnetostrictionOperator::discretize(), EMM_DisplacementFEMOperator::discretize(), EMM_4SymmetricTensors::doubleDot(), EMM_4Tensors::doubleDotCrossDoubleDotScalar(), EMM_TensorsTest::doubleDotCrossDoubleDotScalarTests(), EMM_4Tensors::doubleDotCrossProduct(), EMM_TensorsTest::doubleDotCrossProductTests(), EMM_4Tensors::doubleDotCrossSquaredScalar(), EMM_TensorsTest::doubleDotCrossSquaredScalarTests(), EMM_4Tensors::doubleDotProduct(), EMM_TensorsTest::doubleDotProductTests(), EMM_DisplacementWaveTest::elasticWaveTest(), EMM_Test::elementaryTests(), FFTW_Test::fftwTutorial(), MATH_IntegrationTest::gaussLegendreTest(), EMM_MagnetostrictionTest::HComputingTest(), EMM_DemagnetizedPeriodicalTest::HTest(), EMMH_HysteresisTest::hysteresisDefaultCycleTest(), EMM_TensorsTest::initializationTests(), EMM_MultiScaleGrid::initialize(), EMM_MultiScaleSDGrid::initialize(), EMM_MatterField::loadFromANIFile(), EMM_AnisotropyDirectionsField::loadFromFile(), EMM_Matter::loadFromFile(), EMM_Grid3D::loadFromGEOFile(), EMM_MatterField::loadFromLOCFile(), EMM_Array< tCellFlag >::loadFromStream(), EMM_Matter::loadFromStream(), EMM_Matter::loadMattersFromFile(), EMM_Run::loadSystemFromOptions(), EMM_ElementaryTest::magnetostrictionBackupTest(), CORE_Run::make(), EMMH_Run::makeHysteresis(), EMM_Run::makeRun(), CORE_Run::makeType(), EMM_ElementaryTest::optionsTest(), MATH_PolynomialTest::P4Tests(), EMM_Test::primaryTests(), EMM_LandauLifschitzSystem::printLog(), CORE_Run::printOptions(), EMM_2PackedSymmetricTensors::product(), EMMG_SLDemagnetizedOperator::projectionOnSpectralSpace(), CORE_Run::readOptionsFromCommandLine(), CORE_Test::readVectorTest(), EMM_DemagnetizedPeriodicalTest::relaxationTest(), EMM_DisplacementFVMOperator::restore(), EMM_DisplacementOperator::restore(), EMM_Input::restoreBackup(), EMMH_Hysteresis::run(), EMM_Output::save(), EMM_AnisotropyDirectionsField::saveToFile(), EMM_MatterField::saveToFile(), EMM_Grid3D::saveToGEOFile(), CORE_IOTest::searchTest(), EMMH_Hysteresis::setInitialMagnetizationField(), MATH_MultiLevelsToeplitzMatrix::setLevels(), EMM_4SymmetricTensors::squaredDoubleDot(), EMM_4Tensors::squaredDoubleDotCrossScalar(), EMM_TensorsTest::squaredDoubleDotCrossScalarTests(), EMM_4Tensors::squaredDoubleDotScalar(), EMM_TensorsTest::squaredDoubleDotScalarTests(), EMM_TensorsTest::squaredDoubleDotTests(), EMM_MatterTest::testAdimensionize(), EMM_MatterTest::testANIFile(), CORE_Test::testComplex(), CORE_Test::testDateWeek(), FFTW_Test::testDFT(), EMM_MatterTest::testIO(), EMM_ODETest::testODE(), CORE_Test::testOut(), CORE_Test::testReal(), EMM_FieldTest::testRealArray(), EMM_Grid3DTest::testSegment(), EMM_Grid3DTest::testThinSheet(), CORE_Test::testTime(), CORE_Test::testType(), MATH_FullMatrix::toString(), EMM_DemagnetizedPeriodicalTest::xyPeriodicalCubeSDGTest(), and EMM_DemagnetizedPeriodicalTest::xyPeriodicalSheetSDGTest().

Here is the caller graph for this function:

◆ permute()

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

permute

Parameters
i: first index to permute
j: secund index to permute permute the index i & j

References CORE_Vector< T >::mVector.

◆ pointer2String()

tString CORE_Object::pointer2String ( const void *  obj)
staticinherited

return the string representation of a pointer

Parameters
obj: oject to get the string pointer
Returns
the string pointer of the object

References tString.

Referenced by CORE_Object::CORE_Object(), CORE_Object::getIdentityString(), CORE_Object::getPointerAddress(), CORE_Object::is32Architecture(), and CORE_Object::~CORE_Object().

Here is the caller graph for this function:

◆ printObjectsInMemory() [1/2]

void CORE_Object::printObjectsInMemory ( ostream &  f)
staticinherited

print object in memory

Parameters
f: output to print the objects in memory

References CORE_Object::getIdentityString(), CORE_Object::getSharedPointer(), CORE_Object::mIsMemoryTesting, CORE_Object::mObjects, and tInteger.

Here is the call graph for this function:

◆ printObjectsInMemory() [2/2]

static void CORE_Object::printObjectsInMemory ( )
inlinestaticinherited

print object in memory in the standart output

Referenced by CORE_Object::is32Architecture(), and main().

Here is the caller graph for this function:

◆ push_back()

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

add an element at the end

Parameters
objthe element to add

◆ remove() [1/3]

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

remove all the value for the vector

Parameters
objthe value to remove
Returns
true if the value exists,
false otherwise.

References CORE_Vector< T >::exists(), CORE_Vector< T >::mVector, and tBoolean.

Here is the call graph for this function:

◆ remove() [2/3]

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

remove the pointer

Returns
true if the pointerexists,
false otherwise.

References null, tBoolean, and tUIndex.

◆ remove() [3/3]

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

remove the last pointer

◆ removeAtIndex()

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

remove the pointer at index i

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

Referenced by CORE_IO::getFiles().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reserve()

template<class T>
void CORE_Vector< T >::reserve ( const tUIndex n)
inline

set the capacity of the vector

Parameters
nnew capacity of the vector

◆ resetOut()

static void CORE_Object::resetOut ( )
inlinestaticinherited

reset the output stream

Referenced by run().

Here is the caller graph for this function:

◆ resetThread()

static void CORE_Object::resetThread ( )
inlinestaticinherited

reset the output stream

Referenced by run().

Here is the caller graph for this function:

◆ reverse() [1/2]

tFlag CORE_List::reverse ( const tFlag oder)
staticinherited

return the reverse order

Parameters
oderthe order to reverse
Returns
the reverse order

References CORE_List::GE, CORE_List::GT, CORE_List::LE, and CORE_List::LT.

Referenced by CORE_List::compareString(), and CORE_ArrayList< tString >::reverse().

Here is the caller graph for this function:

◆ reverse() [2/2]

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

reverse the vector

References CORE_Vector< T >::mVector.

◆ rotX()

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

rotate the vector among x-axes with angle alpha

Parameters
alphaangle of rotation vector must be of size 3

References tReal.

◆ rotZ()

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

rotate the vector among z-axes with angle gamma

Parameters
gammaangle of rotation vector must be of size 3

References tReal.

◆ scalarProduct() [1/2]

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

return the scalar product of the vector with the a vector

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

Here is the call graph for this function:

◆ scalarProduct() [2/2]

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.

◆ search() [1/2]

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

search the value in values vector ordered in order If it does not existe return getMaxUIndex()

References CORE_List::compare(), CORE_List::EQ, CORE_Object::getMaxUIndex(), and tUIndex.

Referenced by CORE_Test::testString().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ search() [2/2]

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

search the value in values vector ordered in order

References tUIndex.

◆ set()

template<class T>
void CORE_Vector< T >::set ( const tUIndex i,
const T &  v 
)
inline

set value at indx i

Parameters
iindex of the element to set
vnew value of the element at index i

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

Here is the caller graph for this function:

◆ setIsMemoryChecked()

static void CORE_Object::setIsMemoryChecked ( const tBoolean v)
inlinestaticinherited

set if the memory checking is used

Parameters
v: true to check memory

Referenced by main().

Here is the caller graph for this function:

◆ setOut()

static void CORE_Object::setOut ( SP::CORE_Out  out)
inlinestaticinherited

set the output stream

Parameters
out: the shared pointer to the new output stream

References null.

◆ setSize()

template<class T>
void CORE_Vector< T >::setSize ( const tUIndex n)
inline

◆ setThis()

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

set this weak shared pointer called toDoAfterThis setting method

Parameters
p: shared pointer of the class This

References CORE_Object::toDoAfterThisSetting().

Here is the call graph for this function:

◆ setThread()

static void CORE_Object::setThread ( SP::CORE_Thread  thread)
inlinestaticinherited

set the thread

Parameters
threadthe shared pointer to the thread

References null.

Referenced by EMM_Run::EMM_Run(), EMM_TensorsRun::EMM_TensorsRun(), and MATH_SolverRun::MATH_SolverRun().

Here is the caller graph for this function:

◆ setValue()

template<class T>
void CORE_Vector< T >::setValue ( const tUIndex i,
const T &  v 
)
inline

set value at indx i

Parameters
iindex of the element to set
vnew value of the element at index i

◆ setValues() [1/2]

template<class T>
template<class Q >
void CORE_Vector< T >::setValues ( const vector< Q > &  u)
inline

set the values

Parameters
uthe values to set as a vector

References tUIndex.

◆ setValues() [2/2]

template<class T>
template<class Q >
void CORE_Vector< T >::setValues ( const Q *  u,
const tUIndex n 
)
inline

set the values

Parameters
uthe values to set as an array
nthe size of u

◆ size()

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

return the size of the vector

Returns
the size of the vector

Referenced by CORE_IOTest::testIO().

Here is the caller graph for this function:

◆ sort() [1/3]

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

sort the vector

decreasing order

< increasing order

Referenced by CORE_IO::getFiles(), and CORE_Test::testString().

Here is the caller graph for this function:

◆ sort() [2/3]

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

sort the vector

decreasing order

< increasing order

References CORE_List::LT, tFlag, and tUIndex.

Referenced by CORE_IO::getFiles().

Here is the caller graph for this function:

◆ sort() [3/3]

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

sort the vector items

References CORE_List::compare(), and tUIndex.

Here is the call graph for this function:

◆ sub() [1/3]

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

This-=v;.

Parameters
v: the vector to substract

◆ sub() [2/3]

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

This-=f*v;.

Parameters
f: the multiplicator value
vthe vector to substract

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

Here is the call graph for this function:

◆ sub() [3/3]

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

init the value to This=u-v

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

Here is the call graph for this function:

◆ toDoAfterThisSetting()

virtual void CORE_Object::toDoAfterThisSetting ( )
inlineprotectedvirtualinherited

method called after setThis() method this method can oly be called once.

Reimplemented in EMM_DisplacementOperator, EMM_DisplacementFVMOperator, EMM_GaussLegendreRelaxation, EMM_GradGaussLegendreRelaxation, and EMM_Object.

Referenced by CORE_Object::setThis().

Here is the caller graph for this function:

◆ toString()

template<class T>
virtual tString CORE_Vector< T >::toString ( ) const
inlinevirtual

return the string representation of the vector

Returns
the string representation of the vector

Reimplemented from CORE_Object.

References CORE_String::toString(), and tString.

Here is the call graph for this function:

Member Data Documentation

◆ EQ

const tFlag CORE_List::EQ =1
staticinherited

◆ GE

const tFlag CORE_List::GE =6
staticinherited

Referenced by CORE_List::reverse().

◆ GT

const tFlag CORE_List::GT =5
staticinherited

◆ LE

const tFlag CORE_List::LE =4
staticinherited

Referenced by CORE_List::reverse().

◆ LT

const tFlag CORE_List::LT =3
staticinherited

◆ mVector

template<class T>
vector<T> CORE_Vector< T >::mVector
private

◆ NEQ

const tFlag CORE_List::NEQ =2
staticinherited

◆ NO_ORDER

const tFlag CORE_List::NO_ORDER =0
staticinherited

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