API Documentation
Loading...
Searching...
No Matches
DesignParameterAccumulator Class Referencefinal

#include <DesignParameterAccumulator.h>

Inheritance diagram for DesignParameterAccumulator:
[legend]
Collaboration diagram for DesignParameterAccumulator:
[legend]

Public Types

enum  AccumulateMode {
  e_get_max_min , e_get_average , e_get_variance , e_get_std_dev ,
  e_get_strings , e_get_total , e_get_indices , e_get_floats
}
 
- Public Types inherited from ModelIterator
enum  ParseResult { e_continue_parsing , e_do_not_parse_children , e_finish_parsing }
 

Public Member Functions

 DesignParameterAccumulator (const DesignParameter &design_parameter, BitFlag mode=BitFlag(0))
 
void accumulate (fltp08 value, const uint01 &dim=X, bool to_unit=true)
 
ParseResult process (Model &model) final override
 
ParseResult process (Model &model, Geometry &geo) final override
 
ParseResult process (Model &model, Material &mat) final override
 
void _parseAll () final override
 
void accumulate (const DesignObject &object, fltp08 known_avg=Constant< fltp08 >::NaN)
 
void setToDefaults (const DesignObject &object)
 
DesignObject::DesignObjectType type ()
 
void clear ()
 
virtual ParseResult postProcess (Model &m) final override
 
void addToTotal (fltp08 value)
 
void setCollectVerticesByPrimitive (PrimitiveProperty vertex_collection_primitive)
 
- Public Member Functions inherited from ModelIterator
 ModelIterator ()
 
 ModelIterator (const Model &model)
 
 ModelIterator (Buffer< Model > models)
 
void parseAll (const Model &model)
 
void parseAll (const Buffer< Model > &models)
 
void parseAll ()
 
ParseResult parseNext ()
 
Model currentModel () const
 

Public Attributes

Matrix< fltp08transform = Matrix<fltp08>(1.0)
 
DesignParameter parameter
 
ConstPointer< Unitoverride_unit
 
fltp08 average = Constant<fltp08>::NaN
 
BitFlag accumulate_mode
 
fltp08 max = Constant<fltp08>::Min
 
fltp08 min = Constant<fltp08>::Max
 
fltp08 total_value = 0.0
 
fltp08 upper_variance = 0.0
 
fltp08 lower_variance = 0.0
 
fltp08 upper_std_dev = 0.0
 
fltp08 lower_std_dev = 0.0
 
uint04 total_upper = 0
 
uint04 total_lower = 0
 
uint04 total_count = 0
 
uint04 min_num_of_decimals = 0
 
uint04 max_num_of_decimals = Constant<uint04>::Max
 
uint04 min_digits = 0
 
uint04 max_num_of_values = Constant<uint04>::Max
 
String default_value
 
bool is_normal_prop = false
 
bool add_commas = false
 
bool recursive_matrix = false
 
bool use_defaults = false
 
bool include_unit_symbols = true
 
Buffer< Stringstring_values
 
Buffer< uint04indices
 
Buffer< fltp08float_values
 
String string_cache
 
- Public Attributes inherited from ModelIterator
std::function< bool(const Model &, const Geometry &)> geo_filter
 
std::function< bool(const Model &, const Material &)> material_filter
 
std::function< bool(const Model &)> model_filter
 
bool process_material = false
 
bool process_geometry = true
 
bool process_model = true
 
bool post_process_model = false
 
bool depth_first = true
 
bool is_recursive = true
 
bool use_unit = false
 
PrimitiveProperty material_property = PrimitiveProperty::Solid
 

Protected Member Functions

bool _setupValues (const DesignObject &object)
 
void _accumulate (const DesignObject &object)
 
Matrix< fltp08_matrix (const DesignObject &object)
 
void _accumulateVertices (const Geometry &geo, const TableColumn &column)
 
void _accumulate (const DesignObject &object, uint04 row, const TableColumn &column)
 
void _accumulate (const String &data)
 
- Protected Member Functions inherited from ModelIterator
void removeFromPostProcessStack ()
 
Model popNextModel ()
 

Protected Attributes

fltp08 total_value_c = 0.0
 
bool is_matrix_prop = false
 
bool is_design_index = false
 
bool is_vertex_index = false
 
bool is_special_field = false
 
PrimitiveProperty m_vertex_collection_primitive = PrimitiveProperty::Vertices
 
DesignObject::DesignObjectType m_design_type = DesignObject::DesignObjectType::e_model
 
uint04 property_index = Constant<uint04>::NaN
 
- Protected Attributes inherited from ModelIterator
Buffer< Modelm_model_stack
 
Buffer< uint04m_model_parent_child_count
 
Buffer< Modelm_model_parent_stack
 

Member Enumeration Documentation

◆ AccumulateMode

Enumerator
e_get_max_min 
e_get_average 
e_get_variance 
e_get_std_dev 
e_get_strings 
e_get_total 
e_get_indices 
e_get_floats 

Constructor & Destructor Documentation

◆ DesignParameterAccumulator()

DesignParameterAccumulator ( const DesignParameter & design_parameter,
BitFlag mode = BitFlag(0) )
explicit

Member Function Documentation

◆ _accumulate() [1/3]

void _accumulate ( const DesignObject & object)
protected

◆ _accumulate() [2/3]

void _accumulate ( const DesignObject & object,
uint04 row,
const TableColumn & column )
protected

◆ _accumulate() [3/3]

void _accumulate ( const String & data)
protected

◆ _accumulateVertices()

void _accumulateVertices ( const Geometry & geo,
const TableColumn & column )
protected

◆ _matrix()

Matrix< fltp08 > _matrix ( const DesignObject & object)
protected

◆ _parseAll()

void _parseAll ( )
finaloverridevirtual

Reimplemented from ModelIterator.

◆ _setupValues()

bool _setupValues ( const DesignObject & object)
protected

◆ accumulate() [1/2]

void accumulate ( const DesignObject & object,
fltp08 known_avg = Constant<fltp08>::NaN )

◆ accumulate() [2/2]

void accumulate ( fltp08 value,
const uint01 & dim = X,
bool to_unit = true )

◆ addToTotal()

void addToTotal ( fltp08 value)

◆ clear()

void clear ( )

◆ postProcess()

DesignParameterSetter::ParseResult postProcess ( Model & m)
finaloverridevirtual

Reimplemented from ModelIterator.

◆ process() [1/3]

ModelIterator::ParseResult process ( Model & model)
finaloverridevirtual

Reimplemented from ModelIterator.

◆ process() [2/3]

ModelIterator::ParseResult process ( Model & model,
Geometry & geo )
finaloverridevirtual

Reimplemented from ModelIterator.

◆ process() [3/3]

ModelIterator::ParseResult process ( Model & model,
Material & mat )
finaloverridevirtual

Reimplemented from ModelIterator.

◆ setCollectVerticesByPrimitive()

void setCollectVerticesByPrimitive ( PrimitiveProperty vertex_collection_primitive)

◆ setToDefaults()

void setToDefaults ( const DesignObject & object)

◆ type()

Member Data Documentation

◆ accumulate_mode

BitFlag accumulate_mode

◆ add_commas

bool add_commas = false

◆ average

fltp08 average = Constant<fltp08>::NaN

◆ default_value

String default_value

◆ float_values

Buffer<fltp08> float_values

◆ include_unit_symbols

bool include_unit_symbols = true

◆ indices

Buffer<uint04> indices

◆ is_design_index

bool is_design_index = false
protected

◆ is_matrix_prop

bool is_matrix_prop = false
protected

◆ is_normal_prop

bool is_normal_prop = false

◆ is_special_field

bool is_special_field = false
protected

◆ is_vertex_index

bool is_vertex_index = false
protected

◆ lower_std_dev

fltp08 lower_std_dev = 0.0

◆ lower_variance

fltp08 lower_variance = 0.0

◆ m_design_type

◆ m_vertex_collection_primitive

PrimitiveProperty m_vertex_collection_primitive = PrimitiveProperty::Vertices
protected

◆ max

fltp08 max = Constant<fltp08>::Min

◆ max_num_of_decimals

uint04 max_num_of_decimals = Constant<uint04>::Max

◆ max_num_of_values

uint04 max_num_of_values = Constant<uint04>::Max

◆ min

fltp08 min = Constant<fltp08>::Max

◆ min_digits

uint04 min_digits = 0

◆ min_num_of_decimals

uint04 min_num_of_decimals = 0

◆ override_unit

ConstPointer<Unit> override_unit

◆ parameter

DesignParameter parameter

◆ property_index

uint04 property_index = Constant<uint04>::NaN
protected

◆ recursive_matrix

bool recursive_matrix = false

◆ string_cache

String string_cache

◆ string_values

Buffer<String> string_values

◆ total_count

uint04 total_count = 0

◆ total_lower

uint04 total_lower = 0

◆ total_upper

uint04 total_upper = 0

◆ total_value

fltp08 total_value = 0.0

◆ total_value_c

fltp08 total_value_c = 0.0
protected

◆ transform

Matrix<fltp08> transform = Matrix<fltp08>(1.0)

◆ upper_std_dev

fltp08 upper_std_dev = 0.0

◆ upper_variance

fltp08 upper_variance = 0.0

◆ use_defaults

bool use_defaults = false

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