Public Member Functions

chomp::homengin::cubfile_traits< cubfileT > Class Template Reference

This class defines some common properties of the corresponding classes which define various types of sets of cubes. More...

#include <cubfiles.h>

Inheritance diagram for chomp::homengin::cubfile_traits< cubfileT >:
chomp::homengin::cubtype

List of all members.

Public Member Functions

 cubfile_traits ()
 The default constructor.
 ~cubfile_traits ()
 The destructor.
const char * name () const
 The name of the corresponding cubical set.
std::ostream & describe (std::ostream &out) const
 Describe the given type of cubical sets.
bool compatible (const char *filename) const
 Verifies if the file format is compatible with this cubfile type.
cubfilenewcubfile (const char *filename) const
 Creates a new cubfile object of the desired type.

Detailed Description

template<class cubfileT>
class chomp::homengin::cubfile_traits< cubfileT >

This class defines some common properties of the corresponding classes which define various types of sets of cubes.

Definition at line 303 of file cubfiles.h.


Constructor & Destructor Documentation

template<class cubfileT>
chomp::homengin::cubfile_traits< cubfileT >::cubfile_traits (  )  [inline]

The default constructor.

Definition at line 307 of file cubfiles.h.

        {
                return;
        }

template<class cubfileT>
chomp::homengin::cubfile_traits< cubfileT >::~cubfile_traits (  )  [inline]

The destructor.

Definition at line 313 of file cubfiles.h.

        {
                return;
        }


Member Function Documentation

template<class cubfileT>
bool chomp::homengin::cubfile_traits< cubfileT >::compatible ( const char *  filename  )  const [inline, virtual]

Verifies if the file format is compatible with this cubfile type.

Implements chomp::homengin::cubtype.

Definition at line 331 of file cubfiles.h.

Referenced by chomp::homengin::cubfile_traits< bitcodefile >::compatible().

        {
                return cubfileT::compatible (filename);
        }

template<class cubfileT>
std::ostream& chomp::homengin::cubfile_traits< cubfileT >::describe ( std::ostream &  out  )  const [inline, virtual]

Describe the given type of cubical sets.

Implements chomp::homengin::cubtype.

Definition at line 325 of file cubfiles.h.

Referenced by chomp::homengin::cubfile_traits< bitcodefile >::describe().

        {
                return cubfileT::describe (out);
        }

template<class cubfileT>
const char* chomp::homengin::cubfile_traits< cubfileT >::name (  )  const [inline, virtual]

The name of the corresponding cubical set.

Implements chomp::homengin::cubtype.

Definition at line 319 of file cubfiles.h.

Referenced by chomp::homengin::cubfile_traits< bitcodefile >::name().

        {
                return cubfileT::name ();
        }

template<class cubfileT>
cubfile* chomp::homengin::cubfile_traits< cubfileT >::newcubfile ( const char *  filename  )  const [inline, virtual]

Creates a new cubfile object of the desired type.

Implements chomp::homengin::cubtype.

Definition at line 337 of file cubfiles.h.

        {
                return new cubfileT (filename);
        }


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