54 std::memcpy((
void *)(this->p_memory), (
const void *)(a.
p_memory), this->n() *
sizeof(T));
81 copy_c =
Lof(this->
n(), oldn);
82 for (q=0; q<copy_c*
sizeof(T); q++)
83 ((
char *)this->
p_memory)[q] = ((
char *)old_vals)[q];
86 for (
int i=copy_c; i < this->
n(); ++i)
91 delete [] (old_vals - old_offset);
107 for (q=0; q<num*
sizeof(T); q++)
108 ((
char *)dest)[q] = ((
char *)(this->
p_memory+offset))[q];
111 for(
int i=0; i<num; i++)
127 for (q=0; q<num*
sizeof(T); q++)
128 ((
char *)(this->
p_memory+offset))[q] = ((
char *)(src))[q];
131 for(
int i=0; i<num; i++)
144 std::memset((
void *)(this->
p_memory), 0, this->
n() *
sizeof(T));
EST_TSimpleVector()
default constructor
void zero(void)
Fill entire array with 0 bits.
INLINE ssize_t num_columns() const
number of items in vector.
INLINE const T & a_no_check(ssize_t n) const
read-only const access operator: without bounds checking
bool EST_vector_bounds_check(int c, int num_columns, bool set)
void default_vals()
sets data and length to default values (0 in both cases).
const EST_DMatrix * def_val
void copy_section(T *dest, int offset=0, int num=-1) const
EST_TVector< T > & copy(EST_TVector< T > a, const EST_TList< T > &in)
EST_TSimpleVector & operator=(const EST_TSimpleVector< T > &s)
assignment operator
void just_resize(int new_cols, T **old_vals)
resize the memory and reset the bounds, but don't set values.
void set_section(const T *src, int offset=0, int num=-1)
INLINE ssize_t n() const
number of items in vector.
void resize(int n, int set=1)
resize vector
ssize_t p_offset
How to access the memory.