Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
Teuchos::MatrixMarket::details Namespace Reference

Classes

class  ScalarAssigner
 Implementation detail of assignScalar(). More...
 
class  ScalarAssigner< RealType, false >
 

Functions

template<class Scalar >
void assignScalar (Scalar &val, const typename Teuchos::ScalarTraits< Scalar >::magnitudeType &real, const typename Teuchos::ScalarTraits< Scalar >::magnitudeType &imag)
 
std::string trim (const std::string &in)
 Trim whitespace from both sides of the given string. More...
 
std::string lowercase (const std::string &in)
 Return lowercase version of the given string. More...
 
std::string trim_and_lowercase (const std::string &in)
 Trim whitespace from both sides, and make lowercase. More...
 
static bool endToken (const std::pair< size_t, size_t > &range)
 Does range signify "no more tokens"? More...
 
static std::pair< size_t, size_t > nextToken (const std::string &str, const std::string &delimiters, const size_t start, const size_t size)
 
std::vector< std::string > split (const std::string &str, const std::string &delimiters, const size_t start=0)
 Split the given string using the given set of delimiters. More...
 

Function Documentation

template<class Scalar >
void Teuchos::MatrixMarket::details::assignScalar ( Scalar &  val,
const typename Teuchos::ScalarTraits< Scalar >::magnitudeType &  real,
const typename Teuchos::ScalarTraits< Scalar >::magnitudeType &  imag 
)

Definition at line 107 of file Teuchos_MatrixMarket_assignScalar.hpp.

std::string Teuchos::MatrixMarket::details::trim ( const std::string &  in)

Trim whitespace from both sides of the given string.

Definition at line 53 of file Teuchos_MatrixMarket_split.cpp.

std::string Teuchos::MatrixMarket::details::lowercase ( const std::string &  in)

Return lowercase version of the given string.

Definition at line 64 of file Teuchos_MatrixMarket_split.cpp.

std::string Teuchos::MatrixMarket::details::trim_and_lowercase ( const std::string &  in)

Trim whitespace from both sides, and make lowercase.

Definition at line 72 of file Teuchos_MatrixMarket_split.cpp.

static bool Teuchos::MatrixMarket::details::endToken ( const std::pair< size_t, size_t > &  range)
static

Does range signify "no more tokens"?

Definition at line 82 of file Teuchos_MatrixMarket_split.cpp.

static std::pair<size_t, size_t> Teuchos::MatrixMarket::details::nextToken ( const std::string &  str,
const std::string &  delimiters,
const size_t  start,
const size_t  size 
)
static

Get the next token, if there is one

Returns
If there is a next token, a (startpos,length) pair suitable for string::substr(); otherwise, npos,npos), which alone satisfies the endToken() predicate.

Definition at line 93 of file Teuchos_MatrixMarket_split.cpp.

std::vector< std::string > Teuchos::MatrixMarket::details::split ( const std::string &  str,
const std::string &  delimiters,
const size_t  start = 0 
)

Split the given string using the given set of delimiters.

Split the string str, optionally starting at position start, into zero or more tokens separated by one or more of the given delimiter characters in delimiters.

Parameters
str[in] String to split into tokens
delimiters[in] Array of one or more delimiter character(s)
start[in] Position in str where the search should begin. Defaults to zero.
Returns
Vector of zero or more tokens, none of which contain any of the delimiter character(s)

Definition at line 123 of file Teuchos_MatrixMarket_split.cpp.