GPU-Accelerated Coverage  0.1.0
Compute coverage tours for known environment with articulated objects on GPU
Public Member Functions | Public Attributes | Friends | List of all members
gpu_coverage::Config::AbstractParam Struct Referenceabstract

Abstract class representing a configuration parameter. More...

#include <Config.h>

Inheritance diagram for gpu_coverage::Config::AbstractParam:
Inheritance graph
[legend]

Public Member Functions

virtual void write (std::ostream &os) const =0
 Write this parameter to a configuration file output stream. More...
 
virtual void read (std::istream &is)=0
 Read this parameter from a configuration file input stream. More...
 
 AbstractParam (const std::string &name, const std::string &description)
 Constructor. More...
 
virtual ~AbstractParam ()
 Destructor.
 

Public Attributes

const std::string name
 The name of the descriptor.
 
const std::string description
 A human-readable description of the parameter.
 

Friends

std::ostream & operator<< (std::ostream &os, AbstractParam &param)
 Stream operator for writing this parameter to a config data stream. More...
 
std::istream & operator>> (std::istream &is, AbstractParam &param)
 Stream operator for reading this parameter from a config data stream. More...
 

Detailed Description

Abstract class representing a configuration parameter.

Constructor & Destructor Documentation

gpu_coverage::Config::AbstractParam::AbstractParam ( const std::string &  name,
const std::string &  description 
)
inline

Constructor.

Parameters
[in]nameThe name of the parameter.
[in]descriptionA human-readable description of the parameter.

Member Function Documentation

virtual void gpu_coverage::Config::AbstractParam::read ( std::istream &  is)
pure virtual

Read this parameter from a configuration file input stream.

Parameters
[in]isThe input stream to read from.

Implemented in gpu_coverage::Config::Param< T >.

virtual void gpu_coverage::Config::AbstractParam::write ( std::ostream &  os) const
pure virtual

Write this parameter to a configuration file output stream.

Parameters
[in]osThe output stream to write to.

Implemented in gpu_coverage::Config::Param< T >.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
AbstractParam param 
)
friend

Stream operator for writing this parameter to a config data stream.

Parameters
[in]osOutput stream.
[in]paramThe parameter to write.
Returns
The output stream for chaining.
std::istream& operator>> ( std::istream &  is,
AbstractParam param 
)
friend

Stream operator for reading this parameter from a config data stream.

Parameters
[in]isInput stream.
[in]paramThe parameter to read.
Returns
The input stream for chaining.

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