Field3D
detail::LoadFields< 1 > Struct Reference

#include <FieldGroup.h>

Public Member Functions

 LoadFields (LoadFieldsParams &params)
 
template<typename T>
void operator() (T)
 

Public Attributes

LoadFieldsParamsm_p
 

Detailed Description

Definition at line 133 of file FieldGroup.h.

Constructor & Destructor Documentation

◆ LoadFields()

detail::LoadFields< 1 >::LoadFields ( LoadFieldsParams & params)
inline

Definition at line 136 of file FieldGroup.h.

137 : m_p(params)
138 { }
LoadFieldsParams & m_p
Definition FieldGroup.h:166

References m_p.

Member Function Documentation

◆ operator()()

template<typename T>
void detail::LoadFields< 1 >::operator() ( T )
inline

Definition at line 141 of file FieldGroup.h.

142 {
143 // Load all fields of type T
145 m_p.in.readScalarLayers<T>(m_p.name, m_p.attribute);
146 // Add the fields to the result
148 m_p.results.push_back(ptr);
149 }
150 // Load 'min' fields
152 m_p.in.readScalarLayers<T>(m_p.name, m_p.attribute + k_minSuffix);
153 // Add the fields to the result
155 m_p.minResults.push_back(ptr);
156 }
157 // Load 'max' fields
159 m_p.in.readScalarLayers<T>(m_p.name, m_p.attribute + k_maxSuffix);
160 // Add the fields to the result
162 m_p.maxResults.push_back(ptr);
163 }
164 }

References detail::k_maxSuffix, detail::k_minSuffix, and m_p.

Member Data Documentation

◆ m_p

Definition at line 166 of file FieldGroup.h.

Referenced by LoadFields(), and operator()().


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