The Original CHomP Software
Static Public Member Functions | List of all members
chomp::homology::tWrapBase< coordtype > Class Template Reference

This class is a simplified version of the point base class used only for the space wrapping support. More...

#include <pointbas.h>

Inheritance diagram for chomp::homology::tWrapBase< coordtype >:
chomp::homology::tPointBase< coordtype >

Static Public Member Functions

static int_t number (const coordtype *, int)
 No coord to number translation is available. More...
 
static bool check (const coordtype *, int)
 Always says that the point exists. More...
 
static const coordtype * coord (int_t, int)
 No number to coord translation is available. More...
 
static void quiet (bool=true)
 
static void reset (void)
 
static void forget (void)
 
static outputstreamshowused (outputstream &out)
 
static std::ostream & showused (std::ostream &out)
 
- Static Public Member Functions inherited from chomp::homology::tPointBase< coordtype >
static int_t number (const coordtype *c, int d)
 Returns the number of the point with given coordinates. More...
 
static bool check (const coordtype *c, int d)
 Checks whether this point is already included in the list. More...
 
static const coordtype * coord (int_t number, int d)
 Retrieves the coordinates of the given point. More...
 
static int defaultdimension (void)
 Determines the default dimension of points. More...
 
static void quiet (bool what=true)
 Sets the point base to be quiet or not. More...
 
static void setwrapping (const coordtype *c, int mindim=1, int maxdim=MaxBasDim)
 Sets space wrapping for all the dimensions in the range starting with 'mindim' and strictly smaller than 'maxdim'. More...
 
static void setwrapping (coordtype c, int mindim=1, int maxdim=MaxBasDim)
 Sets space wrapping for all the dimensions in the range starting with 'mindim' and strictly smaller than 'maxdim'. More...
 
static const coordtype * getwrapping (int d)
 Returns the space wrapping for the given dimension. More...
 
static void wrapcoord (coordtype *c, int dim)
 Wraps the given coordinates if necessary. More...
 
static void wrapcopy (coordtype *dest, const coordtype *src, int dim)
 Copies the coordinates and wraps them if necessary. More...
 
static void reset (void)
 Resets the internal data. More...
 
static void forget (void)
 Forgets the base points, frees memory and makes this data structure ususable: An exception is thrown if this data is used. More...
 
static outputstreamshowused (outputstream &out)
 Shows the number of vertices stored for all the dimensions. More...
 
static std::ostream & showused (std::ostream &out)
 Shows the number of vertices stored for all the dimensions. More...
 

Additional Inherited Members

- Static Protected Attributes inherited from chomp::homology::tPointBase< coordtype >
static tPointset< coordtype > ** p = NULL
 The sets of points from which numbers are taken. More...
 
static int n = 0
 The number of allocated sets of points. More...
 
static bool show = true
 Should the summary of points' usage be displayed? More...
 
static bool forgotten = false
 Were the base points forgotten? More...
 
static tPointBaseInitializer< coordtype > pointBaseInitializer
 An object responsible for deleting the pointsets at exit. More...
 

Detailed Description

template<class coordtype>
class chomp::homology::tWrapBase< coordtype >

This class is a simplified version of the point base class used only for the space wrapping support.

Definition at line 470 of file pointbas.h.

Member Function Documentation

◆ check()

template<class coordtype >
static bool chomp::homology::tWrapBase< coordtype >::check ( const coordtype *  ,
int   
)
inlinestatic

Always says that the point exists.

Definition at line 478 of file pointbas.h.

479 {return true;}

◆ coord()

template<class coordtype >
static const coordtype * chomp::homology::tWrapBase< coordtype >::coord ( int_t  ,
int   
)
inlinestatic

No number to coord translation is available.

Definition at line 482 of file pointbas.h.

483 {throw "Trying to get the coordinates of a point.";}

◆ forget()

template<class coordtype >
static void chomp::homology::tWrapBase< coordtype >::forget ( void  )
inlinestatic

Definition at line 489 of file pointbas.h.

489{return;}

◆ number()

template<class coordtype >
static int_t chomp::homology::tWrapBase< coordtype >::number ( const coordtype *  ,
int   
)
inlinestatic

No coord to number translation is available.

Definition at line 474 of file pointbas.h.

475 {throw "Trying to get a point number.";}

◆ quiet()

template<class coordtype >
static void chomp::homology::tWrapBase< coordtype >::quiet ( bool  = true)
inlinestatic

Definition at line 485 of file pointbas.h.

485{return;}

◆ reset()

template<class coordtype >
static void chomp::homology::tWrapBase< coordtype >::reset ( void  )
inlinestatic

Definition at line 487 of file pointbas.h.

487{return;}

◆ showused() [1/2]

template<class coordtype >
static outputstream & chomp::homology::tWrapBase< coordtype >::showused ( outputstream out)
inlinestatic

Definition at line 491 of file pointbas.h.

491{return out;}

◆ showused() [2/2]

template<class coordtype >
static std::ostream & chomp::homology::tWrapBase< coordtype >::showused ( std::ostream &  out)
inlinestatic

Definition at line 493 of file pointbas.h.

493{return out;}

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