Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Classes | Functions
Teuchos::MatrixMarket::details Namespace Reference

Classes

class  ScalarAssigner
 Implementation detail of assignScalar(). More...
class  ScalarAssigner< RealType, false >
class  SetScientific
 Temporarily make an output stream use scientific notation with sufficient precision. More...
class  SetScientific< int >
class  SetScientific< unsigned int >
class  SetScientific< long >
class  SetScientific< unsigned long >

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.
std::string lowercase (const std::string &in)
 Return lowercase version of the given string.
std::string trim_and_lowercase (const std::string &in)
 Trim whitespace from both sides, and make lowercase.
static bool endToken (const std::pair< size_t, size_t > &range)
 Does range signify "no more tokens"?
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.

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 120 of file Teuchos_MatrixMarket_split.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines