DAQ  1.0.0
Data Acquisition System (basic demo)
Signals | Public Member Functions | Properties | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
VarsModel Class Reference

#include <varsmodel.h>

Inheritance diagram for VarsModel:
Inheritance graph
[legend]
Collaboration diagram for VarsModel:
Collaboration graph
[legend]

Signals

void varsChanged ()
 

Public Member Functions

 VarsModel (Client *cl, QObject *parent=nullptr)
 
QQmlListProperty< VarModelgetVars ()
 

Properties

QQmlListProperty< VarModelvars
 

Private Member Functions

void clear ()
 
void add_var (decltype(m_vars)::value_type var)
 
auto var_at (int index)
 
int vars_size ()
 

Static Private Member Functions

static void add_var (decltype(m_qml_vars)*property, decltype(m_vars)::value_type var)
 
static auto var_at (decltype(m_qml_vars)*property, int index)
 
static int vars_size (decltype(m_qml_vars)*property)
 
static void clear_vars (decltype(m_qml_vars)*)
 

Private Attributes

std::vector< VarModel * > m_vars
 
QQmlListProperty< decltype(std::remove_pointer< decltype(m_vars)::value_type >::type())> m_qml_vars
 
Clientm_cl
 

Constructor & Destructor Documentation

VarsModel::VarsModel ( Client cl,
QObject parent = nullptr 
)
explicit

Member Function Documentation

void VarsModel::add_var ( decltype(m_vars)::value_type  var)
private
static void VarsModel::add_var ( decltype(m_qml_vars)*  property,
decltype(m_vars)::value_type  var 
)
inlinestaticprivate

Here is the call graph for this function:

void VarsModel::clear ( )
inlineprivate
static void VarsModel::clear_vars ( decltype(m_qml_vars)*  )
inlinestaticprivate
QQmlListProperty<VarModel> VarsModel::getVars ( )
inline

Here is the call graph for this function:

auto VarsModel::var_at ( int  index)
inlineprivate
static auto VarsModel::var_at ( decltype(m_qml_vars)*  property,
int  index 
)
inlinestaticprivate

Here is the call graph for this function:

int VarsModel::vars_size ( )
inlineprivate
static int VarsModel::vars_size ( decltype(m_qml_vars)*  property)
inlinestaticprivate

Here is the call graph for this function:

Here is the caller graph for this function:

void VarsModel::varsChanged ( )
signal

Member Data Documentation

Client* VarsModel::m_cl
private
QQmlListProperty<decltype( std::remove_pointer<decltype(m_vars)::value_type>::type())> VarsModel::m_qml_vars
private
std::vector<VarModel *> VarsModel::m_vars
private

Property Documentation

QQmlListProperty<VarModel> VarsModel::vars
read

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