63 template<
typename U >
81 inline operator Type &() {
return x_;}
83 inline operator Type
const &()
const {
return y_;}
103 std::ios::pos_type pos =
is.tellg();
105 if ( (
is >>
p.x_).fail() )
109 is.clear();
is.seekg(pos);
114 {
is.clear();
is.seekg(pos);
is.setstate(std::ios::failbit);}
116 {
is.clear();
is.seekg(pos);
is.setstate(std::ios::failbit);}
165 inline operator String const &()
const {
return y_;}
174 is >> std::skipws >>
buff;
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
String & x_
A reference on the String wrapped.
Proxy(String &x)
constructor : create a reference of the String x.
Proxy & operator=(Proxy const &p)
copy operator
String const & y_
A constant reference on the String wrapped.
Proxy(String const &x)
constructor : create a constant reference of the String x.
Proxy(Proxy const &p)
copy constructor
The Proxy class allow to surdefine operators and methods for every kind of class without using dynami...
friend ostream & operator<<(ostream &os, Proxy< Type > const &p)
Overloading of the operator << for the type Type using a constant Proxy.
Proxy(typename hidden::If< hidden::isSame< Type const, U >::value_, Type, U >::Result &x)
constructor : create a reference of the Real x.
friend istream & operator>>(istream &is, Proxy< Type > p)
Overloading of the operator >> for the type Type using a Proxy.
Type & x_
A reference on the object wrapped.
Type const & y_
A reference on the object wrapped.
Proxy(Proxy const &p)
copy constructor
Proxy & operator=(Proxy const &p)
copy operator
Proxy(Type const &x)
constructor : create a reference of the Real x.
int stringNaSize
Size (in number of Char) of a Not Available value.
String stringNa
Representation of a Not Available value.
char Char
STK fundamental type of a Char.
std::basic_string< Char > String
STK fundamental type of a String.
std::basic_ostream< Char > ostream
ostream for Char
std::basic_istream< Char > istream
istream for Char
The namespace STK is the main domain space of the Statistical ToolKit project.
Arithmetic properties of STK fundamental types.
static Type NA()
Adding a Non Available (NA) special number.
static bool isNA(Type const &x)
check if T and U are of the same type.