gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
Struct Class Reference

#include <Parser.h>

Public Member Functions

 Struct ()
 
 Struct (int tag, std::map< std::string, std::vector< double > > &fopt, std::map< std::string, std::vector< std::string > > &copt, int member_ValMax)
 
 ~Struct ()
 
int append (int tag, std::map< std::string, std::vector< double > > &fopt, std::map< std::string, std::vector< std::string > > &copt, int member_ValMax)
 
int getTag () const
 
int getMember (std::string &key_member, double &out, int index) const
 
int getMember (std::string &key_member, const std::string *&out, int index) const
 
int getMember_Dim (std::string &key_member, int &out) const
 
int getMember_Vector (std::string &key_member, const std::vector< double > *&out_vector) const
 
int getMember_Vector (std::string &key_member, const std::vector< std::string > *&out_vector) const
 
int getMember_ValMax () const
 
void sprint (std::string &str, const std::string &struct_name, const std::string &struct_namespace) const
 

Private Attributes

int _tag
 
int _member_ValMax
 
std::map< std::string, std::vector< double > > _fopt
 
std::map< std::string, std::vector< std::string > > _copt
 

Detailed Description

Definition at line 30 of file Parser.h.

Constructor & Destructor Documentation

◆ Struct() [1/2]

Struct::Struct ( )
inline

Definition at line 32 of file Parser.h.

◆ Struct() [2/2]

Struct::Struct ( int  tag,
std::map< std::string, std::vector< double > > &  fopt,
std::map< std::string, std::vector< std::string > > &  copt,
int  member_ValMax 
)
inline

Definition at line 33 of file Parser.h.

◆ ~Struct()

Struct::~Struct ( )
inline

Definition at line 39 of file Parser.h.

Member Function Documentation

◆ append()

int Struct::append ( int  tag,
std::map< std::string, std::vector< double > > &  fopt,
std::map< std::string, std::vector< std::string > > &  copt,
int  member_ValMax 
)
inline

Definition at line 41 of file Parser.h.

◆ getMember() [1/2]

int Struct::getMember ( std::string &  key_member,
const std::string *&  out,
int  index 
) const
inline

Definition at line 73 of file Parser.h.

◆ getMember() [2/2]

int Struct::getMember ( std::string &  key_member,
double &  out,
int  index 
) const
inline

Definition at line 54 of file Parser.h.

Referenced by NameSpaces::getMember().

Here is the caller graph for this function:

◆ getMember_Dim()

int Struct::getMember_Dim ( std::string &  key_member,
int &  out 
) const
inline

Definition at line 93 of file Parser.h.

Referenced by NameSpaces::getMember_Dim().

Here is the caller graph for this function:

◆ getMember_ValMax()

int Struct::getMember_ValMax ( ) const
inline

Definition at line 141 of file Parser.h.

Referenced by NameSpaces::getMember_ValMax().

Here is the caller graph for this function:

◆ getMember_Vector() [1/2]

int Struct::getMember_Vector ( std::string &  key_member,
const std::vector< double > *&  out_vector 
) const
inline

Definition at line 113 of file Parser.h.

Referenced by NameSpaces::getMember_Vector().

Here is the caller graph for this function:

◆ getMember_Vector() [2/2]

int Struct::getMember_Vector ( std::string &  key_member,
const std::vector< std::string > *&  out_vector 
) const
inline

Definition at line 127 of file Parser.h.

◆ getTag()

int Struct::getTag ( ) const
inline

Definition at line 52 of file Parser.h.

Referenced by NameSpaces::getTag().

Here is the caller graph for this function:

◆ sprint()

void Struct::sprint ( std::string &  str,
const std::string &  struct_name,
const std::string &  struct_namespace 
) const
inline

Definition at line 143 of file Parser.h.

Member Data Documentation

◆ _copt

std::map<std::string, std::vector<std::string> > Struct::_copt
private

Definition at line 180 of file Parser.h.

Referenced by append(), getMember(), getMember_Dim(), getMember_Vector(), and sprint().

◆ _fopt

std::map<std::string, std::vector<double> > Struct::_fopt
private

Definition at line 179 of file Parser.h.

Referenced by append(), getMember(), getMember_Dim(), getMember_Vector(), and sprint().

◆ _member_ValMax

int Struct::_member_ValMax
private

Definition at line 178 of file Parser.h.

Referenced by append(), and getMember_ValMax().

◆ _tag

int Struct::_tag
private

Definition at line 178 of file Parser.h.

Referenced by append(), and getTag().


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