ADMB Documentation  11.1.2372
 All Classes Files Functions Variables Typedefs Friends Defines
Public Member Functions | Private Member Functions | Private Attributes | Friends
adstring Class Reference

#include <adstring.hpp>

Public Member Functions

 adstring (const char *t)
 adstring (int lb, int ub)
 adstring (const adstring &v)
 adstring (const char v)
 adstring (void)
 ~adstring ()
 Destructor.
void allocate (const char *t)
unsigned int buff_size (void)
 operator char * ()
 operator const char * () const
 operator const unsigned char * () const
 operator unsigned char * ()
int operator!= (const adstring &u)
unsigned char & operator() (const int i)
const unsigned char & operator() (const int i) const
adstring operator() (int i, int j)
adstring operator() (int i, int j) const
adstringoperator+= (const adstring &u)
adstringoperator+= (const char u)
adstringoperator= (const adstring &t)
adstringoperator= (const char t)
int operator== (const adstring &u)
int operator== (const char *u)
int operator== (const char *u) const
int operator== (const adstring &u) const
unsigned char & operator[] (const int i)
const unsigned char & operator[] (const int i) const
int pos (const adstring &substr) const
void realloc (const char *t)
unsigned int size (void) const
void to_lower (void)
adstring to_lower (adstring &s)
void to_upper (void)
adstring to_upper (adstring &s)

Private Member Functions

void allocate (int sz)
void deallocate (void)

Private Attributes

unsigned char * s
adstring_shapeshape

Friends

class adstring_array
adstring operator+ (const adstring &u, const adstring &v)
adstring operator+ (const adstring &u, const unsigned char v)
adstring operator+ (const adstring &u, const signed char v)
adstring operator+ (const adstring &u, const unsigned char *v)
adstring operator+ (const adstring &u, const signed char *v)
adstring operator+ (const unsigned char *v, const adstring &u)
adstring operator+ (const char *v, const adstring &u)
adstring operator+ (const unsigned char u, const adstring &v)
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)
adstring str (const int x)
void val (const adstring &s, int &v, int &code)
int val (const adstring &s)

Detailed Description

Definition at line 68 of file adstring.hpp.


Constructor & Destructor Documentation

adstring::adstring ( const char *  t)

Definition at line 16 of file string3.cpp.

adstring::adstring ( int  lb,
int  ub 
)

Definition at line 15 of file string2.cpp.

adstring::adstring ( const adstring v)

Definition at line 45 of file string2.cpp.

adstring::adstring ( const char  v)

Definition at line 32 of file string2.cpp.

adstring::adstring ( void  )

Definition at line 37 of file string3.cpp.

Referenced by operator+=(), operator=(), and operator==().

Destructor.

Definition at line 110 of file string1.cpp.


Member Function Documentation

void adstring::allocate ( int  sz) [private]

Definition at line 16 of file string.cpp.

Referenced by adstring().

void adstring::allocate ( const char *  t)

Reimplemented in init_line_adstring, and init_adstring.

unsigned int adstring::buff_size ( void  )

Definition at line 74 of file string.cpp.

Referenced by operator+=().

void adstring::deallocate ( void  ) [private]

Definition at line 27 of file string.cpp.

Referenced by ~adstring().

adstring::operator char * ( )

Definition at line 46 of file string.cpp.

adstring::operator const char * ( ) const

Definition at line 56 of file string.cpp.

adstring::operator const unsigned char * ( ) const

Definition at line 51 of file string.cpp.

adstring::operator unsigned char * ( )

Definition at line 41 of file string.cpp.

int adstring::operator!= ( const adstring u) [inline]

Definition at line 132 of file adstring.hpp.

unsigned char & adstring::operator() ( const int  i)

Definition at line 118 of file string1.cpp.

const unsigned char & adstring::operator() ( const int  i) const

Definition at line 128 of file string1.cpp.

adstring adstring::operator() ( int  i,
int  j 
)

Definition at line 12 of file string1.cpp.

adstring adstring::operator() ( int  i,
int  j 
) const

Definition at line 38 of file string1.cpp.

adstring & adstring::operator+= ( const adstring u)

Definition at line 166 of file string1.cpp.

adstring& adstring::operator+= ( const char  u) [inline]

Definition at line 124 of file adstring.hpp.

adstring & adstring::operator= ( const adstring t)

Reimplemented in dll_named_adstring, named_line_adstring, named_adstring, and line_adstring.

Definition at line 64 of file string1.cpp.

adstring & adstring::operator= ( const char  t)

Definition at line 92 of file string.cpp.

int adstring::operator== ( const adstring u)

Definition at line 154 of file string1.cpp.

int adstring::operator== ( const char *  u) [inline]

Definition at line 129 of file adstring.hpp.

int adstring::operator== ( const char *  u) const
int adstring::operator== ( const adstring u) const

Definition at line 148 of file string1.cpp.

unsigned char & adstring::operator[] ( const int  i)

Definition at line 195 of file string1.cpp.

const unsigned char & adstring::operator[] ( const int  i) const

Definition at line 138 of file string1.cpp.

int adstring::pos ( const adstring substr) const

Definition at line 44 of file string3.cpp.

Referenced by pos().

void adstring::realloc ( const char *  t)

Definition at line 90 of file string1.cpp.

Referenced by cifstream::operator>>().

unsigned int adstring::size ( void  ) const
void adstring::to_lower ( void  )

Definition at line 9 of file strcase.cpp.

Referenced by to_lower().

void adstring::to_upper ( void  )

Definition at line 19 of file strcase.cpp.

Referenced by to_upper().


Friends And Related Function Documentation

friend class adstring_array [friend]

Definition at line 78 of file adstring.hpp.

adstring operator+ ( const adstring u,
const adstring v 
) [friend]

Definition at line 51 of file string2.cpp.

adstring operator+ ( const adstring u,
const unsigned char  v 
) [friend]

Definition at line 12 of file string6.cpp.

adstring operator+ ( const adstring u,
const signed char  v 
) [friend]

Definition at line 14 of file string6.cpp.

adstring operator+ ( const adstring u,
const unsigned char *  v 
) [friend]

Definition at line 16 of file string6.cpp.

adstring operator+ ( const adstring u,
const signed char *  v 
) [friend]

Definition at line 18 of file string6.cpp.

adstring operator+ ( const unsigned char *  v,
const adstring u 
) [friend]

Definition at line 21 of file string6.cpp.

adstring operator+ ( const char *  v,
const adstring u 
) [friend]

Definition at line 24 of file string6.cpp.

adstring operator+ ( const unsigned char  u,
const adstring v 
) [friend]

Definition at line 30 of file string6.cpp.

std::ostream& operator<< ( std::ostream &  c,
const adstring t 
) [friend]
std::istream& operator>> ( std::istream &  c,
adstring t 
) [friend]
adstring str ( double  x,
int  minwidth = 17,
int  decplaces = -1 
) [friend]

Definition at line 20 of file str.cpp.

adstring str ( const int  x) [friend]

Definition at line 93 of file str.cpp.

void val ( const adstring s,
int &  v,
int &  code 
) [friend]

Definition at line 10 of file val.cpp.

int val ( const adstring s) [friend]

Definition at line 24 of file val.cpp.


Member Data Documentation

unsigned char* adstring::s [private]

List of all members.


The documentation for this class was generated from the following files: