1.5.0
CCC
 
SpaceComposite Class Reference

#include <SpaceComposite.hpp>

Inheritance diagram for SpaceComposite:
ASpace AStringable ICloneable

Public Member Functions

 SpaceComposite ()
 
 SpaceComposite (const std::vector< const ASpace * > &vectspace)
 
 SpaceComposite (const SpaceComposite &r)
 
SpaceCompositeoperator= (const SpaceComposite &r)
 
virtual ~SpaceComposite ()
 
ESpaceType getType () const override
 ICloneable interface. More...
 
void setOrigin (const VectorDouble &origin) override
 Update the origin of the space. More...
 
unsigned int getNDim (int ispace=-1) const override
 Get the number of dimensions. More...
 
unsigned int getOffset (int ispace=-1) const override
 Get the offset index for coordinates. More...
 
const VectorDoublegetOrigin (int ispace=-1) const override
 Return the space origin coordinates. More...
 
unsigned int getNComponents () const override
 Get the number of space components. More...
 
const ASpacegetComponent (int ispace=-1) const override
 Return the space component at index ispace. More...
 
String toString (const AStringFormat *strfmt, int ispace) const override
 Dump a space in a string (given the space index) More...
 
bool isEqual (const ASpace *space) const override
 Return true if the given space is equal to me (same dimension and space definition) More...
 
VectorDouble getDistances (const SpacePoint &p1, const SpacePoint &p2) const override
 Return all the distances (one by space component) between two space points. More...
 
void addSpaceComponent (const ASpace *comp)
 Add a space component to me (for exemple RN(1) for time dimension) Note: The given argument is cloned. More...
 
- Public Member Functions inherited from ASpace
 ASpace (unsigned int ndim)
 
 ASpace (const ASpace &r)
 
ASpaceoperator= (const ASpace &r)
 
virtual ~ASpace ()
 
String toString (const AStringFormat *strfmt=nullptr) const final
 Interface for AStringable. More...
 
void move (SpacePoint &p1, const VectorDouble &vec) const
 Not to be overriden. More...
 
double getDistance (const SpacePoint &p1, const SpacePoint &p2, int ispace=-1) const
 Return the distance between two space points. More...
 
double getDistance (const SpacePoint &p1, const SpacePoint &p2, const Tensor &tensor, int ispace=-1) const
 Return the distance between two space points with the given tensor. More...
 
double getFrequentialDistance (const SpacePoint &p1, const SpacePoint &p2, const Tensor &tensor, int ispace=-1) const
 Return the distance in frequential domain between two space points with the given tensor. More...
 
VectorDouble getIncrement (const SpacePoint &p1, const SpacePoint &p2, int ispace=-1) const
 Return the increment vector between two space points. More...
 
virtual VectorDouble projCoord (const VectorDouble &coord, int ispace=-1) const
 Project the coordinates in the given space. More...
 
void setOffset (unsigned int offset)
 Customize the dimension offset index of the current space TODO : to be made private. 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
 
- Public Member Functions inherited from ICloneable
 ICloneable ()
 
virtual ~ICloneable ()
 
virtual ICloneableclone () const =0
 

Constructor & Destructor Documentation

◆ SpaceComposite() [1/3]

SpaceComposite::SpaceComposite ( )

◆ SpaceComposite() [2/3]

SpaceComposite::SpaceComposite ( const std::vector< const ASpace * > &  vectspace)

◆ SpaceComposite() [3/3]

SpaceComposite::SpaceComposite ( const SpaceComposite r)

◆ ~SpaceComposite()

SpaceComposite::~SpaceComposite ( )
virtual

Member Function Documentation

◆ addSpaceComponent()

void SpaceComposite::addSpaceComponent ( const ASpace comp)

Add a space component to me (for exemple RN(1) for time dimension) Note: The given argument is cloned.

◆ getComponent()

const ASpace * SpaceComposite::getComponent ( int  ispace = -1) const
overridevirtual

Return the space component at index ispace.

Reimplemented from ASpace.

◆ getDistances()

VectorDouble SpaceComposite::getDistances ( const SpacePoint p1,
const SpacePoint p2 
) const
overridevirtual

Return all the distances (one by space component) between two space points.

Reimplemented from ASpace.

◆ getNComponents()

unsigned int SpaceComposite::getNComponents ( ) const
overridevirtual

Get the number of space components.

Reimplemented from ASpace.

◆ getNDim()

unsigned int SpaceComposite::getNDim ( int  ispace = -1) const
overridevirtual

Get the number of dimensions.

Reimplemented from ASpace.

◆ getOffset()

unsigned int SpaceComposite::getOffset ( int  ispace = -1) const
overridevirtual

Get the offset index for coordinates.

Reimplemented from ASpace.

◆ getOrigin()

const VectorDouble & SpaceComposite::getOrigin ( int  ispace = -1) const
overridevirtual

Return the space origin coordinates.

Reimplemented from ASpace.

◆ getType()

ESpaceType SpaceComposite::getType ( ) const
inlineoverridevirtual

ICloneable interface.

Return the concrete space type

Implements ASpace.

◆ isEqual()

bool SpaceComposite::isEqual ( const ASpace space) const
overridevirtual

Return true if the given space is equal to me (same dimension and space definition)

Reimplemented from ASpace.

◆ operator=()

SpaceComposite & SpaceComposite::operator= ( const SpaceComposite r)

◆ setOrigin()

void SpaceComposite::setOrigin ( const VectorDouble origin)
overridevirtual

Update the origin of the space.

Reimplemented from ASpace.

◆ toString()

String SpaceComposite::toString ( const AStringFormat strfmt,
int  ispace 
) const
overridevirtual

Dump a space in a string (given the space index)

Reimplemented from ASpace.


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