ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | Friends | List of all members
adstring_array Class Reference

#include <adstring.hpp>

Public Member Functions

 adstring_array (const adstring_array &sa)
 Copy constructor. More...
 
 adstring_array (int min, int max)
 
 adstring_array (void)
 Default constructor. More...
 
 ~adstring_array ()
 Destructor. More...
 
void allocate (int min, int max)
 Allocate vector of adstring with range [min, max]. More...
 
void allocate ()
 
adstring_arrayappend_distinct (const adstring &s)
 
int indexmax (void) const
 
int indexmin (void) const
 
const adstringoperator() (int i) const
 Returns a reference to the element at specified index i. More...
 
adstringoperator() (int i)
 Returns a reference to the element at specified index i. More...
 
adstring_arrayoperator+= (const adstring &s)
 
adstring_arrayoperator= (const adstring_array &)
 Assigment operator for adstring_array. More...
 
const adstringoperator[] (int i) const
 Returns a reference to the element at specified index i. More...
 
adstringoperator[] (int i)
 Returns a reference to the element at specified index i. More...
 
int size () const
 
void to_lower (void)
 
adstring_array to_lower (adstring_array &s)
 
void to_upper (void)
 
adstring_array to_upper (adstring_array &s)
 
- Public Member Functions inherited from clist
 ~clist ()
 Destructor. More...
 
int length (const int &max=1000) const
 

Private Attributes

adstring ** ptr
 
vector_shapeshape
 

Friends

std::ostream & operator<< (const std::ostream &ifs, const adstring_array &sa)
 
std::ifstream & operator>> (std::ifstream &ifs, adstring_array &sa)
 
cifstreamoperator>> (cifstream &ifs, adstring_array &sa)
 Extract adstring_array from ifstream. More...
 

Additional Inherited Members

- Protected Member Functions inherited from clist
 clist ()
 
 clist (const clist &pt)
 Copy constructor. More...
 
clistprev () const
 
- Protected Attributes inherited from clist
clistnext
 

Detailed Description

Definition at line 198 of file adstring.hpp.

Constructor & Destructor Documentation

adstring_array::adstring_array ( const adstring_array sa)

Copy constructor.

Definition at line 26 of file string5.cpp.

adstring_array::~adstring_array ( )

Destructor.

Definition at line 38 of file string5.cpp.

adstring_array::adstring_array ( int  min,
int  max 
)

Definition at line 31 of file string5.cpp.

adstring_array::adstring_array ( void  )

Default constructor.

Definition at line 18 of file string5.cpp.

Member Function Documentation

void adstring_array::allocate ( int  min,
int  max 
)

Allocate vector of adstring with range [min, max].

Parameters
minlower index
maxupper index

Definition at line 80 of file string5.cpp.

Referenced by get_param_names(), and function_minimizer::sd_routine().

void adstring_array::allocate ( void  )
inline
adstring_array & adstring_array::append_distinct ( const adstring s)

Definition at line 16 of file string5a.cpp.

Referenced by operator+=().

int adstring_array::indexmax ( void  ) const
int adstring_array::indexmin ( void  ) const
const adstring & adstring_array::operator() ( int  i) const

Returns a reference to the element at specified index i.

Bounds checking is performed.

Parameters
iindex

Definition at line 167 of file string5.cpp.

adstring & adstring_array::operator() ( int  i)

Returns a reference to the element at specified index i.

Bounds checking is performed.

Parameters
iindex

Definition at line 129 of file string5.cpp.

adstring_array & adstring_array::operator+= ( const adstring s)

Definition at line 11 of file string5a.cpp.

adstring_array & adstring_array::operator= ( const adstring_array a)

Assigment operator for adstring_array.

Parameters
aadstring_array to copy
Returns
adstring_array

Definition at line 17 of file adstring_array.cpp.

const adstring & adstring_array::operator[] ( int  i) const

Returns a reference to the element at specified index i.

Bounds checking is performed.

Parameters
iindex

Definition at line 148 of file string5.cpp.

adstring & adstring_array::operator[] ( int  i)

Returns a reference to the element at specified index i.

Bounds checking is performed.

Parameters
iindex

Definition at line 110 of file string5.cpp.

int adstring_array::size ( void  ) const
void adstring_array::to_lower ( void  )

Definition at line 10 of file strcase2.cpp.

Referenced by to_lower().

adstring_array adstring_array::to_lower ( adstring_array s)
void adstring_array::to_upper ( void  )

Definition at line 21 of file strcase2.cpp.

Referenced by to_upper().

adstring_array adstring_array::to_upper ( adstring_array s)

Friends And Related Function Documentation

std::ostream& operator<< ( const std::ostream &  ifs,
const adstring_array sa 
)
friend
std::ifstream& operator>> ( std::ifstream &  ifs,
adstring_array sa 
)
friend
cifstream& operator>> ( cifstream ifs,
adstring_array sa 
)
friend

Extract adstring_array from ifstream.

Definition at line 48 of file str_aio.cpp.

Member Data Documentation

adstring** adstring_array::ptr
private
vector_shape* adstring_array::shape
private

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