35 #ifndef _BLAZE_UTIL_INPUTSTRING_H_
36 #define _BLAZE_UTIL_INPUTSTRING_H_
83 explicit inline InputString(
const char*
string=
"" );
84 explicit inline InputString(
const std::string&
string );
115 inline const char*
c_str()
const;
116 inline const std::string&
str()
const;
119 inline bool empty()
const;
171 : buffer_( s.buffer_ )
359 if( s.
empty() )
return false;
360 else if( isalnum(s[0]) || s[0] ==
'.' || s[0] ==
'/' || s[0] ==
'_' )
return true;
376 return os << str.
str();
398 std::istream::pos_type pos( is.tellg() );
400 buffer.reserve( 20 );
404 if( !is.get( c ) || c !=
'"' ) {
407 is.setstate( std::istream::failbit );
414 if( !is.get( c ) || c ==
'\n' ) {
417 is.setstate( std::istream::failbit );
420 else if( c ==
'"' )
break;
422 buffer.push_back( c );
bool IsFileName(const InputString &s)
Tests for a valid file name.
Definition: InputString.h:357
void swap(SymmetricMatrix< MT, SO, DF, NF > &a, SymmetricMatrix< MT, SO, DF, NF > &b)
Swapping the contents of two matrices.
Definition: SymmetricMatrix.h:195
#define BLAZE_USER_ASSERT(expr, msg)
Run time assertion macro for user checks.In case of an invalid run time expression, the program execution is terminated. The BLAZE_USER_ASSERT macro can be disabled by setting the BLAZE_USER_ASSERT flag to zero or by defining NDEBUG during the compilation.
Definition: Assert.h:117
std::ostream & operator<<(std::ostream &os, const NonNumericProxy< MT > &proxy)
Global output operator for the NonNumericProxy class template.
Definition: NonNumericProxy.h:790
std::istream & operator>>(std::istream &is, Quaternion< Type > &q)
Global input operator for quaternions.
Definition: Quaternion.h:902
Header file for run time assertion macros.