Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
SpecsCpp::SpecHasCodeBlock Class Reference

#include <SpecHasCodeBlock.h>

Inheritance diagram for SpecsCpp::SpecHasCodeBlock:
SpecsCpp::ISpecHasCodeBlock SpecsCpp::SpecSetup SpecsCpp::SpecTeardown SpecsCpp::SpecTest

Public Member Functions

 SpecHasCodeBlock (std::unique_ptr< SpecCodeBlock > codeBlock)
 
ISpecCodeBlockcode_block () const override
 
- Public Member Functions inherited from SpecsCpp::ISpecHasCodeBlock
virtual ~ISpecHasCodeBlock ()=default
 
virtual ISpecCodeBlockcode_block () const =0
 

Detailed Description

Definition at line 11 of file SpecHasCodeBlock.h.

Constructor & Destructor Documentation

◆ SpecHasCodeBlock()

SpecsCpp::SpecHasCodeBlock::SpecHasCodeBlock ( std::unique_ptr< SpecCodeBlock codeBlock)
inline

Definition at line 15 of file SpecHasCodeBlock.h.

16 : _codeBlock(std::move(codeBlock)) {}

Member Function Documentation

◆ code_block()

ISpecCodeBlock * SpecsCpp::SpecHasCodeBlock::code_block ( ) const
inlineoverridevirtual

Implements SpecsCpp::ISpecHasCodeBlock.

Definition at line 18 of file SpecHasCodeBlock.h.

18{ return _codeBlock.get(); }

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