Electroneum
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)

Detailed Description

Definition at line 126 of file archivertest.cpp.

Constructor & Destructor Documentation

◆ ~Shape()

virtual Shape::~Shape ( )
inlinevirtual

Definition at line 128 of file archivertest.cpp.

128{}

◆ Shape() [1/2]

Shape::Shape ( )
inlineprotected

Definition at line 133 of file archivertest.cpp.

133: x_(), y_() {}
double x_
double y_
Here is the caller graph for this function:

◆ Shape() [2/2]

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

Definition at line 134 of file archivertest.cpp.

134: x_(x), y_(y) {}

Member Function Documentation

◆ GetType()

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

Implemented in Box, and Circle.

Here is the caller graph for this function:

◆ 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

Definition at line 143 of file archivertest.cpp.

143 {
144 ar.Member("x") & s.x_;
145 ar.Member("y") & s.y_;
146 return ar;
147}

Member Data Documentation

◆ x_

double Shape::x_
protected

Definition at line 139 of file archivertest.cpp.

◆ y_

double Shape::y_
protected

Definition at line 139 of file archivertest.cpp.


The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/rapidjson/example/archiver/archivertest.cpp