mmCEsim 0.3.0
mmWave Channel Estimation Simulation
Macro Struct Reference

#include <macro.h>

Collaboration diagram for Macro:
[legend]

Public Member Functions

bool replaceXY (std::string &r) const
 
std::string replaceMacro (const std::string &s, int job_cnt, int alg_cnt) const
 
std::string replace (const std::string &s, const std::string &key, const std::string &val, Type type=Type::PRE) const
 RegEx replace. More...
 

Public Attributes

unsigned job_num = 0
 
std::vector< unsigned > alg_num
 
std::vector< std::vector< std::string > > alg_names
 
std::vector< std::vector< std::string > > alg_params
 
std::vector< std::vector< std::vector< std::pair< std::string, std::string > > > > alg_custom
 
std::map< std::string, std::string > custom_priority
 
std::map< std::string, std::string > custom
 
std::map< std::string, std::string > custom_in_alg
 
std::map< std::string, std::string > beamforming
 
std::string _cascaded_channel
 
XY_Size _N
 
XY_Size _B
 
XY_Size _G
 
Lang lang = Lang::CPP
 

Private Types

enum class  Type { PRE , USER , USER_PRIORITY }
 

Private Member Functions

std::string typeName (Type type) const noexcept
 Get the name of Type. More...
 
std::string constantStr (const std::pair< std::string, bool > &v) const
 

Private Attributes

const std::map< std::string, std::pair< std::string, bool > > _constants
 

Member Enumeration Documentation

◆ Type

enum class Macro::Type
strongprivate
Enumerator
PRE 
USER 
USER_PRIORITY 

Member Function Documentation

◆ constantStr()

std::string Macro::constantStr ( const std::pair< std::string, bool > &  v) const
inlineprivate
Here is the caller graph for this function:

◆ replace()

std::string Macro::replace ( const std::string &  s,
const std::string &  key,
const std::string &  val,
Type  type = Type::PRE 
) const
inline

RegEx replace.

During replacing, log information will be written.

Parameters
sThe original string.
keyThe key to be replaced.
valThe value to replace the key.
Returns
(std::string) The replaced string.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ replaceMacro()

std::string Macro::replaceMacro ( const std::string &  s,
int  job_cnt,
int  alg_cnt 
) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ replaceXY()

bool Macro::replaceXY ( std::string &  r) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ typeName()

std::string Macro::typeName ( Type  type) const
inlineprivatenoexcept

Get the name of Type.

Parameters
typeThe macro type (predefined, user defined or user defined with priority).
Returns
(std::string) The name of Type.
Here is the caller graph for this function:

Member Data Documentation

◆ _B

XY_Size Macro::_B

◆ _cascaded_channel

std::string Macro::_cascaded_channel

◆ _constants

const std::map<std::string, std::pair<std::string, bool> > Macro::_constants
private

◆ _G

XY_Size Macro::_G

◆ _N

XY_Size Macro::_N

◆ alg_custom

std::vector<std::vector<std::vector<std::pair<std::string, std::string> > > > Macro::alg_custom

◆ alg_names

std::vector<std::vector<std::string> > Macro::alg_names

◆ alg_num

std::vector<unsigned> Macro::alg_num

◆ alg_params

std::vector<std::vector<std::string> > Macro::alg_params

◆ beamforming

std::map<std::string, std::string> Macro::beamforming

◆ custom

std::map<std::string, std::string> Macro::custom

◆ custom_in_alg

std::map<std::string, std::string> Macro::custom_in_alg

◆ custom_priority

std::map<std::string, std::string> Macro::custom_priority

◆ job_num

unsigned Macro::job_num = 0

◆ lang

Lang Macro::lang = Lang::CPP

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