Maze Builder Docs 8.2.1
Loading...
Searching...
No Matches
mazes::parsing_state Class Referencefinal

State for parsing arguments. More...

#include <parsing_state.h>

Inheritance diagram for mazes::parsing_state:
[legend]
Collaboration diagram for mazes::parsing_state:
[legend]

Public Member Functions

 parsing_state (const runtime_app::context &ctx, runtime_stack *rs)
 
std::optional< argsconvert (std::string_view arguments) const noexcept override
 Converts a string of arguments into an args object.
 
void draw () const noexcept override
 
bool update (const std::optional< args > &args, double delta_time) noexcept override
 Updates the state of the parsing process.
 
- Public Member Functions inherited from mazes::convert_contract
- Public Member Functions inherited from mazes::state
 state (const runtime_app::context &c, runtime_stack *rs)
 

Additional Inherited Members

- Public Types inherited from mazes::state
enum class  ID : unsigned int {
  BTING = 0 , DFSING = 1 , EMPTY = 2 , LOADING = 3 ,
  PARSING = 4 , PIXELIZING = 5 , SIDEWINDERING = 6 , STRINGIFYING = 7 ,
  WAVEFRONT_OBJECTIFYING = 8 , TOTAL = 9
}
 
- Protected Member Functions inherited from mazes::state
void request_stack_push (ID state_id) const noexcept
 
void request_stack_pop () const noexcept
 
void request_stack_clear () const noexcept
 
const runtime_app::contextget_context () const noexcept
 
runtime_stackget_stack () const noexcept
 

Detailed Description

State for parsing arguments.

Member Function Documentation

◆ convert()

std::optional< args > mazes::parsing_state::convert ( std::string_view arguments) const
nodiscardoverridevirtualnoexcept

Converts a string of arguments into an args object.

Parameters
argumentsThe string of arguments to convert
Returns
An optional args object if the conversion was successful, std::nullopt otherwise

Implements mazes::convert_contract.

◆ draw()

void mazes::parsing_state::draw ( ) const
overridevirtualnoexcept

Implements mazes::state.

◆ update()

bool mazes::parsing_state::update ( const std::optional< args > & args,
double delta_time )
nodiscardoverridevirtualnoexcept

Updates the state of the parsing process.

Parameters
argsOptional arguments for the update
delta_timeTime elapsed since the last update
Returns
True if the update was successful, false otherwise

Implements mazes::state.


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