#include <export.h>
|
enum | DType : unsigned {
INT = 1
, DOUBLE = 2
, STRING = 4
, BOOL = 8
,
CHAR = 16
, SEQ = 32
, MAP = 64
, NUL = 1024
,
UNDEF = 2048
} |
|
enum class | NodeRole { Tx
, Rx
, RIS
} |
| Role of each node. More...
|
|
|
std::ofstream & | _f () |
|
std::string | _langStr () const |
|
std::string | _langName () const |
|
std::string | _langExtension () const |
|
std::string | _langHeaderExtension () const |
|
std::string | _langMmcesimExtension () const |
|
std::string | _langCommentSymbol () const |
|
void | _info (const std::string &str) const |
|
bool | _preCheck (const YAML::Node &node, unsigned allowed_type, bool mattered=true) |
|
template<typename T > |
T | _as (const YAML::Node &n, bool mattered=true) |
|
std::string | _asStr (const YAML::Node &n, bool mattered=true) |
|
void | _setLatestError (const std::string &str) |
|
void | _setLang () |
|
bool | _isKeyword (const std::string &str) const |
|
std::tuple< bool, std::string, std::string > | _setChannelGains (const YAML::Node &n) |
|
std::string | _asVarName (const std::string &str) const |
|
std::ofstream & | _wComment () |
|
void | _topComment () |
|
void | _beginning () |
|
void | _generateChannels () |
|
void | _generateConstants () |
|
void | _algorithms () |
|
void | _sounding () |
|
void | _estimation (const Macro ¯o, int job_cnt=-1) |
|
void | _reporting () |
|
void | _ending () |
|
bool | _loadALG () |
|
bool | _setCascadedChannel () |
|
bool | _setDataParams () |
|
bool | _setVarNames () |
| Set the variable names defined by users. More...
|
|
void | _generateBF (unsigned Nt_B) |
| Generate RIS reflection matrices. More...
|
|
unsigned | _getTestNum (const YAML::Node &n) |
|
std::tuple< unsigned, unsigned, unsigned, unsigned, unsigned, unsigned > | _getSize (const YAML::Node &n) |
| Get the size of the node (Tx/Rx/RIS). More...
|
|
void | _checkALGdependency (std::vector< std::string > &algs, bool logged=true) |
|
◆ DType
Enumerator |
---|
INT | int
|
DOUBLE | double
|
STRING | string
|
BOOL | bool
|
CHAR | map
|
SEQ | sequence
|
MAP | map
|
NUL | null
|
UNDEF | undefined
|
◆ NodeRole
Role of each node.
RIS is the default role.
Enumerator |
---|
Tx | transmitter
|
Rx | receiver
|
RIS | RIS/IRS.
|
◆ Export() [1/2]
◆ Export() [2/2]
◆ ~Export()
◆ _algorithms()
void Export::_algorithms |
( |
| ) |
|
|
private |
◆ _as()
template<typename T >
T Export::_as |
( |
const YAML::Node & |
n, |
|
|
bool |
mattered = true |
|
) |
| |
|
inlineprivate |
◆ _asStr()
std::string Export::_asStr |
( |
const YAML::Node & |
n, |
|
|
bool |
mattered = true |
|
) |
| |
|
inlineprivate |
◆ _asVarName()
std::string Export::_asVarName |
( |
const std::string & |
str | ) |
const |
|
inlineprivate |
◆ _beginning()
void Export::_beginning |
( |
| ) |
|
|
private |
◆ _checkALGdependency()
void Export::_checkALGdependency |
( |
std::vector< std::string > & |
algs, |
|
|
bool |
logged = true |
|
) |
| |
|
private |
◆ _ending()
◆ _estimation()
void Export::_estimation |
( |
const Macro & |
macro, |
|
|
int |
job_cnt = -1 |
|
) |
| |
|
private |
◆ _f()
std::ofstream & Export::_f |
( |
| ) |
|
|
inlineprivate |
◆ _generateBF()
void Export::_generateBF |
( |
unsigned |
Nt_B | ) |
|
|
private |
Generate RIS reflection matrices.
To generate the RIS reflection matrices (i.e. the passive beamforming at the RIS), four parameters should be known:
- Pilot;
- Beam Number at the Tx;
- RIS size;
- The variable names.
The first two are necessary because we need to calculate the number of RIS reflection patterns; The variable names are also needed since we need to generate those definitions.
The pilot can be directly written as 'pilot'; The size of RIS can be obtained in the list; The variable names are listed in _beamforming_RIS.
- Parameters
-
Nt_B | The beam number at the transmitter (Tx). |
◆ _generateChannels()
void Export::_generateChannels |
( |
| ) |
|
|
private |
◆ _generateConstants()
void Export::_generateConstants |
( |
| ) |
|
|
private |
◆ _getSize()
std::tuple< unsigned, unsigned, unsigned, unsigned, unsigned, unsigned > Export::_getSize |
( |
const YAML::Node & |
n | ) |
|
|
private |
Get the size of the node (Tx/Rx/RIS).
- Parameters
-
- Returns
- (std::tuple<unsigned, unsigned, unsigned, unsigned, unsigned, unsigned>) The size. The five elements are: Mx, My, GMx, GMy, BMx, BMy.
◆ _getTestNum()
unsigned Export::_getTestNum |
( |
const YAML::Node & |
n | ) |
|
|
inlineprivate |
◆ _info()
void Export::_info |
( |
const std::string & |
str | ) |
const |
|
inlineprivate |
◆ _isKeyword()
bool Export::_isKeyword |
( |
const std::string & |
str | ) |
const |
|
inlineprivate |
◆ _langCommentSymbol()
std::string Export::_langCommentSymbol |
( |
| ) |
const |
|
inlineprivate |
◆ _langExtension()
std::string Export::_langExtension |
( |
| ) |
const |
|
inlineprivate |
◆ _langHeaderExtension()
std::string Export::_langHeaderExtension |
( |
| ) |
const |
|
inlineprivate |
◆ _langMmcesimExtension()
std::string Export::_langMmcesimExtension |
( |
| ) |
const |
|
inlineprivate |
◆ _langName()
std::string Export::_langName |
( |
| ) |
const |
|
inlineprivate |
◆ _langStr()
std::string Export::_langStr |
( |
| ) |
const |
|
inlineprivate |
◆ _loadALG()
bool Export::_loadALG |
( |
| ) |
|
|
private |
◆ _preCheck()
bool Export::_preCheck |
( |
const YAML::Node & |
node, |
|
|
unsigned |
allowed_type, |
|
|
bool |
mattered = true |
|
) |
| |
|
private |
◆ _reporting()
void Export::_reporting |
( |
| ) |
|
|
private |
◆ _setCascadedChannel()
bool Export::_setCascadedChannel |
( |
| ) |
|
|
private |
◆ _setChannelGains()
std::tuple< bool, std::string, std::string > Export::_setChannelGains |
( |
const YAML::Node & |
n | ) |
|
|
private |
◆ _setDataParams()
bool Export::_setDataParams |
( |
| ) |
|
|
private |
◆ _setLang()
void Export::_setLang |
( |
| ) |
|
|
private |
◆ _setLatestError()
void Export::_setLatestError |
( |
const std::string & |
str | ) |
|
|
inlineprivate |
◆ _setVarNames()
bool Export::_setVarNames |
( |
| ) |
|
|
private |
Set the variable names defined by users.
- Return values
-
true | Success. |
false | Failure. |
◆ _sounding()
void Export::_sounding |
( |
| ) |
|
|
private |
◆ _topComment()
void Export::_topComment |
( |
| ) |
|
|
private |
◆ _wComment()
std::ofstream & Export::_wComment |
( |
| ) |
|
|
inlineprivate |
◆ exportCode() [1/3]
◆ exportCode() [2/3]
◆ exportCode() [3/3]
◆ _already_error_before_export
bool Export::_already_error_before_export = false |
|
private |
◆ _beamforming
std::map<std::string, std::string> Export::_beamforming |
|
private |
◆ _beamforming_F
std::string Export::_beamforming_F |
|
private |
◆ _beamforming_RIS
std::vector<std::string> Export::_beamforming_RIS |
|
private |
◆ _beamforming_W
std::string Export::_beamforming_W |
|
private |
◆ _cascaded_channel
std::string Export::_cascaded_channel |
|
private |
◆ _channel_graph
◆ _config
YAML::Node Export::_config |
|
private |
◆ _constants
std::vector<std::tuple<std::string, std::any, bool> > Export::_constants |
|
private |
◆ _data_params
◆ _errors
◆ _f_ptr
std::ofstream* Export::_f_ptr = nullptr |
|
private |
◆ _MAX_RX
const int Export::_MAX_RX = 1 |
|
private |
◆ _MAX_TX
const int Export::_MAX_TX = 1 |
|
private |
◆ _noise
std::string Export::_noise |
|
private |
◆ _opt
◆ _received_signal
std::string Export::_received_signal |
|
private |
◆ _receivers
std::vector<int> Export::_receivers |
|
private |
◆ _s_info
◆ _transmitters
std::vector<int> Export::_transmitters |
|
private |
◆ lang
The documentation for this class was generated from the following files: