class Gambit::Fstring
[No description available] More…
#include <util_types.hpp>
Inherits from Gambit::Farray< char, 1, len >
Public Functions
Name | |
---|---|
Fstring() | |
Fstring(const std::string & in) | |
Fstring(const char * in) | |
Fstring(char in) | |
template <int ilen> | Fstring(const Fstring< ilen > & in) |
Fstring & | operator=(const std::string & in) |
Fstring & | operator=(const char * in) |
Fstring & | operator=(char in) |
template <int ilen> Fstring & | operator=(const Fstring< ilen > & in) |
std::string | str() const Get std::string copy of the Fstring, including all trailing spaces. |
std::string | trimmed_str() const Get std::string copy of the Fstring without trailing spaces. |
bool | operator==(std::string str) |
Additional inherited members
Protected Classes inherited from Gambit::Farray< char, 1, len >
Name | |
---|---|
struct | calc_nElem |
struct | calc_nElem< limL, limU > |
struct | calc_nElem< limL, limU, _lims… > |
Public Types inherited from Gambit::Farray< char, 1, len >
Name | |
---|---|
typedef calc_nElem< lims… > | nElem |
Protected Types inherited from Gambit::Farray< char, 1, len >
Name | |
---|---|
typedef mult_types< short, const short, short &, const short &, unsigned short, const unsigned short, unsigned short &, const unsigned short &, int, const int, int &, const int &, unsigned, const unsigned, unsigned &, const unsigned &, long, const long, long &, const long &, unsigned long, const unsigned long, unsigned long &, const unsigned long &, long long, const long long, long long &, const long long &, unsigned long long, const unsigned long long, unsigned long long &, const unsigned long long & > | allowed_types |
Public Functions inherited from Gambit::Farray< char, 1, len >
Name | |
---|---|
Farray() | |
Farray(Farray< T, lims… > & in) | |
template <typename … Args> enable_if_all_member< allowed_types, T &, Args… >::type::type | operator()(Args … a) |
template <typename … Args> enable_if_all_member< allowed_types, constT &, Args… >::type::type | operator()(Args … a) const |
Farray(const T val) |
Public Attributes inherited from Gambit::Farray< char, 1, len >
Name | |
---|---|
T[nElem::val] | array |
Detailed Description
template <int len>
class Gambit::Fstring;
Farray specialization for Fortran strings. This is a 1-dimensional char array with indices 1 to len. It has assignment operators for standard string types, and accessors that return std::string objects. Strings longer than len will be truncated by the assignment operators, and shorter strings will be given trailing spaces. Syntax: Fstring<[string length]> DO NOT UNDER ANY CIRCUMSTANCE add new member variables to this class!
Public Functions Documentation
function Fstring
inline Fstring()
function Fstring
inline Fstring(
const std::string & in
)
function Fstring
inline Fstring(
const char * in
)
function Fstring
inline Fstring(
char in
)
function Fstring
template <int ilen>
inline Fstring(
const Fstring< ilen > & in
)
function operator=
inline Fstring & operator=(
const std::string & in
)
function operator=
inline Fstring & operator=(
const char * in
)
function operator=
inline Fstring & operator=(
char in
)
function operator=
template <int ilen>
inline Fstring & operator=(
const Fstring< ilen > & in
)
function str
inline std::string str() const
Get std::string copy of the Fstring, including all trailing spaces.
function trimmed_str
inline std::string trimmed_str() const
Get std::string copy of the Fstring without trailing spaces.
function operator==
inline bool operator==(
std::string str
)
Updated on 2024-07-18 at 13:53:30 +0000