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

#include <df3fun.h>

Public Member Functions

 df3_one_vector (int min, int max)
 
 df3_one_vector (void)
 Default constructor. More...
 
 df3_one_vector (const df3_one_vector &m2)
 Copy constructor. More...
 
 ~df3_one_vector ()
 Destructor. More...
 
void allocate (void)
 Does NOT allocate, but initializes empty df3_one_vector. More...
 
void allocate (int min, int max)
 Allocate vector of df3_one_variable with dimension [min to max]. More...
 
void deallocate (void)
 Deallocate df3_one_vector, then set to empty. More...
 
int indexmax (void) const
 
int indexmin (void) const
 
void initialize (void)
 
df3_one_variableoperator() (int i) const
 
df3_one_variableoperator[] (int i) const
 

Private Attributes

int index_max
 
int index_min
 
vector_shapexshape
 
df3_one_variablev
 

Detailed Description

Definition at line 80 of file df3fun.h.

Constructor & Destructor Documentation

df3_one_vector::df3_one_vector ( int  min,
int  max 
)

Definition at line 139 of file df3fun.cpp.

df3_one_vector::df3_one_vector ( void  )

Default constructor.

Definition at line 134 of file df3fun.cpp.

df3_one_vector::~df3_one_vector ( )

Destructor.

Definition at line 47 of file df3fun.cpp.

df3_one_vector::df3_one_vector ( const df3_one_vector m2)

Copy constructor.

Definition at line 35 of file df3fun.cpp.

Member Function Documentation

void df3_one_vector::allocate ( void  )

Does NOT allocate, but initializes empty df3_one_vector.

Definition at line 172 of file df3fun.cpp.

Referenced by df3_one_matrix::df3_one_matrix(), and df3_one_vector().

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

Allocate vector of df3_one_variable with dimension [min to max].

Parameters
minlower index
maxupper index

Definition at line 151 of file df3fun.cpp.

void df3_one_vector::deallocate ( void  )

Deallocate df3_one_vector, then set to empty.

Definition at line 52 of file df3fun.cpp.

Referenced by ~df3_one_vector().

int df3_one_vector::indexmax ( void  ) const
inline
int df3_one_vector::indexmin ( void  ) const
inline
void df3_one_vector::initialize ( void  )

Definition at line 121 of file df3fun.cpp.

df3_one_variable& df3_one_vector::operator() ( int  i) const
inline

Definition at line 93 of file df3fun.h.

df3_one_variable& df3_one_vector::operator[] ( int  i) const
inline

Definition at line 97 of file df3fun.h.

Member Data Documentation

int df3_one_vector::index_max
private

Definition at line 83 of file df3fun.h.

Referenced by allocate(), deallocate(), df3_one_vector(), and indexmax().

int df3_one_vector::index_min
private

Definition at line 82 of file df3fun.h.

Referenced by allocate(), deallocate(), df3_one_vector(), and indexmin().

vector_shapex* df3_one_vector::shape
private

Definition at line 84 of file df3fun.h.

Referenced by allocate(), deallocate(), and df3_one_vector().

df3_one_variable* df3_one_vector::v
private

Definition at line 85 of file df3fun.h.

Referenced by allocate(), deallocate(), df3_one_vector(), operator()(), and operator[]().


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