Object-oriented Scientific Computing Library: Version 0.910
Protected Member Functions
uvector_base_tlate< data_t > Class Template Reference

A base class for uvector and uvector_view. More...

#include <uvector_tlate.h>

Inheritance diagram for uvector_base_tlate< data_t >:
uvector_const_view_tlate< data_t > uvector_tlate< data_t > uvector_view_tlate< data_t > ufvector< N > umatrix_row_tlate< data_t > uvector_array_tlate< data_t > uvector_subvector_tlate< data_t >

Detailed Description

template<class data_t>
class uvector_base_tlate< data_t >

This class pruvides a base class for uvector and uvector_view, mostly useful for creating function arguments which accept either uvector or uvector_view.

Definition at line 286 of file uvector_tlate.h.

Public Member Functions

Copy constructors
 uvector_base_tlate (uvector_base_tlate &v)
 Copy constructor - create a new view of the same vector.
uvector_base_tlateoperator= (uvector_base_tlate &v)
 Copy constructor - create a new view of the same vector.
Get and set methods
data_t & operator[] (size_t i)
 Array-like indexing.
const data_t & operator[] (size_t i) const
 Array-like indexing.
data_t & operator() (size_t i)
 Array-like indexing.
const data_t & operator() (size_t i) const
 Array-like indexing.
data_t * get_ptr (size_t i)
 Get pointer (with optional range-checking)
int set (size_t i, data_t val)
 Set (with optional range-checking)
int set_all (data_t val)
 Set all of the value to be the value val.
Arithmetic
uvector_base_tlate< data_t > & operator+= (const uvector_base_tlate< data_t > &x)
 operator+=
uvector_base_tlate< data_t > & operator-= (const uvector_base_tlate< data_t > &x)
 operator-=
uvector_base_tlate< data_t > & operator+= (const data_t &y)
 operator+=
uvector_base_tlate< data_t > & operator-= (const data_t &y)
 operator-=
uvector_base_tlate< data_t > & operator*= (const data_t &y)
 operator*=

Protected Member Functions

 uvector_base_tlate ()
 Empty constructor for use by children.

Constructor & Destructor Documentation

template<class data_t>
uvector_base_tlate< data_t >::uvector_base_tlate ( ) [inline, protected]

Definition at line 473 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.