SHAPER  9.12.0
GeomAPI_Interface Class Reference

General base class for all interfaces in this package. More...

Inheritance diagram for GeomAPI_Interface:
Inheritance graph

Public Member Functions

GEOMAPI_EXPORT GeomAPI_Interface ()
 None - constructor. More...
 
template<class T >
 GeomAPI_Interface (T *theImpl)
 Constructor by the impl pointer (used for internal needs) More...
 
virtual GEOMAPI_EXPORT ~GeomAPI_Interface ()
 Destructor. More...
 
template<class T >
T * implPtr ()
 Returns the pointer to the impl. More...
 
template<class T >
const T * implPtr () const
 Returns the pointer to the impl. More...
 
template<class T >
const T & impl () const
 Returns the reference object of the impl. More...
 
template<class T >
void setImpl (T *theImpl)
 Updates the impl (deletes the old one) More...
 
GEOMAPI_EXPORT bool empty () const
 Returns true if the impl is empty. More...
 

Detailed Description

General base class for all interfaces in this package.

Constructor & Destructor Documentation

◆ GeomAPI_Interface() [1/2]

GeomAPI_Interface::GeomAPI_Interface ( )

None - constructor.

◆ GeomAPI_Interface() [2/2]

template<class T >
GeomAPI_Interface::GeomAPI_Interface ( T *  theImpl)
inlineexplicit

Constructor by the impl pointer (used for internal needs)

◆ ~GeomAPI_Interface()

GeomAPI_Interface::~GeomAPI_Interface ( )
virtual

Destructor.

Member Function Documentation

◆ implPtr() [1/2]

template<class T >
T* GeomAPI_Interface::implPtr ( )
inline

Returns the pointer to the impl.

◆ implPtr() [2/2]

template<class T >
const T* GeomAPI_Interface::implPtr ( ) const
inline

Returns the pointer to the impl.

◆ impl()

template<class T >
const T& GeomAPI_Interface::impl ( ) const
inline

Returns the reference object of the impl.

◆ setImpl()

template<class T >
void GeomAPI_Interface::setImpl ( T *  theImpl)
inline

Updates the impl (deletes the old one)

◆ empty()

bool GeomAPI_Interface::empty ( ) const

Returns true if the impl is empty.