ADMB Documentation
-a65f1c97
|
#include <adstring.hpp>
Public Member Functions | |
adstring () | |
Default constructor. More... | |
adstring (const adstring &v) | |
adstring (const char v) | |
adstring (const char *t) | |
adstring (const unsigned char v) | |
adstring (const unsigned char *t) | |
adstring (const size_t lb, const size_t ub) | |
adstring (const int size) | |
~adstring () | |
Destructor. More... | |
void | allocate (const char *t) |
size_t | buff_size () const |
operator char * () | |
operator const char * () const | |
operator const unsigned char * () const | |
operator unsigned char * () | |
bool | operator!= (const adstring &u) const |
bool | operator!= (const char *u) const |
unsigned char & | operator() (const size_t i) |
Returns reference to element at specified index i. More... | |
const unsigned char & | operator() (const size_t i) const |
Returns reference to element at specified index i. More... | |
adstring | operator() (const size_t i, const size_t j) |
adstring | operator() (const size_t i, const size_t j) const |
adstring & | operator+= (const adstring &u) |
Return true if adstring is equal to other, otherwise false. More... | |
adstring & | operator+= (const char u) |
adstring & | operator= (const adstring &t) |
adstring & | operator= (const char t) |
bool | operator== (const adstring &other) const |
Return true if adstring is equal to other, otherwise false. More... | |
bool | operator== (const char *u) const |
unsigned char & | operator[] (const size_t i) |
Returns reference to element at specified index i. More... | |
unsigned char & | operator[] (const size_t i) const |
Returns reference to element at specified index i. More... | |
size_t | pos (const adstring &substr) const |
void | realloc (const char *t) |
size_t | size () const |
void | to_lower (void) |
adstring | to_lower (adstring &s) |
void | to_upper (void) |
adstring | to_upper (adstring &s) |
Public Member Functions inherited from clist | |
~clist () | |
Destructor. More... | |
int | length (const int &max=1000) const |
Private Member Functions | |
void | allocate (const size_t sz) |
void | deallocate (void) |
Private Attributes | |
unsigned char * | s |
adstring_shape * | shape |
Friends | |
class | adstring_array |
adstring | operator+ (const adstring &u, const adstring &v) |
adstring | operator+ (const adstring &u, const unsigned char v) |
Concatenate adstring u with unsigned char v. More... | |
adstring | operator+ (const adstring &u, const char v) |
Concatenate adstring u with char v. More... | |
adstring | operator+ (const adstring &u, const unsigned char *v) |
Concatenate adstring u with unsigned char v. More... | |
adstring | operator+ (const adstring &u, const char *v) |
Concatenate adstring u with char* v. More... | |
adstring | operator+ (const unsigned char *v, const adstring &u) |
Concatenate unsigned char* v with adstring u. More... | |
adstring | operator+ (const char *v, const adstring &u) |
Concatenate char* v with adstring u. More... | |
adstring | operator+ (const unsigned char u, const adstring &v) |
Concatenate unsigned char u with adstring v. More... | |
std::ostream & | operator<< (std::ostream &c, const adstring &t) |
std::istream & | operator>> (std::istream &c, adstring &t) |
adstring | str (double x, int minwidth, int decplaces) |
Convert x to adstring with minimum width and total number of decimal places. More... | |
adstring | str (const int x) |
Returns converted string representation of integer a. More... | |
void | val (const adstring &s, int &v, int &code) |
int | val (const adstring &s) |
Additional Inherited Members | |
Protected Member Functions inherited from clist | |
clist () | |
clist (const clist &pt) | |
Copy constructor. More... | |
clist * | prev () const |
Protected Attributes inherited from clist | |
clist * | next |
Definition at line 70 of file adstring.hpp.
adstring::adstring | ( | ) |
Default constructor.
Definition at line 33 of file string3.cpp.
Referenced by init_line_adstring::allocate(), operator+=(), and operator=().
adstring::adstring | ( | const adstring & | v | ) |
Definition at line 67 of file string2.cpp.
adstring::adstring | ( | const char | v | ) |
Definition at line 49 of file string2.cpp.
adstring::adstring | ( | const char * | t | ) |
Definition at line 10 of file string3.cpp.
adstring::adstring | ( | const unsigned char | v | ) |
Definition at line 58 of file string2.cpp.
adstring::adstring | ( | const unsigned char * | t | ) |
Definition at line 21 of file string3.cpp.
adstring::adstring | ( | const size_t | lb, |
const size_t | ub | ||
) |
Definition at line 16 of file string2.cpp.
adstring::adstring | ( | const int | size | ) |
Definition at line 32 of file string2.cpp.
adstring::~adstring | ( | ) |
Destructor.
Definition at line 98 of file string1.cpp.
|
private |
Definition at line 12 of file string.cpp.
Referenced by adstring().
void adstring::allocate | ( | const char * | t | ) |
size_t adstring::buff_size | ( | ) | const |
Definition at line 63 of file string.cpp.
Referenced by operator+=().
|
private |
Definition at line 23 of file string.cpp.
Referenced by ~adstring().
adstring::operator char * | ( | ) |
Definition at line 43 of file string.cpp.
adstring::operator const char * | ( | ) | const |
Definition at line 53 of file string.cpp.
adstring::operator const unsigned char * | ( | ) | const |
Definition at line 48 of file string.cpp.
adstring::operator unsigned char * | ( | ) |
Definition at line 38 of file string.cpp.
|
inline |
Definition at line 111 of file adstring.hpp.
|
inline |
Definition at line 113 of file adstring.hpp.
unsigned char & adstring::operator() | ( | const size_t | i | ) |
Returns reference to element at specified index i.
i | index |
Definition at line 110 of file string1.cpp.
const unsigned char & adstring::operator() | ( | const size_t | i | ) | const |
Returns reference to element at specified index i.
i | index |
Definition at line 126 of file string1.cpp.
adstring adstring::operator() | ( | const size_t | i, |
const size_t | j | ||
) |
Definition at line 16 of file string1.cpp.
adstring adstring::operator() | ( | const size_t | i, |
const size_t | j | ||
) | const |
Definition at line 32 of file string1.cpp.
Return true if adstring is equal to other, otherwise false.
other | compare string |
Definition at line 180 of file string1.cpp.
|
inline |
Definition at line 104 of file adstring.hpp.
Definition at line 48 of file string1.cpp.
Referenced by line_adstring::operator=(), named_adstring::operator=(), and dll_named_adstring::operator=().
adstring & adstring::operator= | ( | const char | t | ) |
Definition at line 81 of file string.cpp.
bool adstring::operator== | ( | const adstring & | other | ) | const |
Return true if adstring is equal to other, otherwise false.
other | compare string |
Definition at line 158 of file string1.cpp.
|
inline |
Definition at line 108 of file adstring.hpp.
unsigned char & adstring::operator[] | ( | const size_t | i | ) |
Returns reference to element at specified index i.
i | index |
Definition at line 212 of file string1.cpp.
unsigned char & adstring::operator[] | ( | const size_t | i | ) | const |
Returns reference to element at specified index i.
i | index |
Definition at line 142 of file string1.cpp.
size_t adstring::pos | ( | const adstring & | substr | ) | const |
Definition at line 40 of file string3.cpp.
Referenced by pos().
void adstring::realloc | ( | const char * | t | ) |
Definition at line 77 of file string1.cpp.
Referenced by cifstream::operator>>().
size_t adstring::size | ( | void | ) | const |
Definition at line 58 of file string.cpp.
Referenced by ad_comm::ad_comm(), adstring(), ad_comm::allocate(), admb::messages::error(), length(), operator()(), operator+(), operator+=(), operator<<(), operator=(), pos(), strip_full_path(), to_lower(), to_upper(), and val().
void adstring::to_lower | ( | void | ) |
Definition at line 11 of file strcase.cpp.
Referenced by to_lower().
void adstring::to_upper | ( | void | ) |
Definition at line 21 of file strcase.cpp.
Referenced by to_upper().
|
friend |
Definition at line 80 of file adstring.hpp.
Definition at line 73 of file string2.cpp.
Concatenate adstring u with unsigned char v.
u | left hand side |
v | right hand side |
Definition at line 16 of file string6.cpp.
Concatenate adstring u with char v.
u | left hand side |
v | right hand side |
Definition at line 26 of file string6.cpp.
Concatenate adstring u with unsigned char v.
u | left hand side |
v | right hand side |
Definition at line 36 of file string6.cpp.
Concatenate adstring u with char* v.
u | left hand side |
v | right hand side |
Definition at line 46 of file string6.cpp.
Concatenate unsigned char* v with adstring u.
u | left hand side |
v | right hand side |
Definition at line 56 of file string6.cpp.
Concatenate char* v with adstring u.
u | left hand side |
v | right hand side |
Definition at line 66 of file string6.cpp.
Concatenate unsigned char u with adstring v.
u | left hand side |
v | right hand side |
Definition at line 77 of file string6.cpp.
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
Definition at line 76 of file adstring.hpp.
Referenced by adstring(), allocate(), deallocate(), operator()(), operator+=(), operator<<(), operator=(), operator[](), pos(), realloc(), size(), to_lower(), and to_upper().
|
private |
Definition at line 72 of file adstring.hpp.
Referenced by adstring(), allocate(), buff_size(), deallocate(), operator()(), operator=(), operator[](), and realloc().
Generated on Wed Sep 7 2022 00:01:32 for ADMB Documentation by 1.8.5 |