BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bslfmt::TestSpecificationGenerator_Option Class Referenceabstract

#include <bslfmt_testspecificationgenerator.h>

Inheritance diagram for bslfmt::TestSpecificationGenerator_Option:
bslfmt::TestSpecificationGenerator_BoolOption bslfmt::TestSpecificationGenerator_TypedOption< t_TYPE >

Detailed Description

This class is a base class for TestSpecificationGenerator option nodes, which, when compiled into a list, represent the state of the generator. The payload and the process of changing this state are programmed into specific implementations of this interface. This class contains the basic functions of adding a new link to the options chain and finding the last link in the chain.

See bslfmt_testspecificationgenerator

Public Member Functions

 TestSpecificationGenerator_Option ()
 
virtual ~TestSpecificationGenerator_Option ()
 
virtual bool nextState ()=0
 
void setNextOption (TestSpecificationGenerator_Option *nextOption, bslma::Allocator *allocator)
 
TestSpecificationGenerator_OptionlastOption ()
 
TestSpecificationGenerator_OptionnextOption () const
 

Constructor & Destructor Documentation

◆ TestSpecificationGenerator_Option()

bslfmt::TestSpecificationGenerator_Option::TestSpecificationGenerator_Option ( )
inline

Create an object, having no successor in the list of generator options.

◆ ~TestSpecificationGenerator_Option()

virtual bslfmt::TestSpecificationGenerator_Option::~TestSpecificationGenerator_Option ( )
inlinevirtual

Destroy this object.

Member Function Documentation

◆ lastOption()

TestSpecificationGenerator_Option * bslfmt::TestSpecificationGenerator_Option::lastOption ( )
inline

Return the pointer to the last item in the list of generator options (this object can also be one).

◆ nextOption()

TestSpecificationGenerator_Option * bslfmt::TestSpecificationGenerator_Option::nextOption ( ) const
inline

Return the pointer to the next item in the list of generator options if such an object exists and null otherwise..

◆ nextState()

virtual bool bslfmt::TestSpecificationGenerator_Option::nextState ( )
pure virtual

Switch the state of this object to the next one.

Implemented in bslfmt::TestSpecificationGenerator_BoolOption, and bslfmt::TestSpecificationGenerator_TypedOption< t_TYPE >.

◆ setNextOption()

void bslfmt::TestSpecificationGenerator_Option::setNextOption ( TestSpecificationGenerator_Option nextOption,
bslma::Allocator allocator 
)
inline

Set the specified nextOption as a successor in the list of generator options. Use the specified allocator to supply memory.


The documentation for this class was generated from the following file: