class Gambit::Scanner::Plugins::ScannerPyPlugin::like_ptr_base

A class that wraps a shared pointer to a Function_Base object. More…

#include <py_module_scan.hpp>

Inherits from std::enable_shared_from_this< T >

Protected Types

Name
typedef std::shared_ptr< Gambit::Scanner::Function_Base< double(std::unordered_map< std::string, double > &)> >s_ptr
typedef Gambit::Scanner::Function_Base< double(std::unordered_map< std::string, double > &)>s_func

Public Functions

Name
like_ptr_base(s_func & s)
Constructs a like_ptr_base object.
Gambit::Scanner::like_ptr &get()
Retrieves the underlying shared pointer.

Protected Attributes

Name
s_ptrptr

Detailed Description

template <typename T >
class Gambit::Scanner::Plugins::ScannerPyPlugin::like_ptr_base;

A class that wraps a shared pointer to a Function_Base object.

Template Parameters:

This class is used to manage the lifetime of Function_Base objects and to provide a uniform interface for using them.

Protected Types Documentation

typedef s_ptr

typedef std::shared_ptr<Gambit::Scanner::Function_Base<double (std::unordered_map<std::string, double> &)> > Gambit::Scanner::Plugins::ScannerPyPlugin::like_ptr_base< T >::s_ptr;

typedef s_func

typedef Gambit::Scanner::Function_Base<double (std::unordered_map<std::string, double> &)> Gambit::Scanner::Plugins::ScannerPyPlugin::like_ptr_base< T >::s_func;

Public Functions Documentation

function like_ptr_base

inline like_ptr_base(
    s_func & s
)

Constructs a like_ptr_base object.

Parameters:

function get

inline Gambit::Scanner::like_ptr & get()

Retrieves the underlying shared pointer.

Return: A reference to the underlying shared pointer.

Protected Attributes Documentation

variable ptr

s_ptr ptr;

Updated on 2024-07-18 at 13:53:32 +0000