RepastHPC  2.3.1
Public Member Functions | List of all members
repast::Variable Class Referenceabstract

Used in SVDataSet to manage and store the data. More...

#include <Variable.h>

Inheritance diagram for repast::Variable:
repast::DoubleVariable repast::IntVariable

Public Member Functions

virtual void write (size_t index, std::ofstream &out)=0
 Writes the data at the specified index to the specified ofstream. More...
 
virtual void insert (double *array, size_t size)=0
 Inserts all the doubles in the double array into the collection of data stored in this Variable. More...
 
virtual void insert (int *array, size_t size)=0
 Inserts all the ints in the int array into the collection of data stored in this Variable. More...
 
virtual void clear ()=0
 Clears this Variable of all the data stored in it.
 

Detailed Description

Used in SVDataSet to manage and store the data.

Member Function Documentation

◆ insert() [1/2]

virtual void repast::Variable::insert ( double *  array,
size_t  size 
)
pure virtual

Inserts all the doubles in the double array into the collection of data stored in this Variable.

Parameters
arraythe array to insert
sizethe size of the array

Implemented in repast::DoubleVariable, and repast::IntVariable.

◆ insert() [2/2]

virtual void repast::Variable::insert ( int *  array,
size_t  size 
)
pure virtual

Inserts all the ints in the int array into the collection of data stored in this Variable.

Parameters
arraythe array to insert
sizethe size of the array

Implemented in repast::DoubleVariable, and repast::IntVariable.

◆ write()

virtual void repast::Variable::write ( size_t  index,
std::ofstream &  out 
)
pure virtual

Writes the data at the specified index to the specified ofstream.

Parameters
indexthe index of the data to write
outthe ofstream to write the data to

Implemented in repast::DoubleVariable, and repast::IntVariable.


The documentation for this class was generated from the following file: