JEMRIS  2.8.1
open-source MRI simulations
List of all members | Public Member Functions | Public Attributes
Repository Struct Reference

Signal repository structure. More...

#include <Signal.h>

Public Member Functions

 Repository ()
 Construct.
 
 ~Repository ()
 Destruct.
 
long Size ()
 Size of bulk data (i.e. number of elemments of m_data) More...
 
double * Data ()
 Reference to data repository. More...
 
double * Times ()
 Reference to time point repository. More...
 
const long Samples () const
 Number of samples. More...
 
const int Compartments () const
 Number of compartments. More...
 
const int NProps () const
 Number of properties per compartment. More...
 
const double TP (long l) const
 Time of given sample index. More...
 
double & TP (long l)
 Reference to time of given sample index. More...
 
const long Position (long l) const
 Reference to data of given sample index.
 
const void Initialize (long samples, int compartments)
 Occupy RAM and set some dimensions.
 
double & operator[] (long pos)
 Value at position in store. More...
 
const double operator[] (long pos) const
 Access to position in store. More...
 
double & at (long pos)
 Value at position in store. More...
 
const double at (long pos) const
 Access to position in store. More...
 

Public Attributes

long m_noofsamples
 
int m_noofcompartments
 
std::vector< double > m_times
 
std::vector< double > m_data
 

Detailed Description

Signal repository structure.

Member Function Documentation

double& Repository::at ( long  pos)
inline

Value at position in store.

Parameters
posDesired position
Returns
Reference to pos-th value in the store

+ Here is the caller graph for this function:

const double Repository::at ( long  pos) const
inline

Access to position in store.

Parameters
posDesired position
Returns
Reference to pos-th value in the store
const int Repository::Compartments ( ) const
inline

Number of compartments.

Returns
Number of compartments

+ Here is the caller graph for this function:

double* Repository::Data ( )
inline

Reference to data repository.

Returns
Refernce to data repository

+ Here is the caller graph for this function:

const int Repository::NProps ( ) const
inline

Number of properties per compartment.

Returns
Number of properties per compartment

+ Here is the caller graph for this function:

double& Repository::operator[] ( long  pos)
inline

Value at position in store.

Parameters
posDesired position
Returns
Reference to pos-th value in the store
const double Repository::operator[] ( long  pos) const
inline

Access to position in store.

Parameters
posDesired position
Returns
Reference to pos-th value in the store
const long Repository::Samples ( ) const
inline

Number of samples.

Returns
Number of samples

+ Here is the caller graph for this function:

long Repository::Size ( )
inline

Size of bulk data (i.e. number of elemments of m_data)

Returns
Size

+ Here is the caller graph for this function:

double* Repository::Times ( )
inline

Reference to time point repository.

Returns
Refernce to time point repository

+ Here is the caller graph for this function:

const double Repository::TP ( long  l) const
inline

Time of given sample index.

Returns
Time of given sample index

+ Here is the caller graph for this function:

double& Repository::TP ( long  l)
inline

Reference to time of given sample index.

Returns
reference to the time point of given sample index

Member Data Documentation

std::vector<double> Repository::m_data

Data (column major)

long Repository::m_noofsamples

Number of samples

std::vector<double> Repository::m_times

< Number of compartments


The documentation for this struct was generated from the following file:

-- last change 17.06.2016 | Tony Stoecker | Imprint --