RepastHPC  2.3.1
Public Member Functions | List of all members
repast::DoubleVariable Class Reference

Used in SVDataSet to manage double data. More...

#include <Variable.h>

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

Public Member Functions

virtual void write (size_t index, std::ofstream &out)
 Writes the data at the specified index to the specified ofstream. More...
 
virtual void insert (double *array, size_t size)
 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)
 Inserts all the ints in the int array into the collection of data stored in this Variable. More...
 
virtual void clear ()
 Clears this Variable of all the data stored in it.
 

Detailed Description

Used in SVDataSet to manage double data.

Member Function Documentation

◆ insert() [1/2]

void repast::DoubleVariable::insert ( double *  array,
size_t  size 
)
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

Implements repast::Variable.

◆ insert() [2/2]

void repast::DoubleVariable::insert ( int *  array,
size_t  size 
)
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

Implements repast::Variable.

◆ write()

void repast::DoubleVariable::write ( size_t  index,
std::ofstream &  out 
)
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

Implements repast::Variable.


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