KIDS  ver-0.0.1
KIDS : Kernel Integrated Dynamics Simulator
Loading...
Searching...
No Matches
fmt.h File Reference

utils for formating More...

#include <iomanip>
#include <iostream>
Include dependency graph for fmt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  PROJECT_NS
 < http://warp.povusers.org/FunctionParser/fparser.html
 

Macros

#define FMT(X)
 
#define LOC()   (std::string(basename(__FILE__)) + ":" + std::to_string(__LINE__))
 show the location information for debug
 

Functions

constexpr int PROJECT_NS::FMT_WIDTH (int X)
 control the io printing format
 

Detailed Description

utils for formating

Author
Xin He
Date
2024-04
Version
1.0
Warning
Do not include this file to any header. You'd better include it only in source files!
[logs]:
Date Description
2024-05-01 moved here for initial version.

Definition in file fmt.h.

Macro Definition Documentation

◆ FMT

#define FMT ( X)
Value:
" " << std::setiosflags(std::ios::scientific) /*scientific notation*/ \
<< std::setprecision(X) /*precision*/ \
<< std::right /*alignment*/ \
<< std::setw(FMT_WIDTH(X)) /*width of text*/

Definition at line 40 of file fmt.h.

Referenced by PROJECT_NS::RuleSet::appendHeader(), PROJECT_NS::Model_Interf_MNDO::calc_normalmode(), PROJECT_NS::Model_Interf_MNDO::calc_samp(), PROJECT_NS::Model_Interf_MNDO::new_task(), PROJECT_NS::Tensor< T >::repr(), and PROJECT_NS::RuleEvaluator::writeTo().

◆ LOC

#define LOC ( )    (std::string(basename(__FILE__)) + ":" + std::to_string(__LINE__))

show the location information for debug

Definition at line 49 of file fmt.h.

Referenced by PROJECT_NS::VariableDescriptor::defineIn(), PROJECT_NS::Context::execute(), PROJECT_NS::Kernel_Iter_Adapt::executeKernel_impl(), PROJECT_NS::Kernel_Elec_NAD::initializeKernel_impl(), PROJECT_NS::Kernel_Elec_Switch::initializeKernel_impl(), PROJECT_NS::Model_Interf_MNDO::initializeKernel_impl(), main(), PROJECT_NS::VariableDescriptor::referIn(), PROJECT_NS::RuleEvaluator::RuleEvaluator(), PROJECT_NS::Handler::run(), PROJECT_NS::Handler::run_parallel(), PROJECT_NS::Handler::run_sampling(), PROJECT_NS::Model_Bath::setInputDataSet_impl(), PROJECT_NS::Model_ElectronTransfer::setInputDataSet_impl(), PROJECT_NS::Model_Interf_MNDO::setInputDataSet_impl(), PROJECT_NS::Model_LVCM::setInputDataSet_impl(), PROJECT_NS::Model_NAD1D::setInputDataSet_impl(), PROJECT_NS::Model_SystemBath::setInputDataSet_impl(), PROJECT_NS::Kernel::setInputParam(), PROJECT_NS::Model_HO::setInputParam_impl(), PROJECT_NS::MODEL_MD1D::setInputParam_impl(), PROJECT_NS::Kernel_Conserve::setInputParam_impl(), PROJECT_NS::Kernel_Dump_DataSet::setInputParam_impl(), PROJECT_NS::Kernel_Elec::setInputParam_impl(), PROJECT_NS::Kernel_Elec_NAD::setInputParam_impl(), PROJECT_NS::Kernel_Elec_Switch::setInputParam_impl(), PROJECT_NS::Kernel_GWP::setInputParam_impl(), PROJECT_NS::Kernel_Iter::setInputParam_impl(), PROJECT_NS::Kernel_Iter_Adapt::setInputParam_impl(), PROJECT_NS::Kernel_Load_DataSet::setInputParam_impl(), PROJECT_NS::Kernel_NADForce::setInputParam_impl(), PROJECT_NS::Kernel_Read_Dimensions::setInputParam_impl(), PROJECT_NS::Kernel_Recorder::setInputParam_impl(), PROJECT_NS::Kernel_Representation::setInputParam_impl(), Kernel_Update_T::setInputParam_impl(), PROJECT_NS::Kernel_Update_T::setInputParam_impl(), PROJECT_NS::Model_Bath::setInputParam_impl(), PROJECT_NS::Model_ElectronTransfer::setInputParam_impl(), PROJECT_NS::Model_Interf_MNDO::setInputParam_impl(), PROJECT_NS::Model_LVCM::setInputParam_impl(), PROJECT_NS::Model_NAD1D::setInputParam_impl(), and PROJECT_NS::Model_SystemBath::setInputParam_impl().