19 #include <iostream.hpp>
25 long int _farptr_tolong(
void * px);
26 long int farptr_tolong(
void *);
42 cout <<
"deleting an ivector with address " << _farptr_tolong(
v)
53 cerr <<
" Trying to delete NULL pointer in ~ivector\n";
61 cout <<
"Really deleting an ivector with address "
62 << _farptr_tolong(
v) <<
"\n";
75 cout <<
"Copy constructor called for ivector with address "
76 << _farptr_tolong(t.
v) <<
"\n";
95 cerr <<
" Array sizes do not match in "
96 "ptr_vector operator =(const ivector&)\n";
135 cerr <<
" Error trying to allocate memory for ivector\n";
137 v = (
void**)
new void_ptr [(
size_t) (nch-ncl+1)];
139 cout <<
"Created a ivector with address " << _farptr_tolong(
v) <<
"\n";
143 cerr <<
" Error trying to allocate memory for ptr_vector\n";
169 cerr <<
"array bound exceeded -- index too high in ivector::operator[]";
174 cerr <<
"array bound exceeded -- index too low in ivector::operator[]";
188 cerr <<
"array bound exceeded -- index too high in ivector::operator[]";
193 cerr <<
"array bound exceeded -- index too low in ivector::operator[]";
205 ostream & s = (ostream&) _s;
206 for (
int i=v.indexmin();i<=v.indexmax();i++)
208 s << v.elem(i) <<
" ";
void initialize()
Initialize elements in pointer array to null.
void *& operator[](int i)
Description not yet available.
Description not yet available.
#define ADUNCONST(type, obj)
Creates a shallow copy of obj that is not CONST.
Description not yet available.
prnstream & endl(prnstream &)
int operator()(void) const
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
void allocate(int, int)
Allocate array [ncl,...,nch].
ptr_vector & operator=(const ptr_vector &t)
Copy values from _t to this.
Description not yet available.
ostream & operator<<(const ostream &_s, preshowpoint p)
Description not yet available.
ptr_vector()
Default constructor.