Flow123d  release_2.2.0-36-g163dc99
Public Types | Public Member Functions | Public Attributes | Private Attributes | List of all members
StringTensor Class Reference

#include <field_values.hh>

Collaboration diagram for StringTensor:
Collaboration graph
[legend]

Public Types

typedef std::string elem_type
 

Public Member Functions

 StringTensor (unsigned int n_rows, unsigned int n_cols)
 
std::string & at (unsigned int row)
 
std::string & at (unsigned int row, unsigned int col)
 
void zeros ()
 

Public Attributes

unsigned int n_rows
 
unsigned int n_cols
 

Private Attributes

std::vector< std::string > values_
 

Detailed Description

Mimics arma::mat<std::string>. Used in FieldFormula

Definition at line 536 of file field_values.hh.

Member Typedef Documentation

typedef std::string StringTensor::elem_type

Definition at line 538 of file field_values.hh.

Constructor & Destructor Documentation

StringTensor::StringTensor ( unsigned int  n_rows,
unsigned int  n_cols 
)
inline

Definition at line 540 of file field_values.hh.

Member Function Documentation

std::string& StringTensor::at ( unsigned int  row)
inline

Definition at line 543 of file field_values.hh.

Here is the caller graph for this function:

std::string& StringTensor::at ( unsigned int  row,
unsigned int  col 
)
inline

Definition at line 544 of file field_values.hh.

void StringTensor::zeros ( )
inline

Definition at line 546 of file field_values.hh.

Member Data Documentation

unsigned int StringTensor::n_cols

Definition at line 550 of file field_values.hh.

unsigned int StringTensor::n_rows

Definition at line 549 of file field_values.hh.

std::vector<std::string> StringTensor::values_
private

Definition at line 552 of file field_values.hh.


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