The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::StatisticDef::ExpressionArg Struct Reference

Intermediate type for minimizing the number of distinct constructors that must be created for this class because any constructor can take an Expression object or a string representing an expression. More...

#include <StatisticDef.hpp>

Public Member Functions

 ExpressionArg (const std::string &str)
 
 ExpressionArg (const char str[])
 
 ExpressionArg (const sparta::statistics::expression::Expression &expr)
 
 ExpressionArg (const ExpressionArg &rhp)
 

Public Attributes

std::unique_ptr< sparta::statistics::expression::Expressionexpr_obj
 
std::string expr_str
 

Detailed Description

Intermediate type for minimizing the number of distinct constructors that must be created for this class because any constructor can take an Expression object or a string representing an expression.

Definition at line 52 of file StatisticDef.hpp.

Constructor & Destructor Documentation

◆ ExpressionArg() [1/4]

sparta::StatisticDef::ExpressionArg::ExpressionArg ( const std::string &  str)
inline

Definition at line 54 of file StatisticDef.hpp.

◆ ExpressionArg() [2/4]

sparta::StatisticDef::ExpressionArg::ExpressionArg ( const char  str[])
inline

Definition at line 58 of file StatisticDef.hpp.

◆ ExpressionArg() [3/4]

sparta::StatisticDef::ExpressionArg::ExpressionArg ( const sparta::statistics::expression::Expression expr)
inline

Definition at line 62 of file StatisticDef.hpp.

◆ ExpressionArg() [4/4]

sparta::StatisticDef::ExpressionArg::ExpressionArg ( const ExpressionArg rhp)
inline

Definition at line 67 of file StatisticDef.hpp.

Member Data Documentation

◆ expr_obj

std::unique_ptr<sparta::statistics::expression::Expression> sparta::StatisticDef::ExpressionArg::expr_obj

Definition at line 72 of file StatisticDef.hpp.

◆ expr_str

std::string sparta::StatisticDef::ExpressionArg::expr_str

Definition at line 73 of file StatisticDef.hpp.


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