BIE::State Class Reference

The vector of state parameters and its current active length which may vary for storage efficiency. More...

#include <State.h>

Inheritance diagram for BIE::State:
Collaboration diagram for BIE::State:

List of all members.

Public Member Functions

 ~State ()
 Destructor.
void setVector (vector< double > v)
 Set the vector.
void setVector (vector< double > v, int n)
 Set the vector and the length.
double & operator[] (unsigned int i) const
 Access to vector elements.
void setSize (unsigned int n)
 Set the length of the parameter vector The active length may be as large as the storage size, otherwise an exception is thrown.
unsigned int size ()
 Get the current active length of the parameter vector.
 State ()
 Constructors.
 State (int n)
 State (vector< double > v)
 State (vector< double > v, int n)
 State (const State &s)
Stateoperator= (const State &s)
 Copy constructors.
Stateoperator= (const vector< double > &v)

Friends

class boost::serialization::access


Detailed Description

The vector of state parameters and its current active length which may vary for storage efficiency.

Constructor & Destructor Documentation

BIE::State::State (  )  [inline]

Constructors.

len is the data length, dsize is the storage length. Obviously, $len\le dsize$. This flexibility saves deallocating and reallocating storage with new and delete.


The documentation for this class was generated from the following file:
  • /home/weinberg/src/BIE/include/State.h

Send suggestions, questions, and feedback to WEINBERG at ASTRO dot UMASS dot EDU.
Documentation generated at Fri Mar 26 00:35:13 2010 by doxygen