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

Derived class of index types for ivector. More...

#include <fvar.hpp>

Public Member Functions

 vector_index (const ivector &v)
 Constructor for ivector. More...
 
virtual ~vector_index ()
 Destructor. More...
 
virtual int dimension () const
 
virtual int indexmax () const
 
virtual int indexmin () const
 
- Public Member Functions inherited from ivector
 ivector ()
 Default constructor. More...
 
 ivector (const lvector &)
 
 ivector (const dvector &)
 Construct ivector with same dimensions as u. More...
 
 ivector (int ncl, int ncu)
 Allocate vector of integers with dimension [ncl to nch]. More...
 
 ivector (const ad_integer &ncl, const index_type &ncu)
 Description not yet available. More...
 
 ivector (unsigned int sz, long int *x)
 Constructor. More...
 
 ivector (const preivector &pd)
 Description not yet available. More...
 
 ivector (const ivector &t)
 Copy constructor. More...
 
 ~ivector ()
 Default destructor. More...
 
void allocate (const ad_integer &ncl, const index_type &ncu)
 Allocate vector of integers with dimension [_ncl to _nch]. More...
 
void allocate (int ncl, int ncu)
 Allocate vector of integers with dimension [ncl to nch]. More...
 
void allocate (const ivector &iv)
 Description not yet available. More...
 
void allocate (const dvector &dv)
 Description not yet available. More...
 
void allocate (const char *)
 
void allocate ()
 Does not allocate, but initializes class members. More...
 
int allocated () const
 
void deallocate ()
 Deallocate i3_array memory. More...
 
int & elem (int i)
 
const int & elem (int i) const
 
void fill (const char *s)
 Description not yet available. More...
 
void fill_multinomial (const int &seed, const dvector &p)
 Description not yet available. More...
 
void fill_multinomial (const random_number_generator &rng, const dvector &p)
 Description not yet available. More...
 
void fill_seqadd (int, int)
 Fills ivector elements with values starting from base and incremented by offset. More...
 
unsigned int get_ncopies () const
 
int * get_v () const
 
int indexmax () const
 
int indexmin () const
 
void initialize (void)
 Description not yet available. More...
 
int operator! () const
 
int & operator() (int i)
 
const int & operator() (int i) const
 
ivector operator() (int lb, int ub)
 
ivector operator() (const ivector &u)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
ivectoroperator++ ()
 
ivectoroperator+= (const ivector &t)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
ivectoroperator+= (int t)
 Add value to each element of ivec. More...
 
ivectoroperator-- ()
 
ivectoroperator= (const ivector &t)
 Description not yet available. More...
 
ivectoroperator= (int t)
 Assigns value to all elements of ivector. More...
 
ivectoroperator= (const lvector &t)
 
int & operator[] (int i)
 
const int & operator[] (int i) const
 
void read_from (const istream &s)
 Reads all the elements from istream _s. More...
 
void read_from (const uistream &s)
 Read values from input into ivector. More...
 
void reallocate (double size)
 Reallocate size of array. More...
 
void safe_allocate (int ncl, int ncu)
 Description not yet available. More...
 
void safe_deallocate ()
 Safely deallocates memory by reporting if shallow copies are still in scope. More...
 
void save_ivector_position () const
 Description not yet available. More...
 
void save_ivector_value () const
 Saves the size, address, and value information for a ivector. More...
 
void shallow_copy (const ivector &t)
 Shallow copy other data structure pointers. More...
 
ivectorshift (int min)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
unsigned int size () const
 
ivector sub (int lb, int ub)
 
void write_on (const ostream &s) const
 Writes all the elements to the ostream _s. More...
 
void write_on (const uostream &s) const
 Write ivector values to output. More...
 
- Public Member Functions inherited from index_guts
 index_guts ()
 Default constructor. More...
 
 index_guts (const index_guts &ig)
 Copy constructor. More...
 
virtual ~index_guts ()
 Destructor. More...
 
virtual int isinteger () const
 
virtual operator int ()
 

Private Member Functions

virtual index_gutsoperator[] (int i)
 

Friends

class index_type
 

Additional Inherited Members

- Protected Attributes inherited from ivector
int index_max
 
int index_min
 
vector_shapexshape
 
int * v
 
- Protected Attributes inherited from index_guts
int * ncopies
 

Detailed Description

Derived class of index types for ivector.

Definition at line 7809 of file fvar.hpp.

Constructor & Destructor Documentation

vector_index::vector_index ( const ivector v)

Constructor for ivector.

Definition at line 187 of file indextyp.cpp.

vector_index::~vector_index ( )
virtual

Destructor.

Definition at line 191 of file indextyp.cpp.

Member Function Documentation

virtual int vector_index::dimension ( ) const
inlinevirtual

Reimplemented from index_guts.

Definition at line 7821 of file fvar.hpp.

virtual int vector_index::indexmax ( void  ) const
inlinevirtual

Implements index_guts.

Definition at line 7829 of file fvar.hpp.

virtual int vector_index::indexmin ( void  ) const
inlinevirtual

Implements index_guts.

Definition at line 7825 of file fvar.hpp.

virtual index_guts* vector_index::operator[] ( int  i)
inlineprivatevirtual

Implements index_guts.

Definition at line 7811 of file fvar.hpp.

Friends And Related Function Documentation

friend class index_type
friend

Definition at line 7834 of file fvar.hpp.


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