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 );
106 inline const char&
operator[]( SizeType index )
const;
115 inline const char*
c_str()
const;
116 inline const std::string&
str()
const;
117 inline SizeType
size()
const;
119 inline bool empty()
const;
120 inline void reserve( SizeType newSize );
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
#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::istream & operator>>(std::istream &is, InputString &str)
Global input operator for the InputString class.
Definition: InputString.h:392
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Header file for run time assertion macros.
void swap(DiagonalMatrix< MT, SO, DF > &a, DiagonalMatrix< MT, SO, DF > &b)
Swapping the contents of two matrices.
Definition: DiagonalMatrix.h:200
std::ostream & operator<<(std::ostream &os, const DiagonalProxy< MT > &proxy)
Global output operator for numeric proxies.
Definition: DiagonalProxy.h:780