1.5.1
CCC
 
ASpaceObject.cpp File Reference
#include "geoslib_define.h"
#include "Space/ASpaceObject.hpp"
#include "Space/ASpace.hpp"
#include "Space/SpaceRN.hpp"
#include "Space/SpaceSN.hpp"
#include "Basic/AException.hpp"

Functions

void defineDefaultSpace (const ESpaceType &type, unsigned int ndim, double param)
 (Re)Defining the unique default global space More...
 
void setDefaultSpace (const ASpace *space)
 Defining the default space from another one. More...
 
const ASpacecloneDefaultSpace ()
 Return a clone of the unique default global space. More...
 
ESpaceType getDefaultSpaceType ()
 
int getDefaultSpaceDimension ()
 
const ASpacegetDefaultSpace ()
 
bool isDefaultSpaceSphere ()
 

Variables

static ASpacedefaultSpace = nullptr
 Unique default global space. More...
 

Function Documentation

◆ cloneDefaultSpace()

const ASpace* cloneDefaultSpace ( )

Return a clone of the unique default global space.

◆ defineDefaultSpace()

void defineDefaultSpace ( const ESpaceType &  type,
unsigned int  ndim,
double  param 
)

(Re)Defining the unique default global space

Factory for defining the unique default global space (optional parameter can be used for sphere radius for example)

Parameters
typeSpace type (RN, SN, ...)
ndimNumber of dimensions
paramOptional space parameter (ex: radius of the sphere)

◆ getDefaultSpace()

const ASpace* getDefaultSpace ( )

◆ getDefaultSpaceDimension()

int getDefaultSpaceDimension ( )

◆ getDefaultSpaceType()

ESpaceType getDefaultSpaceType ( )

◆ isDefaultSpaceSphere()

bool isDefaultSpaceSphere ( )

◆ setDefaultSpace()

void setDefaultSpace ( const ASpace space)

Defining the default space from another one.

Set the unique default global space from another one.

Parameters
space

Variable Documentation

◆ defaultSpace

ASpace* defaultSpace = nullptr
static

Unique default global space.