[#BloombergLP-bslfmt-TestSpecificationGenerator_BoolOption]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslfmt.adoc[bslfmt]::TestSpecificationGenerator&lowbar;BoolOption
:relfileprefix: ../../
:mrdocs:

This class is an implementation of the `TestSpecificationGenerator&lowbar;Option` for options that have only two states&colon; they are either present or not&period;

== Synopsis

Declared in `&lt;bslfmt&lowbar;testspecificationgenerator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class TestSpecificationGenerator&lowbar;BoolOption
    : public xref:BloombergLP/bslfmt/TestSpecificationGenerator_Option.adoc[TestSpecificationGenerator&lowbar;Option]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:BloombergLP/bslfmt/TestSpecificationGenerator_Option.adoc[TestSpecificationGenerator&lowbar;Option]`
| Base class for linked option nodes in a `TestSpecificationGenerator`&period;
|===

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslfmt/TestSpecificationGenerator_BoolOption/2constructor.adoc[`TestSpecificationGenerator&lowbar;BoolOption`]         [.small]#[constructor]#
| Create an object that displays its state through the specified `value`&period;
| xref:BloombergLP/bslfmt/TestSpecificationGenerator_BoolOption/2destructor.adoc[`&#126;TestSpecificationGenerator&lowbar;BoolOption`] [.small]#[destructor]# [.small]#[virtual]#
| Destroy this object&period;
| xref:BloombergLP/bslfmt/TestSpecificationGenerator_Option/lastOption.adoc[`lastOption`] 
| Return the pointer to the last item in the list of generator options (this object can also be one)&period;
| xref:BloombergLP/bslfmt/TestSpecificationGenerator_Option/nextOption.adoc[`nextOption`] 
| Return the pointer to the next item in the list of generator options if such an object exists and null otherwise&period;
| xref:BloombergLP/bslfmt/TestSpecificationGenerator_BoolOption/nextState.adoc[`nextState`]  [.small]#[virtual]#
| Switch the state of this object to the next one&period;
| xref:BloombergLP/bslfmt/TestSpecificationGenerator_Option/setNextOption.adoc[`setNextOption`] 
| Set the specified `nextOption` as a successor in the list of generator options&period; Use the specified `allocator` to supply memory&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
