Flow123d  jenkins-Flow123d-windows-release-multijob-285
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 Member Functions

 StringTensor (unsigned int n_rows, unsigned int n_cols)
 
 StringTensor (const std::string &value)
 
std::string & at (unsigned int row)
 
std::string & at (unsigned int row, unsigned int col)
 
void zeros ()
 
 operator std::string ()
 
const std::string * memptr ()
 

Public Attributes

unsigned int n_rows
 
unsigned int n_cols
 
unsigned int n_elem
 

Private Attributes

std::vector< std::string > values_
 

Detailed Description

Mimics arma::mat<std::string>.

Definition at line 36 of file field_values.hh.

Constructor & Destructor Documentation

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

Definition at line 38 of file field_values.hh.

StringTensor::StringTensor ( const std::string &  value)
inline

Definition at line 41 of file field_values.hh.

Member Function Documentation

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

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

const std::string* StringTensor::memptr ( )
inline

Definition at line 56 of file field_values.hh.

StringTensor::operator std::string ( )
inline

Definition at line 52 of file field_values.hh.

void StringTensor::zeros ( )
inline

Definition at line 46 of file field_values.hh.

Member Data Documentation

unsigned int StringTensor::n_cols

Definition at line 50 of file field_values.hh.

unsigned int StringTensor::n_elem

Definition at line 51 of file field_values.hh.

unsigned int StringTensor::n_rows

Definition at line 49 of file field_values.hh.

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

Definition at line 60 of file field_values.hh.


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