JEMRIS 2.9.2
open-source MRI simulations
Loading...
Searching...
No Matches
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)
 
double * Data ()
 Reference to data repository.
 
double * Times ()
 Reference to time point repository.
 
const long Samples () const
 Number of samples.
 
const int Compartments () const
 Number of compartments.
 
const int NProps () const
 Number of properties per compartment.
 
const double TP (long l) const
 Time of given sample index.
 
double & TP (long l)
 Reference to time of given sample index.
 
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.
 
const double operator[] (long pos) const
 Access to position in store.
 
double & at (long pos)
 Value at position in store.
 
const double at (long pos) const
 Access to position in store.
 

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

◆ at() [1/2]

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 call graph for this function:
+ Here is the caller graph for this function:

◆ at() [2/2]

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

◆ Compartments()

const int Repository::Compartments ( ) const
inline

Number of compartments.

Returns
Number of compartments
+ Here is the caller graph for this function:

◆ Data()

double * Repository::Data ( )
inline

Reference to data repository.

Returns
Refernce to data repository
+ Here is the caller graph for this function:

◆ NProps()

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:

◆ operator[]() [1/2]

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

Value at position in store.

Parameters
posDesired position
Returns
Reference to pos-th value in the store
+ Here is the call graph for this function:

◆ operator[]() [2/2]

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

◆ Samples()

const long Repository::Samples ( ) const
inline

Number of samples.

Returns
Number of samples
+ Here is the caller graph for this function:

◆ Size()

long Repository::Size ( )
inline

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

Returns
Size
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Times()

double * Repository::Times ( )
inline

Reference to time point repository.

Returns
Refernce to time point repository
+ Here is the caller graph for this function:

◆ TP() [1/2]

double & Repository::TP ( long l)
inline

Reference to time of given sample index.

Returns
reference to the time point of given sample index

◆ TP() [2/2]

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:

Member Data Documentation

◆ m_data

std::vector<double> Repository::m_data

Data (column major)

◆ m_noofsamples

long Repository::m_noofsamples

Number of samples

◆ m_times

std::vector<double> Repository::m_times

< Number of compartments


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

-- last change 03.01.2025 | Tony Stoecker | Imprint | Data Protection --