1.2.2
CCC
 
ASpaceObject Class Referenceabstract

#include <ASpaceObject.hpp>

Inheritance diagram for ASpaceObject:
AStringable ACov ANeigh CovContext DirParam SpacePoint ACovAnisoList CovAniso NeighBench NeighCell NeighImage NeighMoving NeighUnique SpaceTarget

Public Member Functions

 ASpaceObject (const ASpace *space=nullptr)
 
 ASpaceObject (const ASpace &space)
 
 ASpaceObject (const ASpaceObject &r)
 
ASpaceObjectoperator= (const ASpaceObject &r)
 
virtual ~ASpaceObject ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 AStringable interface. More...
 
const ASpacegetSpace () const
 Accessor to the current object space context. More...
 
bool isConsistent () const
 Indicate if I am consistent with my current space context. More...
 
VectorDouble getUnitaryVector () const
 Return unitary vector for the current space context. More...
 
virtual bool isConsistent (const ASpace *space) const =0
 Indicate if I am consistent with the provided space. More...
 
unsigned int getNDim () const
 Shortcuts to ASpace methods. More...
 
const VectorDoublegetOrigin () const
 Return the current space context origin coordinates. More...
 
double getDistance (const SpacePoint &p1, const SpacePoint &p2) const
 Return the distance between two space points for the current space context. More...
 
double getDistance1D (const SpacePoint &p1, const SpacePoint &p2, int idim) const
 Return the distance along one direction between two space points. More...
 
VectorDouble getIncrement (const SpacePoint &p1, const SpacePoint &p2) const
 Return the increment vector between two space points for the current space context. More...
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 

Detailed Description

This class is the base class for all objects that need to know what is its space definition. All ASpaceObject can access to the number of space dimensions and can ask to calculate a distance between two ASpaceObjects.

This class also stores a unique (static) default global space that will be used as default space when creating a ASpaceObject (without a predefined space). It is possible to modify the default space definition at any time. Space definition of pre-existing ASpaceObjects remains the same. (no more shared pointer)

Constructor & Destructor Documentation

ASpaceObject::ASpaceObject ( const ASpace space = nullptr)
ASpaceObject::ASpaceObject ( const ASpace space)
ASpaceObject::ASpaceObject ( const ASpaceObject r)
ASpaceObject::~ASpaceObject ( )
virtual

Member Function Documentation

double ASpaceObject::getDistance ( const SpacePoint p1,
const SpacePoint p2 
) const

Return the distance between two space points for the current space context.

double ASpaceObject::getDistance1D ( const SpacePoint p1,
const SpacePoint p2,
int  idim 
) const

Return the distance along one direction between two space points.

VectorDouble ASpaceObject::getIncrement ( const SpacePoint p1,
const SpacePoint p2 
) const

Return the increment vector between two space points for the current space context.

unsigned int ASpaceObject::getNDim ( ) const

Shortcuts to ASpace methods.

Return the number of dimension of the current space context

const VectorDouble & ASpaceObject::getOrigin ( ) const

Return the current space context origin coordinates.

const ASpace* ASpaceObject::getSpace ( ) const
inline

Accessor to the current object space context.

VectorDouble ASpaceObject::getUnitaryVector ( ) const

Return unitary vector for the current space context.

bool ASpaceObject::isConsistent ( ) const
inline

Indicate if I am consistent with my current space context.

virtual bool ASpaceObject::isConsistent ( const ASpace space) const
pure virtual

Indicate if I am consistent with the provided space.

Implemented in DirParam, CovAniso, ACovAnisoList, SpacePoint, CovContext, and ANeigh.

ASpaceObject & ASpaceObject::operator= ( const ASpaceObject r)
String ASpaceObject::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

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