Regina Calculation Engine
Public Member Functions
regina::ShareableObject Class Reference

Facilitates mirroring objects in the underlying C++ calculation engine using the various wrapper classes provided in the various external interfaces (such as the Python interface). More...

#include <shareableobject.h>

Inheritance diagram for regina::ShareableObject:
regina::boost::noncopyable regina::NAbelianGroup regina::NAngleStructure regina::NBoundaryComponent regina::NComponent regina::NEdge regina::NFace regina::NFile regina::NFileInfo regina::NGroupExpression regina::NGroupPresentation regina::NHomMarkedAbelianGroup regina::NHomologicalData regina::NIsomorphism regina::NManifold regina::NMarkedAbelianGroup regina::NMatrixInt regina::NNormalSurface regina::NPacket regina::NPillowTwoSphere regina::NProgress regina::NProgressManager regina::NSatBlock regina::NSatRegion regina::NSignature regina::NSnapPeaTriangulation regina::NSnappedTwoSphere regina::NStandardTriangulation regina::NSurfaceSubset regina::NTetrahedron regina::NTxICore regina::NVertex

List of all members.

Public Member Functions

 ShareableObject ()
 Default constructor that does nothing.
virtual ~ShareableObject ()
 Default destructor that does nothing.
virtual void writeTextShort (std::ostream &out) const =0
 Writes this object in short text format to the given output stream.
virtual void writeTextLong (std::ostream &out) const
 Writes this object in long text format to the given output stream.
std::string toString () const
 Returns the output from writeTextShort() as a string.
std::string toStringLong () const
 Returns the output from writeTextLong() as a string.

Detailed Description

Facilitates mirroring objects in the underlying C++ calculation engine using the various wrapper classes provided in the various external interfaces (such as the Python interface).

In the underlying C++ engine, a ShareableObject is an object that can be shared with the outside world. In the external interfaces, a ShareableObject is a vacuous wrapper that allows access to the data and methods of the corresponding object in the underlying engine.

See the various interface notes pages for more details regarding using classes derived from ShareableObject.


Constructor & Destructor Documentation

Default constructor that does nothing.

Python:
Not present.

Default destructor that does nothing.


Member Function Documentation

std::string regina::ShareableObject::toString ( ) const

Returns the output from writeTextShort() as a string.

Python:
This implements the __str__() function.
Returns:
a short text representation of this object.

Returns the output from writeTextLong() as a string.

Returns:
a long text representation of this object.
void regina::ShareableObject::writeTextLong ( std::ostream &  out) const [inline, virtual]
virtual void regina::ShareableObject::writeTextShort ( std::ostream &  out) const [pure virtual]

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

Copyright © 1999-2011, The Regina development team
This software is released under the GNU General Public License.
For further information, or to submit a bug or other problem, please contact Ben Burton (bab@debian.org).