Loading...
Searching...
No Matches
shapes.hpp File Reference

Geometry shapes demonstrating class inheritance and Graphviz diagrams. More...

#include <cmath>
#include <string>
#include <memory>
#include <vector>
Include dependency graph for shapes.hpp:

Go to the source code of this file.

Classes

class  geometry::Circle
 A circle defined by its radius. More...
 
class  geometry::Rectangle
 A rectangle defined by width and height. More...
 
class  geometry::Shape
 Abstract base class for all 2D shapes. More...
 
class  geometry::Square
 A square — a special case of Rectangle where width equals height. More...
 
class  geometry::Triangle
 A triangle defined by its three side lengths. More...
 

Namespaces

namespace  geometry
 

Functions

std::vector< std::unique_ptr< Shape > > geometry::make_demo_shapes ()
 Create a container of example shapes for demonstration.
 

Detailed Description

Geometry shapes demonstrating class inheritance and Graphviz diagrams.

This file exercises Doxygen's class hierarchy features: inheritance graphs, collaboration diagrams, pure virtual methods, and the @defgroup system.

Author
Rohit Goswami

Definition in file shapes.hpp.