Rosetta 3.3
Public Member Functions | Friends
ObjexxFCL::Fsubstring Class Reference

Fsubstring: Fixed-Length Fortran-Compatible Substring. More...

#include <Fstring.hh>

Inheritance diagram for ObjexxFCL::Fsubstring:
Inheritance graph
[legend]
Collaboration diagram for ObjexxFCL::Fsubstring:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Fsubstring (Fsubstring const &s)
 Copy Constructor.
virtual ~Fsubstring ()
 Destructor.
Fsubstringoperator= (Fsubstring const &s)
 Copy Assignment.
Fsubstringoperator= (Fstring const &s)
 = Fstring
Fsubstringoperator= (std::string const &s)
 = string
Fsubstringoperator= (c_cstring const s)
 = cstring
Fsubstringoperator= (char const c)
 = char
Fstringref ()
 Reference to Fstring: Can Pass s( i, j ).ref() to an Fstring& Argument.

Friends

class Fstring

Detailed Description

Fsubstring: Fixed-Length Fortran-Compatible Substring.

Remarks:
  • Subscripts run from 1 to the length
  • Space-padding is used in comparisons and assignments
  • Internal string rep is not null-terminated
  • Zero-length Fsubstrings are supported but cannot be indexed into (no valid indices)
  • Fsubstring not for explicit use in client code: Client code uses Fstring::operator () to get substrings
  • Pass s( i, j ).ref() to a non-const Fstring& argument
  • Don't return a substring of a local as an Fsubstring since its copy ctor uses ref semantics: Return as an Fstring to get a copy

Constructor & Destructor Documentation

ObjexxFCL::Fsubstring::Fsubstring ( Fsubstring const &  s) [inline]

Copy Constructor.

virtual ObjexxFCL::Fsubstring::~Fsubstring ( ) [inline, virtual]

Destructor.


Member Function Documentation

Fsubstring & ObjexxFCL::Fsubstring::operator= ( Fsubstring const &  s)

Copy Assignment.

References ObjexxFCL::SPACE().

Fsubstring & ObjexxFCL::Fsubstring::operator= ( Fstring const &  s)

= Fstring

Reimplemented from ObjexxFCL::Fstring.

References ObjexxFCL::SPACE().

Fsubstring & ObjexxFCL::Fsubstring::operator= ( char const  c)

= char

Reimplemented from ObjexxFCL::Fstring.

References ObjexxFCL::SPACE().

Fsubstring & ObjexxFCL::Fsubstring::operator= ( c_cstring const  s)

= cstring

Reimplemented from ObjexxFCL::Fstring.

References ObjexxFCL::SPACE().

Fsubstring & ObjexxFCL::Fsubstring::operator= ( std::string const &  s)

= string

Reimplemented from ObjexxFCL::Fstring.

References ObjexxFCL::Fstring::copy(), and ObjexxFCL::SPACE().

Fstring& ObjexxFCL::Fsubstring::ref ( ) [inline]

Reference to Fstring: Can Pass s( i, j ).ref() to an Fstring& Argument.


Friends And Related Function Documentation

friend class Fstring [friend]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines