Monero
Loading...
Searching...
No Matches
Box Class Reference
Inheritance diagram for Box:
Collaboration diagram for Box:

Public Member Functions

 Box ()
 Box (double x, double y, double width, double height)
 ~Box ()
const char * GetType () const
void Print (std::ostream &os) const
Public Member Functions inherited from Shape
virtual ~Shape ()

Private Attributes

double width_
double height_

Friends

template<typename Archiver>
Archiveroperator& (Archiver &ar, Box &b)

Additional Inherited Members

Protected Member Functions inherited from Shape
 Shape ()
 Shape (double x, double y)
Protected Attributes inherited from Shape
double x_
double y_

Constructor & Destructor Documentation

◆ Box() [1/2]

Box::Box ( )
inline

◆ Box() [2/2]

Box::Box ( double x,
double y,
double width,
double height )
inline

◆ ~Box()

Box::~Box ( )
inline

Member Function Documentation

◆ GetType()

const char * Box::GetType ( ) const
inlinevirtual

Implements Shape.

◆ Print()

void Box::Print ( std::ostream & os) const
inlinevirtual

Implements Shape.

◆ operator&

template<typename Archiver>
Archiver & operator& ( Archiver & ar,
Box & b )
friend

Member Data Documentation

◆ height_

double Box::height_
private

◆ width_

double Box::width_
private

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