36#ifndef STK_IVARIABLE_H
37#define STK_IVARIABLE_H
45template <
class TYPE>
class Variable;
122 virtual void erase(
int pos,
int n=1) = 0;
In this file we define useful constant and method specific to the DManager project.
IVariable is an Interface class for all Variables classes.
static String giveName(int num=0, String const &prefix=STRING_VAR)
virtual void popBack(int n=1)=0
Delete n last elements of the container.
virtual IVariable & operator<<(VariableString const &V)=0
Operator << : overwrite the IVariable by converting the strings contained in V into the Type.
virtual void shift(int beg)=0
New first index for the object.
virtual void pushBackNAValues(int n=1)=0
push back n NA values.
String eltAsString(int pos) const
virtual ~IVariable()
destructor.
virtual void insertElt(int pos, int n=1)=0
Insert n elements at the position pos of the container.
IVariable(const IVariable &V)
Copy constructor
void setName(String const &name)
Set the name of the variable.
virtual void erase(int pos, int n=1)=0
Delete n elements at the pos index from the container.
String name_
Name of the variable.
virtual const IVariable & operator>>(VariableString &V) const =0
Operator >> : convert the Variable V into strings.
IVariable(Base::IdType const &type, String const &name)
Default constructor.
virtual IVariable * clone(bool ref=false) const =0
IVariable & operator=(const IVariable &V)
Operator = : overwrite the IVariable with T.
virtual void clear()=0
clear Container from all elements and memory allocated.
virtual void pushBack(int n=1)=0
Add n elements at the end of the container.
void setName(int num=0, String const &prefix=STRING_VAR)
Set a default name for the variable of the form : prefix + num.
const Base::IdType & getType() const
virtual int size() const =0
const Base::IdType type_
Id Type of the variable.
virtual void exportAsString(VariableString &V) const =0
Overwrite the variable V by converting the data into strings.
String const & name() const
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
Variable is an implementation of the Base class IVariable using The Array1D class for storing the dat...
IdType
Id for the Type of a variable.
std::basic_string< Char > String
STK fundamental type of a String.
The namespace STK is the main domain space of the Statistical ToolKit project.
Variable< String > VariableString