STK++ 0.9.13
|
DataFrame is a List of Variable with the same number of rows. More...
#include <STK_DataFrame.h>
Public Types | |
typedef IContainer2D< UnknownSize, UnknownSize > | Base2D |
Type of the Base container. | |
typedef List1D< IVariable * > | Base |
Type for the list container. | |
typedef TRange< UnknownSize > | RowRange |
Type of the Range for the rows. | |
typedef TRange< UnknownSize > | ColRange |
Type of the Range for the columns. | |
![]() | |
typedef TRange< SizeRows_ > | RowRange |
Type of the Range for the rows. | |
typedef TRange< SizeCols_ > | ColRange |
Type of the Range for the columns. | |
Public Member Functions | |
DataFrame () | |
Default Constructor, empty table. | |
DataFrame (DataFrame const &T, bool ref=false) | |
Copy constructor If ref is true, only references of the variables are copied into the DataFrame. | |
virtual | ~DataFrame () |
Destructor. | |
RowRange const & | rows () const |
int | beginRows () const |
int | endRows () const |
int | sizeRows () const |
ColRange | cols () const |
int | beginCols () const |
int | endCols () const |
int | sizeCols () const |
int | lastIdxRows () const |
int | lastIdxCols () const |
bool | empty () const |
void | clear () |
Clear the object. | |
IVariable *& | elt (int const &i) |
access to an element. | |
IVariable *const | elt (int const &i) const |
access to a constant element. | |
DataFrame & | operator= (DataFrame const &T) |
Operator = : overwrite the DataFrame with T. | |
void | resize (Range const &I, Range const &J) |
resize the container: | |
void | shift (int const &cbeg=1) |
New beginning index for the object. | |
void | shift (int const &rbeg, int const &cbeg) |
New beginning index for the object. | |
void | popBackCols (int const &n) |
Delete n columns of the container. | |
void | eraseCols (int pos, int const &n=1) |
Delete n columns at the position of the container. | |
void | swapCols (int j1, int j2) |
Swapping the j1th column and the j2th column. | |
void | popBackRows (int const &n) |
Dell last rows of the container. | |
void | eraseRows (int pos, int const &n=1) |
Delete n rows at the position pos to the container. | |
void | insertVariable (int pos, IVariable *const &V) |
Insert a Vartiable at the specified position to the container. | |
void | pushBackVariable (IVariable *const &V) |
Append a DataFrame back. | |
void | pushFrontVariable (IVariable *const &V) |
Append a DataFrame front. | |
void | merge (DataFrame const &D) |
merge this DataFrame with D. | |
void | insertDataFrame (int pos, DataFrame const &D) |
Insert a DataFrame at the specified position to the container. | |
void | pushBackDataFrame (DataFrame const &D) |
Append a DataFrame back. | |
void | pushFrontDataFrame (DataFrame const &D) |
Append a DataFrame front. | |
void | writeDataFrame (ostream &os, int const &left, int const &right) const |
write a DataFrame to the output stream os. | |
![]() | |
IContainer2D () | |
Default constructor. | |
IContainer2D (RowRange const &I, ColRange const &J) | |
Constructor with specified ranges. | |
IContainer2D (IContainer2D const &T) | |
Copy constructor. | |
~IContainer2D () | |
destructor. | |
ColRange const & | cols () const |
int | beginCols () const |
int | endCols () const |
int | sizeCols () const |
RowRange const & | rows () const |
int | beginRows () const |
int | endRows () const |
int | sizeRows () const |
int | lastIdxCols () const |
int | lastIdxRows () const |
bool | empty () const |
Protected Member Functions | |
void | freeMem () |
function for memory deallocation. | |
void | freeCols () |
function for row memory deallocation. | |
void | pushBackCols (int const &n=1) |
Add columns to the container. | |
void | insertCols (int pos, int const &n=1) |
Insert columns at the specified position to the container. | |
void | pushBackRows (int const &n=1) |
Add n rows to the container. | |
void | insertRows (int pos, int const &n=1) |
Insert n rows at the ith position of the container. | |
![]() | |
List1D (Cell *const &p_first, Cell *const &p_last, Range const &J) | |
constructor by reference, ref_=1. | |
void | initialize (Range const &I) |
Protected function for initialization. | |
void | freeMem () |
Protected function for deallocation. | |
List1D () | |
Default constructor : empty List. | |
List1D (Range const &I) | |
constructor with specified Range. | |
List1D (Range const &I, Type const &v) | |
Misc constructor, initialization with a constant. | |
List1D (List1D< Type > const &T) | |
Copy constructor. | |
List1D (List1D< Type > const &T, Range const &J, bool ref=true) | |
access to many elements. | |
RowRange const & | rows () const |
int | beginRows () const |
int | endRows () const |
int | sizeRows () const |
ColRange | cols () const |
int | beginCols () const |
int | endCols () const |
int | sizeCols () const |
int | lastIdxRows () const |
int | lastIdxCols () const |
~List1D () | |
destructor. | |
Cell const *const | p_begin () const |
Cell const *const | p_lastIdx () const |
Type & | elt1Impl (int pos) |
access to one element. | |
Type const & | elt1Impl (int pos) const |
access to one element const. | |
List1D | subImpl (Range const &J) const |
access to many elements. | |
void | shiftImpl (int const &beg) |
New first index for the object. | |
void | clear () |
Clear the object. | |
void | pushBack (int const &n=1) |
Add n Elts to the container. | |
void | insert (Range const &I, Type const &v) |
Insert element v in the range I of the List1D. | |
void | merge (List1D const &other) |
merge this with other. | |
void | insertElt (int pos, int const &n=1) |
Insert n elts at the position pos of the container. | |
void | popBack (int const &n=1) |
Delete n last elements of the container. | |
void | erase (int pos, int const &n=1) |
Delete n elts at the pos index to the container. | |
void | swap (int const &j1, int const &j2) |
Swapping the j1th column and the j2th column. | |
List1D & | operator= (const List1D &T) |
operator = : overwrite the List1D with T. | |
List1D< Type > & | operator= (Type const &v) |
operator= : set the container to a constant value. | |
List1D< Type > & | resizeImpl (Range const &I) |
Resize the container. | |
int | begin () const |
int | end () const |
int | size () const |
int | lastIdx () const |
![]() | |
ITContainer1D () | |
Default constructor. | |
ITContainer1D (RowRange const &I) | |
constructor with a specified range. | |
~ITContainer1D () | |
destructor. | |
void | exchange (ITContainer1D &T) |
exchange this container with T | |
void | setRange (RowRange const &I=RowRange()) |
Set range of the rows of the container. | |
void | incRange (int n=1) |
increment the range of the container (can be negative). | |
void | incFirst (int n=1) |
increment the beginning of the container (can be negative). | |
void | decFirst (int n=1) |
decrement the beginning of the container. | |
void | incLast (int n=1) |
increment the end of the container (can be negative). | |
void | decLast (int n=1) |
decrement the end of the container. | |
RowRange const & | range () const |
int | begin () const |
int | end () const |
int | size () const |
int | lastIdx () const |
Iterator | beginIterator () |
Iterator | endIterator () |
ConstIterator | beginConstIterator () const |
ConstIterator | endConstIterator () const |
ReverseIterator | rbeginIterator () |
ReverseIterator | rendIterator () |
ConstReverseIterator | rbeginConstIterator () const |
ConstReverseIterator | rendConstIterator () const |
bool | empty () const |
Is there some data ? | |
Type & | elt (int i) |
TypeConst | elt (int i) const |
Type & | operator[] (int i) |
TypeConst | operator[] (int i) const |
Type & | at (int i) |
TypeConst | at (int i) const |
SubVector | sub (Range const &I) const |
Access to many elements. | |
Type & | front () |
TypeConst | front () const |
Type & | back () |
TypeConst | back () const |
void | shift (int beg) |
Derived & | resize (Range const &I=RowRange()) |
![]() | |
IRecursiveTemplate () | |
constructor. | |
~IRecursiveTemplate () | |
destructor. | |
Derived & | asDerived () |
static cast : return a reference of this with a cast to the derived class. | |
Derived const & | asDerived () const |
static cast : return a const reference of this with a cast to the derived class. | |
Derived * | asPtrDerived () |
static cast : return a ptr on a Derived of this with a cast to the derived class. | |
Derived const * | asPtrDerived () const |
static cast : return a ptr on a constant Derived of this with a cast to the derived class. | |
Derived * | clone () const |
create a leaf using the copy constructor of the Derived class. | |
Derived * | clone (bool isRef) const |
create a leaf using the copy constructor of the Derived class and a flag determining if the clone is a reference or not. | |
![]() | |
TRef (bool ref) | |
Default constructor We have to specify the member ref_. | |
~TRef () | |
destructor. | |
bool | isRef () const |
bool | ref () const |
void | exchange (TRef const &T) |
swap this with the container T. | |
void | setRef (bool ref) const |
Modify the container : can become a reference or the owner of the data. | |
![]() | |
void | shift (int rbeg, int cbeg) |
Set the first index of the rows and columns. | |
void | setRanges (RowRange const &I=RowRange(), ColRange const &J=ColRange()) |
Set the ranges of the container. | |
void | setRows (RowRange const &I=RowRange()) |
Set the range of the number of rows. | |
void | shiftRows (int beg) |
Set the first index of the rows. | |
void | incRangeRows (int inc) |
Increment the range of the number of rows. | |
void | incBeginRows (int inc) |
Increment the first index of the number of rows. | |
void | decBeginRows (int dec) |
Decrement the first index of the number of rows. | |
void | incEndRows (int inc) |
Increment the end of the number of rows. | |
void | decEndRows (int dec) |
Decrement the end of the number of rows. | |
void | setCols (ColRange const &J=ColRange()) |
Set the columns range. | |
void | shiftCols (int beg) |
Shift the columns first index to beg. | |
void | incRangeCols (int inc) |
Increment the columns range. | |
void | incBeginCols (int inc) |
increment the first index of the columns. | |
void | decBeginCols (int dec) |
Decrement the columns first index. | |
void | incEndCols (int inc) |
Increment the last index of the columns. | |
void | decEndCols (int dec) |
Decrement the last index of the columns. | |
void | exchange (IContainer2D &T) |
exchange this container with T | |
void | incLastIdxRows (int inc) |
Increment the end of the number of rows. | |
void | decLastIdxRows (int dec) |
Decrement the end of the number of rows. | |
void | incLastIdxCols (int inc) |
Increment the last index of the columns. | |
void | decLastIdxCols (int dec) |
Decrement the last index of the columns. | |
IContainer2D () | |
Default constructor. | |
IContainer2D (RowRange const &I, ColRange const &J) | |
Constructor with specified ranges. | |
IContainer2D (IContainer2D const &T) | |
Copy constructor. | |
~IContainer2D () | |
destructor. | |
ColRange const & | cols () const |
int | beginCols () const |
int | endCols () const |
int | sizeCols () const |
RowRange const & | rows () const |
int | beginRows () const |
int | endRows () const |
int | sizeRows () const |
int | lastIdxCols () const |
int | lastIdxRows () const |
bool | empty () const |
DataFrame is a List of Variable with the same number of rows.
This is thus also a 2D container.
A DataFrame inherit from the class List1D
and and IContainer2D
. It is essentially a List, except that each column (the variables) possess the same dimension.
Each Cell of the List1D contain a pointer on a Variable.
Definition at line 58 of file STK_DataFrame.h.
Type for the list container.
Definition at line 64 of file STK_DataFrame.h.
Type of the Base container.
Definition at line 62 of file STK_DataFrame.h.
Type of the Range for the columns.
Definition at line 68 of file STK_DataFrame.h.
Type of the Range for the rows.
Definition at line 66 of file STK_DataFrame.h.
STK::DataFrame::DataFrame | ( | ) |
Default Constructor, empty table.
Definition at line 41 of file STK_DataFrame.cpp.
Copy constructor If ref is true, only references of the variables are copied into the DataFrame.
T | the DataFrame to copy |
ref | true if we want to wrap the variables of T |
Definition at line 44 of file STK_DataFrame.cpp.
References STK::List1D< IVariable * >::begin(), STK::IRecursiveTemplate< Derived >::clone(), elt(), STK::List1D< IVariable * >::end(), and STK::TRef<-1 >::ref().
|
virtual |
Destructor.
Definition at line 55 of file STK_DataFrame.cpp.
References freeCols(), and STK::TRef<-1 >::isRef().
|
inline |
Definition at line 94 of file STK_DataFrame.h.
References STK::IContainer2D< UnknownSize, UnknownSize >::beginCols().
Referenced by STK::ExportToCsv::ExportToCsv(), insertDataFrame(), insertVariable(), merge(), STK::operator<<(), pushFrontDataFrame(), pushFrontVariable(), STK::DataFrameToArray2D< Type >::run(), and shift().
|
inline |
Definition at line 85 of file STK_DataFrame.h.
References STK::IContainer2D< UnknownSize, UnknownSize >::beginRows().
Referenced by eraseRows(), insertDataFrame(), insertRows(), insertVariable(), merge(), pushBackDataFrame(), pushBackVariable(), shift(), and writeDataFrame().
void STK::DataFrame::clear | ( | ) |
Clear the object.
Definition at line 58 of file STK_DataFrame.cpp.
References freeMem(), STK::ITContainer1D< Derived >::setRange(), and STK::IContainer2D< UnknownSize, UnknownSize >::setRanges().
|
inline |
Definition at line 92 of file STK_DataFrame.h.
Referenced by operator=(), and resize().
access to an element.
Set the method elt as a public method.
Definition at line 112 of file STK_DataFrame.h.
References STK::ITContainer1D< Derived >::elt().
Referenced by DataFrame(), eraseCols(), eraseRows(), STK::ExportToCsv::ExportToCsv(), freeCols(), insertDataFrame(), insertRows(), insertVariable(), merge(), operator=(), popBackCols(), popBackRows(), pushBackDataFrame(), pushBackRows(), pushBackVariable(), STK::DataFrameToArray2D< Type >::run(), and shift().
access to a constant element.
Set the method elt as a public method.
Definition at line 114 of file STK_DataFrame.h.
References STK::ITContainer1D< Derived >::elt().
|
inline |
true
if the container is empty, false
otherwise Definition at line 107 of file STK_DataFrame.h.
References STK::ITContainer1D< Derived >::empty().
Referenced by insertDataFrame(), and pushBackDataFrame().
|
inline |
Definition at line 96 of file STK_DataFrame.h.
References STK::IContainer2D< UnknownSize, UnknownSize >::endCols().
Referenced by STK::ExportToCsv::ExportToCsv().
|
inline |
Definition at line 87 of file STK_DataFrame.h.
References STK::IContainer2D< UnknownSize, UnknownSize >::endRows().
Delete n columns at the position of the container.
Definition at line 178 of file STK_DataFrame.cpp.
References STK::List1D< IVariable * >::begin(), STK::IContainer2D< UnknownSize, UnknownSize >::decLastIdxCols(), elt(), STK::List1D< IVariable * >::erase(), eraseCols(), freeMem(), STK::List1D< IVariable * >::lastIdx(), sizeCols(), and STKOUT_OF_RANGE_2ARG.
Referenced by eraseCols().
Delete n rows at the position pos
to the container.
pos | position of the rows to delete |
n | number of rows to delete |
Definition at line 443 of file STK_DataFrame.cpp.
References STK::List1D< IVariable * >::begin(), beginRows(), STK::IContainer2D< UnknownSize, UnknownSize >::decLastIdxRows(), elt(), STK::IVariable::erase(), eraseRows(), STK::List1D< IVariable * >::lastIdx(), lastIdxRows(), and STKOUT_OF_RANGE_2ARG.
Referenced by eraseRows().
|
protected |
function for row memory deallocation.
Definition at line 472 of file STK_DataFrame.cpp.
References STK::List1D< IVariable * >::begin(), elt(), STK::TRef<-1 >::isRef(), STK::List1D< IVariable * >::lastIdx(), and STK::IContainer2D< UnknownSize, UnknownSize >::setRows().
Referenced by freeMem(), and ~DataFrame().
|
protected |
function for memory deallocation.
Definition at line 461 of file STK_DataFrame.cpp.
References freeCols(), STK::List1D< IVariable * >::freeMem(), STK::TRef<-1 >::isRef(), STK::IContainer2D< UnknownSize, UnknownSize >::setCols(), and STK::IContainer2D< UnknownSize, UnknownSize >::setRows().
Referenced by clear(), eraseCols(), and popBackCols().
Insert columns at the specified position to the container.
Definition at line 387 of file STK_DataFrame.cpp.
References STK::List1D< IVariable * >::begin(), STK::IContainer2D< UnknownSize, UnknownSize >::incLastIdxCols(), STK::List1D< IVariable * >::insert(), insertCols(), STK::List1D< IVariable * >::lastIdx(), and STKOUT_OF_RANGE_2ARG.
Referenced by insertCols().
Insert a DataFrame at the specified position to the container.
Definition at line 292 of file STK_DataFrame.cpp.
References STK::List1D< IVariable * >::begin(), beginCols(), beginRows(), STK::IVariable::clone(), elt(), empty(), STK::IContainer2D< UnknownSize, UnknownSize >::incLastIdxCols(), STK::IContainer2D< UnknownSize, UnknownSize >::incLastIdxRows(), insertDataFrame(), STK::List1D< IVariable * >::insertElt(), STK::TRef<-1 >::isRef(), STK::List1D< IVariable * >::lastIdx(), lastIdxCols(), STK::IVariable::pushBackNAValues(), STK::IVariable::shift(), sizeCols(), sizeRows(), STKOUT_OF_RANGE_1ARG, and STKRUNTIME_ERROR_1ARG.
Referenced by insertDataFrame(), and pushFrontDataFrame().
Insert n rows at the ith position of the container.
Definition at line 416 of file STK_DataFrame.cpp.
References STK::List1D< IVariable * >::begin(), beginRows(), elt(), STK::IContainer2D< UnknownSize, UnknownSize >::incLastIdxRows(), STK::IVariable::insertElt(), insertRows(), STK::List1D< IVariable * >::lastIdx(), lastIdxRows(), and STKOUT_OF_RANGE_2ARG.
Referenced by insertRows().
Insert a Vartiable at the specified position to the container.
pos | the position in the container |
V | the Variable to insert |
Definition at line 201 of file STK_DataFrame.cpp.
References beginCols(), beginRows(), elt(), STK::IContainer2D< UnknownSize, UnknownSize >::incLastIdxCols(), STK::IContainer2D< UnknownSize, UnknownSize >::incLastIdxRows(), STK::List1D< Type_ >::insertElt(), lastIdxCols(), STK::IVariable::pushBackNAValues(), STK::IVariable::shift(), STK::IVariable::size(), and sizeRows().
Referenced by pushFrontVariable().
|
inline |
Definition at line 103 of file STK_DataFrame.h.
References STK::baseIdx.
Referenced by insertDataFrame(), insertVariable(), STK::operator<<(), popBackCols(), pushBackVariable(), resize(), and STK::DataFrameToArray2D< Type >::run().
|
inline |
Definition at line 101 of file STK_DataFrame.h.
References STK::List1D< IVariable * >::lastIdx().
Referenced by eraseRows(), insertRows(), resize(), and writeDataFrame().
merge this DataFrame with D.
Definition at line 256 of file STK_DataFrame.cpp.
References STK::List1D< IVariable * >::begin(), beginCols(), beginRows(), elt(), STK::IContainer2D< UnknownSize, UnknownSize >::incLastIdxRows(), STK::TRef<-1 >::isRef(), STK::List1D< IVariable * >::lastIdx(), merge(), STK::List1D< IVariable * >::merge(), STK::IVariable::pushBackNAValues(), sizeRows(), and STKRUNTIME_ERROR_NO_ARG.
Referenced by merge().
Operator = : overwrite the DataFrame with T.
Definition at line 68 of file STK_DataFrame.cpp.
References STK::List1D< IVariable * >::begin(), STK::List1D< Type_ >::begin(), STK::IRecursiveTemplate< Derived >::clone(), cols(), elt(), STK::List1D< IVariable * >::lastIdx(), STK::List1D< Type_ >::lastIdx(), STK::ITContainer1D< Derived >::resize(), and sizeCols().
Delete n columns of the container.
Definition at line 159 of file STK_DataFrame.cpp.
References STK::IContainer2D< UnknownSize, UnknownSize >::decLastIdxCols(), elt(), freeMem(), lastIdxCols(), STK::List1D< IVariable * >::popBack(), popBackCols(), sizeCols(), and STKOUT_OF_RANGE_1ARG.
Referenced by popBackCols(), and resize().
Dell last rows of the container.
n | number of rows to delete |
Definition at line 432 of file STK_DataFrame.cpp.
References STK::List1D< IVariable * >::begin(), STK::IContainer2D< UnknownSize, UnknownSize >::decLastIdxRows(), elt(), STK::List1D< IVariable * >::lastIdx(), STK::IVariable::popBack(), popBackRows(), sizeRows(), and STKOUT_OF_RANGE_1ARG.
Referenced by popBackRows(), and resize().
Add columns to the container.
Definition at line 376 of file STK_DataFrame.cpp.
References STK::IContainer2D< UnknownSize, UnknownSize >::incLastIdxCols(), STK::List1D< IVariable * >::insert(), and STK::List1D< IVariable * >::lastIdx().
Referenced by resize().
Append a DataFrame back.
Definition at line 337 of file STK_DataFrame.cpp.
References STK::List1D< Type_ >::begin(), STK::List1D< IVariable * >::begin(), beginRows(), STK::IVariable::clone(), elt(), empty(), STK::IContainer2D< UnknownSize, UnknownSize >::incLastIdxCols(), STK::IContainer2D< UnknownSize, UnknownSize >::incLastIdxRows(), STK::TRef<-1 >::isRef(), STK::List1D< IVariable * >::lastIdx(), STK::List1D< Type_ >::lastIdx(), STK::List1D< IVariable * >::pushBack(), pushBackDataFrame(), STK::IVariable::pushBackNAValues(), STK::IVariable::shift(), sizeCols(), sizeRows(), and STKRUNTIME_ERROR_NO_ARG.
Referenced by pushBackDataFrame().
Add n rows to the container.
Definition at line 402 of file STK_DataFrame.cpp.
References STK::List1D< IVariable * >::begin(), elt(), STK::IContainer2D< UnknownSize, UnknownSize >::incRangeRows(), STK::List1D< IVariable * >::lastIdx(), and STK::IVariable::pushBack().
Referenced by resize().
Append a DataFrame back.
V | The variable to append to the DataFrame |
Definition at line 230 of file STK_DataFrame.cpp.
References STK::ITContainer1D< Derived >::back(), STK::List1D< IVariable * >::begin(), beginRows(), elt(), STK::IContainer2D< UnknownSize, UnknownSize >::incLastIdxCols(), STK::IContainer2D< UnknownSize, UnknownSize >::incLastIdxRows(), lastIdxCols(), STK::List1D< IVariable * >::pushBack(), STK::IVariable::pushBackNAValues(), STK::IVariable::shift(), STK::IVariable::size(), and sizeRows().
Referenced by STK::ImportFromCsv::asNumeric(), STK::ImportFromCsv::asOnlyNumeric(), and STK::ImportFromCsv::asString().
Append a DataFrame front.
Definition at line 177 of file STK_DataFrame.h.
References beginCols(), and insertDataFrame().
Append a DataFrame front.
Definition at line 168 of file STK_DataFrame.h.
References beginCols(), and insertVariable().
resize the container:
shift
(I.begin(), J.begin()popBackCols()
(insertRows()
) and/or popBackCols()
(popBackRows()
). The implicit assumption made by this method is that it is easier and faster to add column than add rows to the 2D container. I | the new range for the rows of the container |
J | the new range for the columns of the container |
Definition at line 108 of file STK_DataFrame.cpp.
References cols(), lastIdxCols(), lastIdxRows(), popBackCols(), popBackRows(), pushBackCols(), pushBackRows(), rows(), and shift().
Definition at line 83 of file STK_DataFrame.h.
References STK::IContainer2D< UnknownSize, UnknownSize >::rows().
Referenced by resize().
New beginning index for the object.
cbeg | the index of the first column of the data-frame |
Definition at line 134 of file STK_DataFrame.cpp.
References STK::ITContainer1D< Derived >::shift(), and STK::IContainer2D< UnknownSize, UnknownSize >::shiftCols().
New beginning index for the object.
rbeg | the index of the first row of the data-frame |
cbeg | the index of the first column of the data-frame |
Definition at line 143 of file STK_DataFrame.cpp.
References STK::List1D< IVariable * >::begin(), beginCols(), beginRows(), elt(), STK::TRef<-1 >::isRef(), STK::List1D< IVariable * >::lastIdx(), STK::IVariable::shift(), shift(), STK::IContainer2D< UnknownSize, UnknownSize >::shiftRows(), and STKRUNTIME_ERROR_2ARG.
|
inline |
Definition at line 98 of file STK_DataFrame.h.
References STK::IContainer2D< UnknownSize, UnknownSize >::sizeCols().
Referenced by eraseCols(), STK::ExportToCsv::ExportToCsv(), insertDataFrame(), operator=(), popBackCols(), and pushBackDataFrame().
|
inline |
Definition at line 89 of file STK_DataFrame.h.
References STK::IContainer2D< UnknownSize, UnknownSize >::sizeRows().
Referenced by STK::ExportToCsv::ExportToCsv(), insertDataFrame(), insertVariable(), merge(), popBackRows(), pushBackDataFrame(), and pushBackVariable().
Swapping the j1th column and the j2th column.
j1 | index of the first column to swap |
j2 | index of the second column to swap |
Definition at line 146 of file STK_DataFrame.h.
References STK::List1D< IVariable * >::swap().
write a DataFrame to the output stream os.
Definition at line 484 of file STK_DataFrame.cpp.
References _T, beginRows(), and lastIdxRows().
Referenced by STK::operator<<().