Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Shape Class Referenceabstract
Inheritance diagram for Shape:
Collaboration 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_

◆ 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.

Friends And Related Symbol Documentation

◆ 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}
char * s

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: