Flow123d  JS_before_hm-2153-g6b139422c
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 574 of file field_values.hh.

Member Typedef Documentation

◆ elem_type

typedef std::string StringTensor::elem_type

Definition at line 576 of file field_values.hh.

Constructor & Destructor Documentation

◆ StringTensor()

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

Definition at line 578 of file field_values.hh.

Member Function Documentation

◆ at() [1/2]

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

Definition at line 581 of file field_values.hh.

Here is the caller graph for this function:

◆ at() [2/2]

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

Definition at line 582 of file field_values.hh.

◆ zeros()

void StringTensor::zeros ( )
inline

Definition at line 584 of file field_values.hh.

Member Data Documentation

◆ n_cols

unsigned int StringTensor::n_cols

Definition at line 588 of file field_values.hh.

◆ n_rows

unsigned int StringTensor::n_rows

Definition at line 587 of file field_values.hh.

◆ values_

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

Definition at line 590 of file field_values.hh.


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