MeshLink
Computational geometry access
GeometryKernelManager Class Reference

Management of geometry kernel interfaces. More...

#include <MeshAssociativity.h>

Public Member Functions

 GeometryKernelManager ()
 Default constructor, no active GeometryKernel by default. More...
 

Private Member Functions

void addKernel (GeometryKernel *kernel)
 
void removeKernel (GeometryKernel *kernel)
 
GeometryKernelgetByName (const char *name)
 
GeometryKernelgetActive ()
 
bool setActiveByName (const char *name)
 

Private Attributes

GeometryKernelArray geometry_kernels_
 The list of managed GeometryKernel objects. More...
 
GeometryKernelactive_
 The active GeometryKernel. More...
 

Friends

class MeshAssociativity
 

Detailed Description

Management of geometry kernel interfaces.

Storage for geometry kernel interfaces and the current active kernel. Only one GeometryKernel may be active at a time.

This singleton object is used internally by the MeshAssociativity.

Definition at line 792 of file MeshAssociativity.h.

Constructor & Destructor Documentation

◆ GeometryKernelManager()

GeometryKernelManager::GeometryKernelManager ( )
inline

Default constructor, no active GeometryKernel by default.

Definition at line 796 of file MeshAssociativity.h.

Member Function Documentation

◆ addKernel()

void GeometryKernelManager::addKernel ( GeometryKernel kernel)
private

Manage a new geometry kernel.

Parameters
[in]kernelgeometry kernel to add

◆ getActive()

GeometryKernel* GeometryKernelManager::getActive ( )
private

Return the active GeometryKernel.

Returns
geometry kernel or NULL if none active

◆ getByName()

GeometryKernel* GeometryKernelManager::getByName ( const char *  name)
private

Return the GeometryKernel associated with the given name.

Parameters
[in]namethe name of the desired kernel
Returns
geometry kernel or NULL if not found

◆ removeKernel()

void GeometryKernelManager::removeKernel ( GeometryKernel kernel)
private

Unmanage a geometry kernel.

Parameters
[in]kernelgeometry kernel to remove

◆ setActiveByName()

bool GeometryKernelManager::setActiveByName ( const char *  name)
private

Set the active GeometryKernel by name.

Parameters
[in]namethe name of the desired kernel
Returns
true if kernel found and set active

Friends And Related Function Documentation

◆ MeshAssociativity

friend class MeshAssociativity
friend

Definition at line 794 of file MeshAssociativity.h.

Member Data Documentation

◆ active_

GeometryKernel* GeometryKernelManager::active_
private

The active GeometryKernel.

Definition at line 831 of file MeshAssociativity.h.

◆ geometry_kernels_

GeometryKernelArray GeometryKernelManager::geometry_kernels_
private

The list of managed GeometryKernel objects.

Definition at line 829 of file MeshAssociativity.h.


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