本文整理汇总了C++中not_null::MutableExtension方法的典型用法代码示例。如果您正苦于以下问题:C++ not_null::MutableExtension方法的具体用法?C++ not_null::MutableExtension怎么用?C++ not_null::MutableExtension使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类not_null
的用法示例。
在下文中一共展示了not_null::MutableExtension方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: integrator
void AdaptiveStepSizeIntegrator<DifferentialEquation>::Instance::WriteToMessage(
not_null<serialization::IntegratorInstance*> message) const {
Integrator<ODE>::Instance::WriteToMessage(message);
auto* const extension = message->MutableExtension(
serialization::AdaptiveStepSizeIntegratorInstance::extension);
adaptive_step_size_.WriteToMessage(extension->mutable_adaptive_step_size());
integrator().WriteToMessage(extension->mutable_integrator());
}
示例2:
void RotatingBody<Frame>::WriteToMessage(
not_null<serialization::MassiveBody*> const message) const {
MassiveBody::WriteToMessage(message);
not_null<serialization::RotatingBody*> const rotating_body =
message->MutableExtension(serialization::RotatingBody::extension);
Frame::WriteToMessage(rotating_body->mutable_frame());
parameters_.reference_angle_.WriteToMessage(
rotating_body->mutable_reference_angle());
parameters_.reference_instant_.WriteToMessage(
rotating_body->mutable_reference_instant());
parameters_.angular_velocity_.WriteToMessage(
rotating_body->mutable_angular_velocity());
}
示例3:
void BodyCentredNonRotatingDynamicFrame<InertialFrame, ThisFrame>::
WriteToMessage(not_null<serialization::DynamicFrame*> const message) const {
message->MutableExtension(
serialization::BodyCentredNonRotatingDynamicFrame::extension)->set_centre(
ephemeris_->serialization_index_for_body(centre_));
}
示例4: WriteToMessage
void Identity<FromFrame, ToFrame>::WriteToMessage(
not_null<serialization::LinearMap*> const message) const {
LinearMap<FromFrame, ToFrame>::WriteToMessage(message);
WriteToMessage(message->MutableExtension(serialization::Identity::identity));
}
示例5: WriteToMessage
void Permutation<FromFrame, ToFrame>::WriteToMessage(
not_null<serialization::LinearMap*> const message) const {
LinearMap<FromFrame, ToFrame>::WriteToMessage(message);
WriteToMessage(
message->MutableExtension(serialization::Permutation::extension));
}