Tudat/Astrodynamics/OrbitDetermination/RotationalDynamicsPartials/secondDegreeGravitationalTorquePartial.cpp
//! Function for setting up and retrieving a function returning a partial w.r.t. a double parameter.

Function for setting up and retrieving a function returning a partial w.r.t. a double parameter.
Function for setting up and retrieving a function returning a partial w . r . t . a double parameter .
std::pair< std::function< void( Eigen::MatrixXd& ) >, int >
SecondDegreeGravitationalTorquePartial::getParameterPartialFunction(
        std::shared_ptr< estimatable_parameters::EstimatableParameter< double > > parameter )
{
    std::pair< std::function< void( Eigen::MatrixXd& ) >, int > partialFunctionPair;
    if( parameter->getParameterName( ).first ==  estimatable_parameters::gravitational_parameter && (
                parameter->getParameterName( ).second.first == bodyExertingTorque_ ) )
    {
        partialFunctionPair = std::make_pair(
                    std::bind( &SecondDegreeGravitationalTorquePartial::wrtGravitationalParameterOfCentralBody,
                                 this, std::placeholders::_1 ), 1 );
    }
    else
    {
        partialFunctionPair = std::make_pair( std::function< void( Eigen::MatrixXd& ) >( ), 0 );
    }
    return partialFunctionPair;
}
std :: pair < std :: function < void ( Eigen :: MatrixXd & ) > , int > SecondDegreeGravitationalTorquePartial :: getParameterPartialFunction ( std :: shared_ptr < estimatable_parameters :: EstimatableParameter < double > > parameter ) { std :: pair < std :: function < void ( Eigen :: MatrixXd & ) > , int > partialFunctionPair ; if ( parameter -> getParameterName ( ) . first == estimatable_parameters :: gravitational_parameter && ( parameter -> getParameterName ( ) . second . first == bodyExertingTorque_ ) ) { partialFunctionPair = std :: make_pair ( std :: bind ( & SecondDegreeGravitationalTorquePartial :: wrtGravitationalParameterOfCentralBody , this , std :: placeholders :: _1 ) , 1 ) ; } else { partialFunctionPair = std :: make_pair ( std :: function < void ( Eigen :: MatrixXd & ) > ( ) , 0 ) ; } return partialFunctionPair ; }
Function for setting up and retrieving a function returning a partial w.r.t.
Function for setting up and retrieving a function returning a partial w . r . t .
// Check dependencies.
 // If parameter is gravitational parameter, check and create dependency function .
