Minsky
|
for checking shared columns between tables More...
#include <evalGodley.h>
Public Types | |
typedef GodleyAssetClass::AssetClass | AssetClass |
![]() | |
enum | AssetClass { noAssetClass, asset, liability, equity } |
enum | DisplayStyle { DRCR, sign } |
Public Member Functions | |
void | checkShared (const string &name, AssetClass ac) |
check whether column name has already been seen, and if it has, whether it is allowed to be shared by business rules More... | |
bool | updateColDefs (const string &col, const FlowCoef &fc) |
update col defs, give column name, and flow variable entry More... | |
void | checkSharedColDefs () const |
check shared columns are equivalently defined More... | |
Public Attributes | |
std::map< string, AssetClass > | colAssetType |
asset type of previously seen column of this name More... | |
std::set< string > | sharedCol |
indicates a column is shared between Godley tables More... | |
ConstMap< string, std::map< string, double > > | colDef |
store the sum of flow var contributions for each colum here. Used for checking that shared column definitions are equivalent More... | |
for checking shared columns between tables
Definition at line 93 of file evalGodley.h.
Definition at line 95 of file evalGodley.h.
void minsky::SharedColumnCheck::checkShared | ( | const string & | name, |
AssetClass | ac | ||
) |
check whether column name has already been seen, and if it has, whether it is allowed to be shared by business rules
Definition at line 41 of file evalGodley.cc.
References minsky::anonymous_namespace{evalGodley.cc}::throwInvalidAssetLiabilityPair().
Referenced by minsky::EvalGodley::initialiseGodleys().
void minsky::SharedColumnCheck::checkSharedColDefs | ( | ) | const |
check shared columns are equivalently defined
Definition at line 78 of file evalGodley.cc.
Referenced by minsky::EvalGodley::initialiseGodleys().
bool minsky::SharedColumnCheck::updateColDefs | ( | const string & | col, |
const FlowCoef & | fc | ||
) |
update col defs, give column name, and flow variable entry
Definition at line 68 of file evalGodley.cc.
References minsky::FlowCoef::coef, and minsky::FlowCoef::name.
Referenced by minsky::EvalGodley::initialiseGodleys().
std::map<string, AssetClass> minsky::SharedColumnCheck::colAssetType |
asset type of previously seen column of this name
Definition at line 98 of file evalGodley.h.
ConstMap<string, std::map<string, double> > minsky::SharedColumnCheck::colDef |
store the sum of flow var contributions for each colum here. Used for checking that shared column definitions are equivalent
Definition at line 109 of file evalGodley.h.
std::set<string> minsky::SharedColumnCheck::sharedCol |
indicates a column is shared between Godley tables
Definition at line 100 of file evalGodley.h.