Viam C++ SDK current
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
MySummation Class Reference
+ Inheritance diagram for MySummation:

Public Member Functions

 MySummation (std::string name, bool subtract)
 
 MySummation (const Dependencies &deps, const ResourceConfig &cfg)
 
void reconfigure (const Dependencies &deps, const ResourceConfig &cfg) override
 Reconfigures a resource.
 
double sum (std::vector< double > numbers) override
 
- Public Member Functions inherited from Summation
API api () const override
 Returns the API associated with a particular resource.
 
- Public Member Functions inherited from viam::sdk::Service
Name get_resource_name () const override
 Returns the Name for a particular resource.
 
- Public Member Functions inherited from viam::sdk::Resource
 Resource (std::string name)
 
virtual std::string name () const
 Return the resource's name.
 

Static Public Member Functions

static std::vector< std::string > validate (ResourceConfig cfg)
 
- Static Public Member Functions inherited from viam::sdk::Reconfigurable
static void reconfigure_if_reconfigurable (const std::shared_ptr< Resource > &resource, const Dependencies &deps, const ResourceConfig &cfg)
 Reconfigures a resource if it is Reconfigurable.
 

Additional Inherited Members

- Protected Member Functions inherited from Summation
 Summation (std::string name)
 
- Protected Member Functions inherited from viam::sdk::Service
 Service (std::string name)
 
- Protected Member Functions inherited from viam::sdk::Resource
Name get_resource_name (const std::string &type) const
 

Member Function Documentation

◆ reconfigure()

void MySummation::reconfigure ( const Dependencies & deps,
const ResourceConfig & cfg )
overridevirtual

Reconfigures a resource.

Parameters
depsDependencies of the resource.
cfgThe resource's config.

Implements viam::sdk::Reconfigurable.

◆ sum()

double MySummation::sum ( std::vector< double > numbers)
overridevirtual

Implements Summation.


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