Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
peg::AstOptimizer Struct Reference

#include <peglib.h>

Public Member Functions

 AstOptimizer (bool mode, const std::vector< std::string > &rules={})
template<typename T>
std::shared_ptr< T > optimize (std::shared_ptr< T > original, std::shared_ptr< T > parent=nullptr)

Private Attributes

const bool mode_
const std::vector< std::string > rules_

Constructor & Destructor Documentation

◆ AstOptimizer()

peg::AstOptimizer::AstOptimizer ( bool mode,
const std::vector< std::string > & rules = {} )
inline

Member Function Documentation

◆ optimize()

template<typename T>
std::shared_ptr< T > peg::AstOptimizer::optimize ( std::shared_ptr< T > original,
std::shared_ptr< T > parent = nullptr )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ mode_

const bool peg::AstOptimizer::mode_
private

◆ rules_

const std::vector<std::string> peg::AstOptimizer::rules_
private

The documentation for this struct was generated from the following file:
  • libcockatrice_utility/libcockatrice/utility/peglib.h