[#BloombergLP-ball-Context-2constructor-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/Context.adoc[Context]::Context :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<ball_context.h>` Create a context object with all attributes having default values. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/Context/2constructor-06.adoc[Context](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/ball/Context/2constructor-06.adoc[_» more..._]# Create a context object having the value of the specified `original` context object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/Context/2constructor-0c.adoc[Context]( xref:BloombergLP/ball/Context.adoc[Context] const& original, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/ball/Context/2constructor-0c.adoc[_» more..._]# Create a context object indicating the specified `transmissionCause`, `recordIndex`, and `sequenceLength` values. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/Context/2constructor-00.adoc[Context]( xref:BloombergLP/ball/Transmission/Cause.adoc[Transmission::Cause] transmissionCause, int recordIndex, int sequenceLength, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/ball/Context/2constructor-00.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *basicAllocator* | memory allocator; null uses the default | *original* | context object to copy | *transmissionCause* | cause of transmission | *recordIndex* | index within the sequence | *sequenceLength* | number of records in the sequence |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#