Holds "shape" information for vector objects. More...
#include <vector_shapex.h>
Public Member Functions | |
| vector_shapex (int lb, int ub, void *p) | |
| unsigned int | decr_ncopies (void) |
| unsigned int | get_ncopies (void) |
| void * | get_truepointer (void) |
| Returns address of first element in the vector. | |
| unsigned int | incr_ncopies (void) |
| int | indexmax () |
| int | indexmin () |
| void | shift (int min) |
| Description not yet available. | |
Public Attributes | |
| int | index_max |
| Maximum valid subscript. | |
| int | index_min |
| Minimum valid subscript. | |
| unsigned int | ncopies |
| Copy counter to enable shallow copies. | |
| void * | trueptr |
| Address of first element in the vector. | |
Friends | |
| class | dvar_vector |
| class | dvector |
| class | ivector |
| class | lvector |
| class | ptr_vector |
| class | subdvector |
Holds "shape" information for vector objects.
Definition at line 46 of file vector_shapex.h.
| vector_shapex::vector_shapex | ( | int | lb, |
| int | ub, | ||
| void * | p | ||
| ) | [inline] |
Definition at line 49 of file vector_shapex.h.
| unsigned int vector_shapex::decr_ncopies | ( | void | ) | [inline] |
Definition at line 82 of file vector_shapex.h.
| unsigned int vector_shapex::get_ncopies | ( | void | ) | [inline] |
Definition at line 86 of file vector_shapex.h.
Referenced by ivector::get_ncopies(), and dvector::get_ncopies().
| void* vector_shapex::get_truepointer | ( | void | ) | [inline] |
Returns address of first element in the vector.
Definition at line 54 of file vector_shapex.h.
Referenced by i4_array::deallocate(), and i5_array::deallocate().
| unsigned int vector_shapex::incr_ncopies | ( | void | ) | [inline] |
Definition at line 90 of file vector_shapex.h.
| int vector_shapex::indexmax | ( | void | ) | [inline] |
Definition at line 98 of file vector_shapex.h.
Referenced by i4_array::hslicemax(), i5_array::hslicemax(), i4_array::indexmax(), and i5_array::indexmax().
| int vector_shapex::indexmin | ( | void | ) | [inline] |
Definition at line 94 of file vector_shapex.h.
Referenced by i4_array::hslicemin(), i5_array::hslicemin(), i4_array::indexmin(), and i5_array::indexmin().
| void vector_shapex::shift | ( | int | min | ) |
Description not yet available.
Definition at line 33 of file shape.cpp.
Referenced by ivector::shift(), dvector::shift(), and dvar_vector::shift().
friend class dvar_vector [friend] |
Definition at line 108 of file vector_shapex.h.
friend class dvector [friend] |
Definition at line 106 of file vector_shapex.h.
friend class ivector [friend] |
Definition at line 107 of file vector_shapex.h.
friend class lvector [friend] |
Definition at line 104 of file vector_shapex.h.
friend class ptr_vector [friend] |
Definition at line 105 of file vector_shapex.h.
friend class subdvector [friend] |
Definition at line 103 of file vector_shapex.h.
Maximum valid subscript.
Definition at line 68 of file vector_shapex.h.
Referenced by indexmax(), shift(), and dvector::testmax().
Minimum valid subscript.
Definition at line 67 of file vector_shapex.h.
Referenced by indexmin(), shift(), and dvector::testmin().
| unsigned int vector_shapex::ncopies |
Copy counter to enable shallow copies.
Initialized to zero in constructor. Incremented by 1 in copy constructor. Decremented by 1 in destructor. Memory is freed when value of ncopies reaches zero in the destructor.
Definition at line 76 of file vector_shapex.h.
Referenced by imatrix::allocate(), dvector::allocatec(), dvar_vector::allocatec(), df1b2vector::copy(), df3_one_vector::deallocate(), df1_one_vector::deallocate(), df1_two_vector::deallocate(), df1_three_vector::deallocate(), df3_three_vector::deallocate(), df3_two_vector::deallocate(), df1b2vector::deallocate(), dvar_vector::deallocate(), i4_array::deallocate(), i5_array::deallocate(), decr_ncopies(), df1_one_vector::df1_one_vector(), df1_three_vector::df1_three_vector(), df1_two_vector::df1_two_vector(), df1b23array::df1b23array(), df1b2vector::df1b2vector(), df3_one_vector::df3_one_vector(), df3_three_vector::df3_three_vector(), df3_two_vector::df3_two_vector(), dvar_vector::dvar_vector(), dvector::dvector(), get_ncopies(), i4_array::i4_array(), i5_array::i5_array(), incr_ncopies(), ivector::ivector(), dvector::operator=(), dvar_vector::operator=(), dvector::safe_deallocate(), ivector::safe_deallocate(), dvector::shallow_copy(), ivector::shallow_copy(), dvar_vector::shallow_copy(), df1b23array::~df1b23array(), dvector::~dvector(), and ivector::~ivector().
| void* vector_shapex::trueptr |
Address of first element in the vector.
Value set in allocate(...) function.
Definition at line 79 of file vector_shapex.h.
Referenced by df3_one_vector::deallocate(), df1_one_vector::deallocate(), df1_two_vector::deallocate(), df1_three_vector::deallocate(), dvector::deallocate(), ivector::deallocate(), df3_three_vector::deallocate(), df3_two_vector::deallocate(), df1b2vector::deallocate(), df1b23array::deallocate(), dvar_vector::deallocate(), and get_truepointer().
|
|
Generated on Tue Mar 8 2016 19:51:41 for ADMB Documentation by 1.8.0
|