86 p=boost::dynamic_pointer_cast<
const EMM_Array<T> >(r);
92 inline boost::shared_ptr<EMM_Array<T> >
getThis() {
93 boost::shared_ptr<EMM_Array<T> > p;
100 inline boost::shared_ptr<const EMM_Array<T> >
getThis()
const {
101 boost::shared_ptr<const EMM_Array<T> > p;
114 static inline boost::shared_ptr<EMM_Array<T> >
New() {
115 boost::shared_ptr<EMM_Array<T> > p(
new EMM_Array<T>(),
225 static tBoolean saveToStream(ofstream& f,
const vector<tUSInt>& dims,
const vector<
const EMM_Array<T>*>& inds);
245 tBoolean loadFromStream(ifstream& f,
const vector<tUSInt>& dims,
const vector<EMM_Array<T>* >& arrays)
const;
EMM_Array< T > & operator+=(const Q &f)
This+=f.
Definition: EMM_Array.h:132
CORE_Array< T > & operator-=(const Q &f)
This-=f.
Definition: CORE_Array.h:222
EMM_Array< tSInt > EMM_SIntArray
Definition: EMM_Array.h:273
tBoolean loadFromStream(ifstream &f, const vector< tUSInt > &dims, const vector< EMM_Array< T > * > &arrays) const
load the values to indicators from the stream
Definition: EMM_Array.hpp:235
EMM_Array< tBoolean > EMM_BooleanArray
Definition: EMM_Array.h:277
EMM_Array(const EMM_Array< T > &c)
create an array with copy of c
Definition: EMM_Array.h:43
EMM_Array< tInt > EMM_IntArray
Definition: EMM_Array.h:274
EMM_Array< T > & operator*=(const Q &f)
This*=f.
Definition: EMM_Array.h:152
EMM_Array< tUSInt > EMM_USIntArray
Definition: EMM_Array.h:271
EMM_Array< tIndex > EMM_IndexArray
Definition: EMM_Array.h:270
TYPEDEF_SPTR(EMM_DoubleArray)
#define tUSInt
Definition: types.h:28
#define tBoolean
Definition: types.h:139
TYPEDEF_SVPTR(EMM_DoubleArray)
EMM_Array< tCellFlag > EMM_CellFlagArray
Definition: EMM_Array.h:278
EMM_Array< tUChar > EMM_UCharArray
Definition: EMM_Array.h:276
tBoolean loadFromFile(const tString &fileName)
load the steady array from file
Definition: EMM_Array.hpp:116
boost::shared_ptr< const EMM_Array< T > > getThis() const
return the shared pointer this for reading
Definition: EMM_Array.h:100
EMM_Array()
create an array
Definition: EMM_Array.h:37
tBoolean saveToStream(ofstream &f) const
save the values of the array into the stream with 1 value per line
Definition: EMM_Array.h:208
CORE_Array< T > & operator/=(const Q &f)
This/=f.
Definition: CORE_Array.h:253
void getSharedPointer(boost::shared_ptr< const EMM_Array< T > > &p) const
return the shared pointer corresponding to the class whith casting
Definition: EMM_Array.h:83
this class describes an array
Definition: CORE_Array.h:19
tBoolean saveToFile(const tString &fileName) const
save the steady array into file
Definition: EMM_Array.hpp:10
void getSharedPointer(SP::CORE_Object &p)
get the shared pointer of this class into p
Definition: CORE_Object.h:97
EMM_Array< tLimitCondition > EMM_LimitConditionArray
Definition: EMM_Array.h:279
#define tUIndex
Definition: types.h:126
EMM_Array< tUIndex > EMM_UIndexArray
Definition: EMM_Array.h:269
tBoolean loadFromStream(ifstream &f)
load the values of the array from the stream with one value per line
Definition: EMM_Array.h:257
EMM_Array(const tUIndex &n)
create an array of size n
Definition: EMM_Array.h:48
#define tString
Definition: types.h:135
EMM_Array< T > & operator/=(const Q &f)
This/=f.
Definition: EMM_Array.h:161
EMM_Array< double > EMM_DoubleArray
Definition: EMM_Array.h:266
EMM_Array< T > & operator=(const EMM_Array< Q > &f)
copy the array
Definition: EMM_Array.h:173
virtual ~EMM_Array(void)
destroy
Definition: EMM_Array.h:59
EMM_Array< float > EMM_FloatArray
Definition: EMM_Array.h:268
EMM_Array< T > & operator-=(const Q &f)
This+=f.
Definition: EMM_Array.h:142
CORE_Array< T > & operator+=(const Q &f)
This+=f.
Definition: CORE_Array.h:207
EMM_Array< tFlag > EMM_FlagArray
Definition: EMM_Array.h:275
EMM_Array< long double > EMM_LDoubleArray
Definition: EMM_Array.h:267
This class describes a general array.
Definition: EMM_Array.h:18
CORE_Array< T > & operator*=(const Q &f)
This*=f.
Definition: CORE_Array.h:237
boost::shared_ptr< EMM_Array< T > > getThis()
return the shared pointer this for writing
Definition: EMM_Array.h:92
static boost::shared_ptr< EMM_Array< T > > New()
create a new shared pointer of EMM_Array
Definition: EMM_Array.h:114
EMM_Array< tUInt > EMM_UIntArray
Definition: EMM_Array.h:272
void getSharedPointer(boost::shared_ptr< EMM_Array< T > > &p)
return the shared pointer corresponding to the class with casting d*
Definition: EMM_Array.h:75
void copy(const CORE_Array< Q > &f)
copy the array
Definition: CORE_Array.hpp:16
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141