My Doxygen Markdown Project 1.0
A project to demonstrate Doxygen with Markdown
Loading...
Searching...
No Matches
Example Class Reference

Example class using Doxygen features. More...

#include <example.hpp>

Public Member Functions

 Example ()
 Default constructor.
 Example (const std::string &name)
 Construct with a name.
bool setName (const std::string &name)
 Set the name.
std::string getName () const
 Get the name.
void addValue (int value)
 Add a value to the list.
std::vector< int > getValues () const
 Get all values.

Static Public Member Functions

static int add (int x, int y)
 Static utility function.

Public Attributes

Color color
 Public member variable.

Detailed Description

Example class using Doxygen features.

This class demonstrates documentation for constructors, methods, members, and more.

Constructor & Destructor Documentation

◆ Example() [1/2]

Example::Example ( )

Default constructor.

◆ Example() [2/2]

Example::Example ( const std::string & name)
explicit

Construct with a name.

Parameters
nameThe name to assign.

Member Function Documentation

◆ add()

int Example::add ( int x,
int y )
static

Static utility function.

Parameters
xFirst integer.
ySecond integer.
Returns
The sum of x and y.
Note
This is a static method.

◆ addValue()

void Example::addValue ( int value)

Add a value to the list.

Parameters
valueThe value to add.
Exceptions
std::invalid_argumentif value is negative.

◆ getName()

std::string Example::getName ( ) const

Get the name.

Returns
The current name.
See also
setName()

◆ getValues()

std::vector< int > Example::getValues ( ) const

Get all values.

Returns
Vector of values.

◆ setName()

bool Example::setName ( const std::string & name)

Set the name.

Parameters
nameThe new name.
Returns
True if the name was set.
See also
getName()

Member Data Documentation

◆ color

Color Example::color

Public member variable.


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