MCPcopy Create free account
hub / github.com/Kitware/VTK / set

Method set

ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:3841–3847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3839}
3840
3841void Value::Comments::set(CommentPlacement slot, String comment) {
3842 if (slot >= CommentPlacement::numberOfCommentPlacement)
3843 return;
3844 if (!ptr_)
3845 ptr_ = std::unique_ptr<Array>(new Array());
3846 (*ptr_)[slot] = std::move(comment);
3847}
3848
3849void Value::setComment(String comment, CommentPlacement placement) {
3850 if (!comment.empty() && (comment.back() == '\n')) {

Callers 15

WriteMeshFunction · 0.45
WriteCameraFunction · 0.45
FillMixedShapeFunction · 0.45
FillAssemblyFunction · 0.45
TestAssemblyFunction · 0.45
CreatePolyhedraFunction · 0.45
CreateCoordsFunction · 0.45
CreateFieldDataFunction · 0.45
CreateDataFunction · 0.45
ValidateInterlacedArraysFunction · 0.45
CreateRectilinearMeshFunction · 0.45
CreateCoordsFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestAssemblyFunction · 0.36
CreatePolyhedraFunction · 0.36
CreateCoordsFunction · 0.36
CreateFieldDataFunction · 0.36
CreateDataFunction · 0.36
ValidateInterlacedArraysFunction · 0.36
CreateRectilinearMeshFunction · 0.36
CreateCoordsFunction · 0.36
CreateTrisMeshFunction · 0.36