21 #include <tjutils/tjarray.h>
22 #include <odinpara/ldrbase.h>
23 #include <odinpara/ldrnumbers.h>
24 #include <odinpara/ldrtypes.h>
27 #define COMPRESSION_THRESHOLD_SIZE 256
41 template<
class A,
class J>
56 LDRarray (
const A& a,
const STD_string& name=
"");
93 A* cast(A*) {
return this;}
104 STD_string get_dim_str(
const LDRserBase* ser)
const;
106 bool encode(STD_string* ostring, STD_ostream* ostream)
const;
108 bool use_compression()
const {
return (
get_filemode()==compressed)&&(A::total()>COMPRESSION_THRESHOLD_SIZE);}
112 mutable STD_string typeInfo_cache;
171 LDRtriple (
float xpos,
float ypos,
float zpos,
const STD_string& name=
"");
187 STD_string
get_typeInfo(
bool parx_equivtype=
false)
const {
return "triple";}
LDRarray< A, J > & operator=(const A &a)
LDRbase & set_gui_props(const GuiProps &gp)
STD_string get_typeInfo(bool parx_equivtype=false) const
STD_string get_parx_code(parxCodeType type) const
int write(const STD_string &filename, const LDRserBase &serializer=LDRserJDX()) const
LDRbase * create_copy() const
STD_ostream & print2stream(STD_ostream &os, const LDRserBase &serializer) const
STD_string printvalstring(const LDRserBase *ser=0) const
GuiProps get_gui_props() const
LDRarray(const A &a, const STD_string &name="")
bool parsevalstring(const STD_string &parstring, const LDRserBase *ser=0)
int load(const STD_string &filename, const LDRserBase &serializer=LDRserJDX())
LDRarray(const LDRarray< A, J > &ja)
virtual fileMode get_filemode() const
virtual int write(const STD_string &filename, const LDRserBase &serializer=LDRserJDX()) const
virtual int load(const STD_string &filename, const LDRserBase &serializer=LDRserJDX())
LDRbase * create_copy() const
STD_string get_typeInfo(bool parx_equivtype=false) const
LDRtriple(float xpos, float ypos, float zpos, const STD_string &name="")
LDRtriple & operator=(const LDRtriple &pos)
LDRtriple(const LDRtriple &pos)
LDRarray< farray, LDRfloat > LDRfloatArr
LDRarray< darray, LDRdouble > LDRdoubleArr
LDRarray< sarray, LDRstring > LDRstringArr
LDRarray< iarray, LDRint > LDRintArr
LDRarray< carray, LDRcomplex > LDRcomplexArr