Flow123d  release_2.2.0-914-gf1a3a4f
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 540 of file field_values.hh.

Member Typedef Documentation

typedef std::string StringTensor::elem_type

Definition at line 542 of file field_values.hh.

Constructor & Destructor Documentation

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

Definition at line 544 of file field_values.hh.

Member Function Documentation

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

Definition at line 547 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 548 of file field_values.hh.

void StringTensor::zeros ( )
inline

Definition at line 550 of file field_values.hh.

Member Data Documentation

unsigned int StringTensor::n_cols

Definition at line 554 of file field_values.hh.

unsigned int StringTensor::n_rows

Definition at line 553 of file field_values.hh.

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

Definition at line 556 of file field_values.hh.


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