fuzzylite  6.0
A Fuzzy Logic Control Library in C++
fl::FunctionFactory Class Reference

The FunctionFactory class is a CloningFactory of operators and functions utilized by the Function term. More...

#include <FunctionFactory.h>

Inheritance diagram for fl::FunctionFactory:
Collaboration diagram for fl::FunctionFactory:

Public Member Functions

 FunctionFactory ()
 
virtual ~FunctionFactory () FL_IOVERRIDE
 
virtual std::vector< std::string > availableOperators () const
 Returns a vector of the operators available. More...
 
virtual std::vector< std::string > availableFunctions () const
 Returns a vector of the functions available. More...
 
- Public Member Functions inherited from fl::CloningFactory< Function::Element *>
 CloningFactory (const std::string &name="")
 
 CloningFactory (const CloningFactory &other)
 
CloningFactoryoperator= (const CloningFactory &other)
 
virtual ~CloningFactory ()
 
virtual std::string name () const
 Returns the name of the factory. More...
 
virtual void registerObject (const std::string &key, Function::Element * object)
 Registers the object in the factory and assumes its ownership. More...
 
virtual void deregisterObject (const std::string &key)
 Deregisters the given object from the factory and deletes it. More...
 
virtual bool hasObject (const std::string &key) const
 Checks whether the factory has the given object registered. More...
 
virtual Function::ElementgetObject (const std::string &key) const
 Gets the object registered by the given key, not a clone of the object. More...
 
virtual Function::ElementcloneObject (const std::string &key) const
 Creates a cloned object by executing the clone method on the registered object. More...
 
virtual std::vector< std::string > available () const
 Returns a vector of the available objects. More...
 
virtual std::map< std::string, Function::Element * > & objects ()
 Gets the map of registered keys and objects. More...
 
virtual const std::map< std::string, Function::Element * > & objects () const
 Gets an immutable map of registered keys and objects. More...
 

Detailed Description

The FunctionFactory class is a CloningFactory of operators and functions utilized by the Function term.

Author
Juan Rada-Vilela, Ph.D.
See also
Function
Element
CloningFactory
FactoryManager
Since
5.0

Definition at line 37 of file FunctionFactory.h.

Constructor & Destructor Documentation

◆ FunctionFactory()

fl::FunctionFactory::FunctionFactory ( )

◆ ~FunctionFactory()

virtual fl::FunctionFactory::~FunctionFactory ( )
virtual

Member Function Documentation

◆ availableFunctions()

virtual std::vector<std::string> fl::FunctionFactory::availableFunctions ( ) const
virtual

Returns a vector of the functions available.

Returns
a vector of the functions available

◆ availableOperators()

virtual std::vector<std::string> fl::FunctionFactory::availableOperators ( ) const
virtual

Returns a vector of the operators available.

Returns
a vector of the operators available

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