Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Circle Class Reference
Inheritance diagram for Circle:
Collaboration diagram for Circle:

Public Member Functions

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

Friends

template<typename Archiver >
Archiveroperator& (Archiver &ar, Circle &c)
 

Additional Inherited Members

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

Detailed Description

Definition at line 149 of file archivertest.cpp.

Constructor & Destructor Documentation

◆ Circle() [1/2]

Circle::Circle ( )
inline

Definition at line 151 of file archivertest.cpp.

151: radius_() {}

◆ Circle() [2/2]

Circle::Circle ( double x,
double y,
double radius )
inline

Definition at line 152 of file archivertest.cpp.

152: Shape(x, y), radius_(radius) {}

◆ ~Circle()

Circle::~Circle ( )
inline

Definition at line 153 of file archivertest.cpp.

153{}

Member Function Documentation

◆ GetType()

const char * Circle::GetType ( ) const
inlinevirtual

Implements Shape.

Definition at line 155 of file archivertest.cpp.

155{ return "Circle"; }

◆ Print()

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

Implements Shape.

Definition at line 157 of file archivertest.cpp.

157 {
158 os << "Circle (" << x_ << ", " << y_ << ")" << " radius = " << radius_;
159 }
double x_
double y_
os_t os

Friends And Related Symbol Documentation

◆ operator&

template<typename Archiver >
Archiver & operator& ( Archiver & ar,
Circle & c )
friend

Definition at line 169 of file archivertest.cpp.

169 {
170 ar & static_cast<Shape&>(c);
171 ar.Member("radius") & c.radius_;
172 return ar;
173}

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