Monero
Loading...
Searching...
No Matches
Shape Class Referenceabstract
Inheritance diagram for Shape:

Public Member Functions

virtual ~Shape ()
virtual const char * GetType () const =0
virtual void Print (std::ostream &os) const =0

Protected Member Functions

 Shape ()
 Shape (double x, double y)

Protected Attributes

double x_
double y_

Friends

template<typename Archiver>
Archiveroperator& (Archiver &ar, Shape &s)

Constructor & Destructor Documentation

◆ ~Shape()

virtual Shape::~Shape ( )
inlinevirtual

◆ Shape() [1/2]

Shape::Shape ( )
inlineprotected

◆ Shape() [2/2]

Shape::Shape ( double x,
double y )
inlineprotected

Member Function Documentation

◆ GetType()

virtual const char * Shape::GetType ( ) const
pure virtual

Implemented in Box, and Circle.

◆ Print()

virtual void Shape::Print ( std::ostream & os) const
pure virtual

Implemented in Box, and Circle.

◆ operator&

template<typename Archiver>
Archiver & operator& ( Archiver & ar,
Shape & s )
friend

Member Data Documentation

◆ x_

double Shape::x_
protected

◆ y_

double Shape::y_
protected

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