Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
GenericSigVec_mem Class Reference

Managed memory version of UniversalSigVec. More...

#include <MedSignals.h>

Inheritance diagram for GenericSigVec_mem:
GenericSigVec

Public Member Functions

void set (const GenericSigVec &s)
 
- Public Member Functions inherited from GenericSigVec
int n_time_channels () const
 
int n_val_channels () const
 
int time_unit () const
 
int Time_ch_vec (int idx, int chan, void *data_) const
 
void SetVal_ch_vec (int idx, int chan, float _val, void *data_)
 
void Set (int idx, int *times, float *vals)
 
void Set (int idx, int *times, float *vals, void *data_)
 
size_t size () const
 
void init (const SignalInfo &info)
 
void set_data (void *_data, int _len)
 
 GenericSigVec (const string &signalSpec, int time_unit=MedTime::Undefined)
 
 GenericSigVec (SigType sigtype, int time_unit=MedTime::Undefined)
 
 GenericSigVec (const GenericSigVec &other)
 
void copy_signal_metadata (const GenericSigVec &other)
 
GenericSigVecoperator= (const GenericSigVec &other)
 
void init_from_spec (const string &signalSpec)
 
void init_from_sigtype (SigType sigtype)
 
void init_from_repo (MedRepository &repo, int sid)
 
template<typename T = int>
Time (int idx, int chan) const
 
template<typename T = int>
Time (int idx, int chan, const void *data_) const
 
template<typename T = int>
void setTime (int idx, int chan, T new_val)
 
template<typename T = int>
void setTime (int idx, int chan, T new_val, void *data_)
 
template<typename T = float>
Val (int idx, int chan) const
 
template<typename T = float>
Val (int idx) const
 
template<typename T = float>
Val (int idx, int chan, const void *data_) const
 
template<typename T = float>
void setVal (int idx, int chan, T new_val)
 
template<typename T = float>
void setVal (int idx, int chan, T new_val, void *data_)
 
int Time (int idx) const
 
float Val (int idx) const
 
int TimeU (int idx, int to_time_unit) const
 
int Date (int idx) const
 
int Years (int idx) const
 
int Months (int idx) const
 
int Days (int idx) const
 
int Hours (int idx) const
 
int Minutes (int idx) const
 
int TimeU (int idx, int chan, int to_time_unit) const
 
int Date (int idx, int chan) const
 
int Years (int idx, int chan) const
 
int Months (int idx, int chan) const
 
int Days (int idx, int chan) const
 
int Hours (int idx, int chan) const
 
int Minutes (int idx, int chan) const
 
template<class S >
void set_funcs () const
 
SigType get_type () const
 
int get_index_gt_time_bound (int time_chan, int time_bound)
 
int get_index_ge_time_bound (int time_chan, int time_bound)
 
bool compareTimeLt (const void *data1, int idx1, const void *data2, int idx2) const
 
int compare_elements (const void *elem1, const void *elem2)
 
bool compare_gsv_elements (const GSVElement &e1, const GSVElement &e2)
 
int inplace_sort_data (const void *data, int nelem)
 
bool compareData (int idx, const GenericSigVec &other_gsv, int other_idx) const
 
string get_signal_generic_spec () const
 

Data Fields

bool manage
 
string signal_spec
 if true manages the memory
 
- Data Fields inherited from GenericSigVec
void * data
 
int len
 
int struct_size
 
int n_time
 
int n_val
 
std::array< int, GENERIC_SIG_VEC_MAX_CHANNELS > time_channel_offsets
 
std::array< int, GENERIC_SIG_VEC_MAX_CHANNELS > val_channel_offsets
 
std::array< unsigned char, GENERIC_SIG_VEC_MAX_CHANNELS > time_channel_types
 
std::array< unsigned char, GENERIC_SIG_VEC_MAX_CHANNELS > val_channel_types
 
int sid
 

Additional Inherited Members

- Static Public Member Functions inherited from GenericSigVec
static string get_type_generic_spec (SigType t)
 
- Protected Attributes inherited from GenericSigVec
const SigType type = T_Generic
 
int _time_unit = MedTime::Undefined
 

Detailed Description

Managed memory version of UniversalSigVec.

for example when allocating new virtual records

Field Documentation

◆ signal_spec

string GenericSigVec_mem::signal_spec

if true manages the memory

stores the signal spec


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