Rosetta  2020.11
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Typedefs | Functions
ObjexxFCL::format Namespace Reference

Classes

class  Bite
 
class  Skip
 

Typedefs

typedef char * cstring
 
typedef char const * c_cstring
 

Functions

template<typename T >
std::string SW (FArray1< T > const &a)
 Standard Width Format: FArray1. More...
 
Bite< Fstringbite (Fstring &t)
 Fstring Bite Maker: Take Length of Fstring. More...
 
template<>
std::string SS (bool const &t)
 Single-Spaced Format: bool Specialization. More...
 
template<>
std::string SS (float const &t)
 Single-Spaced Format: float Specialization. More...
 
template<>
std::string SS (double const &t)
 Single-Spaced Format: double Specialization. More...
 
template<>
std::string SS (long double const &t)
 Single-Spaced Format: long double Specialization. More...
 
template<>
std::string SS (std::complex< float > const &t)
 Single-Spaced Format: complex< float > Specialization. More...
 
template<>
std::string SS (std::complex< double > const &t)
 Single-Spaced Format: complex< double > Specialization. More...
 
template<>
std::string SS (std::complex< long double > const &t)
 Single-Spaced Format: complex< long double > Specialization. More...
 
std::string A (int const w, char const c)
 char Format More...
 
std::string A (char const c)
 char Format (Width==1) More...
 
std::string A (int const w, c_cstring const s)
 cstring Format More...
 
std::string A (c_cstring const s)
 cstring Format (Width of cstring) More...
 
std::string A (int const w, std::string const &s)
 string Format More...
 
std::string const & A (std::string const &s)
 string Format (Width of string) More...
 
std::string A (int const w, Fstring const &s)
 Fstring Format. More...
 
std::string A (Fstring const &s)
 Fstring Format (Width of Fstring) More...
 
std::string X (int const w)
 Blank string. More...
 
std::string space (int const w)
 Blank string. More...
 
std::string repeat (int const w, char c)
 Blank string. More...
 
std::string L (int const w, bool const &t)
 Logical Format. More...
 
std::string L (bool const &t)
 Logical Format (Width==1) More...
 
std::string E (int const w, int const d, float const &t)
 Exponential Format: float. More...
 
std::string E (int const w, int const d, double const &t)
 Exponential Format: double. More...
 
std::string E (int const w, int const d, long double const &t)
 Exponential Format: long double. More...
 
std::string E (int const w, int const d, std::complex< float > const &t)
 Exponential Format: complex< float > More...
 
std::string E (int const w, int const d, std::complex< double > const &t)
 Exponential Format: complex< double > More...
 
std::string E (int const w, int const d, std::complex< long double > const &t)
 Exponential Format: complex< long double > More...
 
std::string F (int const w, int const d, float const &t)
 Fixed Point Format: float. More...
 
std::string F (int const w, int const d, double const &t)
 Fixed Point Format: double. More...
 
std::string F (int const w, int const d, long double const &t)
 Fixed Point Format: long double. More...
 
std::string F (int const w, int const d, std::complex< float > const &t)
 Fixed Point Format: complex< float > More...
 
std::string F (int const w, int const d, std::complex< double > const &t)
 Fixed Point Format: complex< double > More...
 
std::string F (int const w, int const d, std::complex< long double > const &t)
 Fixed Point Format: complex< long double > More...
 
std::string G (int const w, int const d, float const &t)
 General Format: float. More...
 
std::string G (int const w, int const d, double const &t)
 General Format: double. More...
 
std::string G (int const w, int const d, long double const &t)
 General Format: long double. More...
 
std::string G (int const w, int const d, std::complex< float > const &t)
 General Format: complex< float > More...
 
std::string G (int const w, int const d, std::complex< double > const &t)
 General Format: complex< double > More...
 
std::string G (int const w, int const d, std::complex< long double > const &t)
 General Format: complex< long double > More...
 
template<>
std::string SW (bool const &t)
 Standard Width Format: bool Specialization. More...
 
template<>
std::string SW (byte const &t)
 Standard Width Format: byte Specialization. More...
 
template<>
std::string SW (short int const &t)
 Standard Width Format: short Specialization. More...
 
template<>
std::string SW (unsigned short int const &t)
 Standard Width Format: unsigned short Specialization. More...
 
template<>
std::string SW (int const &t)
 Standard Width Format: int Specialization. More...
 
template<>
std::string SW (unsigned int const &t)
 Standard Width Format: unsigned int Specialization. More...
 
template<>
std::string SW (long int const &t)
 Standard Width Format: long int Specialization. More...
 
template<>
std::string SW (unsigned long int const &t)
 Standard Width Format: unsigned long int Specialization. More...
 
template<>
std::string SW (float const &t)
 Standard Width Format: float Specialization. More...
 
template<>
std::string SW (double const &t)
 Standard Width Format: double Specialization. More...
 
template<>
std::string SW (long double const &t)
 Standard Width Format: long double Specialization. More...
 
template<>
std::string SW (std::complex< float > const &t)
 Standard Width Format: complex< float > Specialization. More...
 
template<>
std::string SW (std::complex< double > const &t)
 Standard Width Format: complex< double > Specialization. More...
 
template<>
std::string SW (std::complex< long double > const &t)
 Standard Width Format: complex< long double > Specialization. More...
 
std::ios_base & general (std::ios_base &base)
 general: Manipulator to Turn Off scientific or fixed More...
 
char const SPACE ( ' ')
 
template<typename T >
std::istream & operator>> (std::istream &stream, Bite< T > const &bite)
 Input a Bite from Stream. More...
 
bool is_blank_string (std::string const &s)
 string is Blank? More...
 
template<typename T >
Bite< Tbite (int const w, T &t)
 Width + Value Bite Maker. More...
 
template<typename T >
Bite< Tbite (int const w, int const d, T &t)
 Width + Precision + Value Bite Maker. More...
 
Bite< boolbite (bool &t)
 bool Bite Maker: Take One Character More...
 
Bite< char > bite (char &t)
 char Bite Maker: Take One Character More...
 
Bite< std::string > bite (std::string &t)
 string Bite Maker: Take Rest of Line More...
 
std::istream & operator>> (std::istream &stream, Skip const &skip)
 Input a Skip from Stream. More...
 
Skip skip (int const w=1)
 Skip Maker. More...
 
std::istream & skip (std::istream &stream)
 Skip Rest of Line and Line Terminator (Manipulator) More...
 
template<typename T >
std::string SS (T const &t)
 Single-Spaced Format. More...
 
template<typename T >
std::string LJ (int const w, T const &t)
 Left-Justified Width-Specified Format. More...
 
template<typename T >
std::string RJ (int const w, T const &t)
 Right-Justified Width-Specified Format. More...
 
template<typename T >
std::string I (int const w, T const &t)
 Integer Format. More...
 
template<typename T >
std::string I (int const w, int const m, T const &t)
 Integer Format with Minimum Digits. More...
 
template<typename T >
std::string SW (T const &t)
 Standard Width Format: Default Implementation. More...
 
std::string nl_if (int const i, int const n)
 Newline utility for formatted output implied DO loop emulation. More...
 

Typedef Documentation

Function Documentation

std::string ObjexxFCL::format::A ( int const  w,
char const  c 
)
std::string ObjexxFCL::format::A ( char const  c)

char Format (Width==1)

std::string ObjexxFCL::format::A ( int const  w,
c_cstring const  s 
)

cstring Format

References A().

std::string ObjexxFCL::format::A ( c_cstring const  s)

cstring Format (Width of cstring)

std::string ObjexxFCL::format::A ( int const  w,
std::string const &  s 
)

string Format

References basic::options::OptionKeys::in::file::s.

std::string const & ObjexxFCL::format::A ( std::string const &  s)

string Format (Width of string)

References basic::options::OptionKeys::in::file::s.

std::string ObjexxFCL::format::A ( int const  w,
Fstring const &  s 
)
std::string ObjexxFCL::format::A ( Fstring const &  s)
Bite< Fstring > ObjexxFCL::format::bite ( Fstring &  t)
template<typename T >
Bite< T > ObjexxFCL::format::bite ( int const  w,
T t 
)
inline
template<typename T >
Bite< T > ObjexxFCL::format::bite ( int const  w,
int const  d,
T t 
)
inline

Width + Precision + Value Bite Maker.

References basic::options::OptionKeys::in::file::t, and numeric::statistics::w().

Bite< bool > ObjexxFCL::format::bite ( bool t)
inline

bool Bite Maker: Take One Character

References basic::options::OptionKeys::in::file::t.

Bite< char > ObjexxFCL::format::bite ( char &  t)
inline

char Bite Maker: Take One Character

References basic::options::OptionKeys::in::file::t.

Bite< std::string > ObjexxFCL::format::bite ( std::string &  t)
inline

string Bite Maker: Take Rest of Line

References max(), and basic::options::OptionKeys::in::file::t.

std::string ObjexxFCL::format::E ( int const  w,
int const  d,
float const &  t 
)
std::string ObjexxFCL::format::E ( int const  w,
int const  d,
double const &  t 
)

Exponential Format: double.

References max(), min(), basic::options::OptionKeys::in::file::t, and ObjexxFCL::uppercase().

std::string ObjexxFCL::format::E ( int const  w,
int const  d,
long double const &  t 
)

Exponential Format: long double.

References max(), min(), basic::options::OptionKeys::in::file::t, and ObjexxFCL::uppercase().

std::string ObjexxFCL::format::E ( int const  w,
int const  d,
std::complex< float > const &  t 
)

Exponential Format: complex< float >

References max(), min(), and ObjexxFCL::uppercase().

std::string ObjexxFCL::format::E ( int const  w,
int const  d,
std::complex< double > const &  t 
)

Exponential Format: complex< double >

References max(), min(), and ObjexxFCL::uppercase().

std::string ObjexxFCL::format::E ( int const  w,
int const  d,
std::complex< long double > const &  t 
)

Exponential Format: complex< long double >

References max(), min(), and ObjexxFCL::uppercase().

std::string ObjexxFCL::format::F ( int const  w,
int const  d,
float const &  t 
)

Fixed Point Format: float.

References ObjexxFCL::abs(), demo.D060_Folding::f, basic::options::OptionKeys::optE::fixed, max(), min(), basic::options::OptionKeys::score::fiber_diffraction::p, ObjexxFCL::pow(), basic::options::OptionKeys::in::file::t, and numeric::crick_equations::x().

Referenced by binder::Context::add_insertion_operator(), binder::FunctionBinder::add_relevant_includes(), numeric::NumericTraits< float >::angle_tolerance(), HBondReporter::apply(), numeric::interpolation::periodic_range::half::bilinearly_interpolated(), numeric::interpolation::periodic_range::full::bilinearly_interpolated(), binder::FunctionBinder::bind(), binder::bind_function(), binder::ClassBinder::bind_repr(), binder::FunctionBinder::bindable(), numeric::ccd_angle(), numeric::geometry::hashing::xyzStripeHash::debug_pdb(), numeric::interpolation::spline::PolycubicSpline< N >::F(), F(), G(), numeric::interpolation::get_val(), harvest_scores(), binder::FunctionBinder::id(), binder::is_bindable(), numeric::NumericTraits< float >::length_tolerance(), main(), measure_sequence_recovery(), numeric::NumericTraits< float >::one(), numeric::operator<<(), output_packstat_pdb(), predict_chem_map_test(), print_ddgs(), basic::prof_show(), numeric::NumericTraits< float >::quaternion_tolerance(), report(), report_and_dump(), binder::FunctionBinder::request_bindings_and_skipping(), rna_features_from_pose(), rna_sequence_recovery_metrics(), sequence_tolerance_main(), numeric::NumericTraits< float >::sin_cos_tolerance(), numeric::NumericTraits< float >::tolerance(), numeric::NumericTraits< float >::two(), BinderVisitor::VisitFunctionDecl(), and numeric::NumericTraits< float >::zero().

std::string ObjexxFCL::format::F ( int const  w,
int const  d,
double const &  t 
)
std::string ObjexxFCL::format::F ( int const  w,
int const  d,
long double const &  t 
)
std::string ObjexxFCL::format::F ( int const  w,
int const  d,
std::complex< float > const &  t 
)

Fixed Point Format: complex< float >

References F().

std::string ObjexxFCL::format::F ( int const  w,
int const  d,
std::complex< double > const &  t 
)

Fixed Point Format: complex< double >

References F().

std::string ObjexxFCL::format::F ( int const  w,
int const  d,
std::complex< long double > const &  t 
)

Fixed Point Format: complex< long double >

References F().

std::string ObjexxFCL::format::G ( int const  w,
int const  d,
float const &  t 
)

General Format: float.

References ObjexxFCL::abs(), E(), F(), test.T110_numeric::m, and ObjexxFCL::pow().

Referenced by G(), and SW().

std::string ObjexxFCL::format::G ( int const  w,
int const  d,
double const &  t 
)

General Format: double.

References ObjexxFCL::abs(), E(), F(), test.T110_numeric::m, and ObjexxFCL::pow().

std::string ObjexxFCL::format::G ( int const  w,
int const  d,
long double const &  t 
)
std::string ObjexxFCL::format::G ( int const  w,
int const  d,
std::complex< float > const &  t 
)

General Format: complex< float >

References G().

std::string ObjexxFCL::format::G ( int const  w,
int const  d,
std::complex< double > const &  t 
)

General Format: complex< double >

References G().

std::string ObjexxFCL::format::G ( int const  w,
int const  d,
std::complex< long double > const &  t 
)

General Format: complex< long double >

References G().

std::ios_base & ObjexxFCL::format::general ( std::ios_base &  base)

general: Manipulator to Turn Off scientific or fixed

References test.T005_Bindings::base, and basic::options::OptionKeys::optE::fixed.

template<typename T >
std::string ObjexxFCL::format::I ( int const  w,
T const &  t 
)
inline
template<typename T >
std::string ObjexxFCL::format::I ( int const  w,
int const  m,
T const &  t 
)
inline

Integer Format with Minimum Digits.

References max(), min(), basic::options::OptionKeys::ufv::right, and basic::options::OptionKeys::in::file::t.

bool ObjexxFCL::format::is_blank_string ( std::string const &  s)
inline

string is Blank?

Referenced by ObjexxFCL::format::Bite< T >::assign().

std::string ObjexxFCL::format::L ( int const  w,
bool const &  t 
)
std::string ObjexxFCL::format::L ( bool const &  t)

Logical Format (Width==1)

template<typename T >
std::string ObjexxFCL::format::LJ ( int const  w,
T const &  t 
)
inline
std::string ObjexxFCL::format::nl_if ( int const  i,
int const  n 
)
inline

Newline utility for formatted output implied DO loop emulation.

template<typename T >
std::istream& ObjexxFCL::format::operator>> ( std::istream &  stream,
Bite< T > const &  bite 
)
std::istream& ObjexxFCL::format::operator>> ( std::istream &  stream,
Skip const &  skip 
)

Input a Skip from Stream.

References ObjexxFCL::format::Skip::w_.

std::string ObjexxFCL::format::repeat ( int const  w,
char  c 
)

Blank string.

w*c

References max().

template<typename T >
std::string ObjexxFCL::format::RJ ( int const  w,
T const &  t 
)
inline
Skip ObjexxFCL::format::skip ( int const  w = 1)
inline

Skip Maker.

References numeric::statistics::w().

std::istream& ObjexxFCL::format::skip ( std::istream &  stream)
inline

Skip Rest of Line and Line Terminator (Manipulator)

References max().

char const ObjexxFCL::format::SPACE ( ' '  )
std::string ObjexxFCL::format::space ( int const  w)

Blank string.

References max().

template<>
std::string ObjexxFCL::format::SS ( bool const &  t)
template<>
std::string ObjexxFCL::format::SS ( float const &  t)

Single-Spaced Format: float Specialization.

References basic::options::OptionKeys::ufv::left, and ObjexxFCL::uppercase().

template<>
std::string ObjexxFCL::format::SS ( double const &  t)

Single-Spaced Format: double Specialization.

References basic::options::OptionKeys::ufv::left, and ObjexxFCL::uppercase().

template<>
std::string ObjexxFCL::format::SS ( long double const &  t)

Single-Spaced Format: long double Specialization.

References basic::options::OptionKeys::ufv::left, and ObjexxFCL::uppercase().

template<>
std::string ObjexxFCL::format::SS ( std::complex< float > const &  t)

Single-Spaced Format: complex< float > Specialization.

References basic::options::OptionKeys::ufv::left, and ObjexxFCL::uppercase().

template<>
std::string ObjexxFCL::format::SS ( std::complex< double > const &  t)

Single-Spaced Format: complex< double > Specialization.

References basic::options::OptionKeys::ufv::left, and ObjexxFCL::uppercase().

template<>
std::string ObjexxFCL::format::SS ( std::complex< long double > const &  t)

Single-Spaced Format: complex< long double > Specialization.

References basic::options::OptionKeys::ufv::left, and ObjexxFCL::uppercase().

template<typename T >
std::string ObjexxFCL::format::SS ( T const &  t)
inline
template<typename T >
std::string ObjexxFCL::format::SW ( FArray1< T > const &  a)
inline

Standard Width Format: FArray1.

References basic::options::OptionKeys::in::file::s, and ObjexxFCL::FArray< typename >::size().

Referenced by SW().

template<>
std::string ObjexxFCL::format::SW ( bool const &  t)

Standard Width Format: bool Specialization.

References L().

template<>
std::string ObjexxFCL::format::SW ( byte const &  t)

Standard Width Format: byte Specialization.

References I().

template<>
std::string ObjexxFCL::format::SW ( short int const &  t)

Standard Width Format: short Specialization.

References I().

template<>
std::string ObjexxFCL::format::SW ( unsigned short int const &  t)

Standard Width Format: unsigned short Specialization.

References I().

template<>
std::string ObjexxFCL::format::SW ( int const &  t)

Standard Width Format: int Specialization.

References I().

template<>
std::string ObjexxFCL::format::SW ( unsigned int const &  t)

Standard Width Format: unsigned int Specialization.

References I().

template<>
std::string ObjexxFCL::format::SW ( long int const &  t)

Standard Width Format: long int Specialization.

References I().

template<>
std::string ObjexxFCL::format::SW ( unsigned long int const &  t)

Standard Width Format: unsigned long int Specialization.

References I().

template<>
std::string ObjexxFCL::format::SW ( float const &  t)

Standard Width Format: float Specialization.

References G().

template<>
std::string ObjexxFCL::format::SW ( double const &  t)

Standard Width Format: double Specialization.

References G().

template<>
std::string ObjexxFCL::format::SW ( long double const &  t)

Standard Width Format: long double Specialization.

References G().

template<>
std::string ObjexxFCL::format::SW ( std::complex< float > const &  t)

Standard Width Format: complex< float > Specialization.

References SW().

template<>
std::string ObjexxFCL::format::SW ( std::complex< double > const &  t)

Standard Width Format: complex< double > Specialization.

References SW().

template<>
std::string ObjexxFCL::format::SW ( std::complex< long double > const &  t)

Standard Width Format: complex< long double > Specialization.

References SW().

template<typename T >
std::string ObjexxFCL::format::SW ( T const &  t)
inline

Standard Width Format: Default Implementation.

References basic::options::OptionKeys::ufv::left, basic::options::OptionKeys::in::file::t, and ObjexxFCL::uppercase().

std::string ObjexxFCL::format::X ( int const  w)