Object-oriented Scientific Computing Library: Version 0.910
Public Member Functions | Friends
uvector_tlate< data_t > Class Template Reference

A vector with unit stride. More...

#include <uvector_tlate.h>

Inheritance diagram for uvector_tlate< data_t >:
uvector_base_tlate< data_t > uvector_const_view_tlate< data_t > ufvector< N >

Detailed Description

template<class data_t>
class uvector_tlate< data_t >

There are several useful methods which are defined in the parent class, uvector_view_tlate . There is also an << operator for this class documented "Functions" section of uvector_tlate.h.

Definition at line 621 of file uvector_tlate.h.

Public Member Functions

int sort_unique ()
 Sort the vector and ensure all elements are unique by removing duplicates.
Standard constructor
 uvector_tlate (size_t n=0)
 Create an uvector of size n with owner as 'true'.
Copy constructors
 uvector_tlate (const uvector_tlate &v)
 Deep copy constructor - allocate new space and make a copy.
 uvector_tlate (const uvector_const_view_tlate< data_t > &v)
 Deep copy constructor - allocate new space and make a copy.
uvector_tlateoperator= (const uvector_tlate &v)
 Deep copy constructor - if owner is true, allocate space and make a new copy, otherwise, just copy into the view.
uvector_tlateoperator= (const uvector_const_view_tlate< data_t > &v)
 Deep copy constructor - if owner is true, allocate space and make a new copy, otherwise, just copy into the view.
Memory allocation
int allocate (size_t nsize)
 Allocate memory for size n after freeing any memory presently in use.
int free ()
 Free the memory.
Other methods
int erase (size_t ix)
 Erase an element from the array.

Friends

class uvector_view_tlate< data_t >

Member Function Documentation

template<class data_t>
int uvector_tlate< data_t >::allocate ( size_t  nsize) [inline]

If nsize is zero, this only frees the memory and allocates no additional memory.

Definition at line 784 of file uvector_tlate.h.

template<class data_t>
int uvector_tlate< data_t >::free ( ) [inline]

This function will safely do nothing if used without first allocating memory or if called multiple times in succession.

Definition at line 805 of file uvector_tlate.h.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.