PageSourceSearch

https://sst-simulator.org/sst-docs/assets/js/c2e5c2ec.71277ffc.js

js sst-simulator.org collected 2026-10-01 13:58:28 UTC 3,384 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[30613],{6785:(e,r,s)=>{s.r(r),s.d(r,{assets:()=>a,contentTitle:()=>l,default:()=>p,frontMatter:()=>n,metadata:()=>i,toc:()=>d});const i=JSON.parse('{"id":"core/portmodule/serialize_order","title":"serialize_order","description":"See the serialization framework for more detail.","source":"@site/../docs/core/portmodule/serialize_order.md","sourceDirName":"core/portmodule","slug":"/core/portmodule/serialize_order","permalink":"/sst-docs/docs/core/portmodule/serialize_order","draft":false,"unlisted":false,"editUrl":"https://github.com/sstsimulator/sst-docs/edit/master/docs/../docs/core/portmodule/serialize_order.md","tags":[],"version":"current","lastUpdatedBy":"grvosku","lastUpdatedAt":1747692370000,"frontMatter":{"title":"serialize_order"},"sidebar":"core","previous":{"title":"installOnSend","permalink":"/sst-docs/docs/core/portmodule/installOnSend"},"next":{"title":"registerStatistic","permalink":"/sst-docs/docs/core/portmodule/registerStatistic"}}');var t=s(74848),o=s(28453);const n={title:"serialize_order"},l=void 0,a={},d=[{value:"Parameters",id:"parameters",level:2},{value:"Example",id:"example",level:2},{value:"Header",id:"header",level:2}];function c(e){const r={a:"a",code:"code",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,o.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-cpp",children:"virtual void serialize_order(SST::Core::Serialization::serializer& ser);\n"})}),"\n",(0,t.jsxs)(r.p,{children:["See the ",(0,t.jsx)(r.a,{href:"/sst-docs/docs/core/serialization/overview",children:"serialization framework"})," for more detail."]}),"\n",(0,t.jsxs)(r.p,{children:["This function serializes the PortModule and is used for checkpoint and/or interactive debug. See ",(0,t.jsx)(r.a,{href:"/sst-docs/docs/core/serialization/overview",children:(0,t.jsx)(r.code,{children:"serialization"})})," for details."]}),"\n",(0,t.jsx)(r.h2,{id:"parameters",children:"Parameters"}),"\n",(0,t.jsxs)(r.ul,{children:["\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"ser"})," (serializer&) Serializer to use for serialization"]}),"\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"returns"})," none"]}),"\n"]}),"\n",(0,t.jsx)(r.h2,{id:"example",children:"Example"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-cpp",children:"void\nDropEvent::serialize_order(SST::Core::Serialization::serializer& ser)\n{\n    SST::PortModule::serialize_order(ser); // Serialize parent class first\n\n    // Serialize class members\n    SST_SER(rng)\n    SST_SER(probability)\n}\n"})}),"\n",(0,t.jsx)(r.h2,{id:"header",children:"Header"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-cpp",children:"#include <sst/core/portModule.h>\n"})})]})}function p(e={}){const{wrapper:r}={...(0,o.R)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(c,{...e})}):c(e)}},28453:(e,r,s)=>{s.d(r,{R:()=>n,x:()=>l});var i=s(96540);const t={},o=i.createContext(t);function n(e){const r=i.useContext(o);return i.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function l(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:n(e.components),i.createElement(o.Provider,{value:r},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.