Text-encoded bitcodes. More...
#include <cubfiles.h>
Public Member Functions | |
| bitcodefile (const char *filename) | |
| The constructor. | |
| int | dim () const |
| What is the dimension of the set of cubes? | |
| int | count () const |
| How many cubes are there in the set? | |
| bool | bitmaptype () const |
| Is this a bitmap type of set of cubes? | |
| bool | elementary () const |
| Is this a set of elementary cubes, as opposed to full cubes? | |
| int | readcubes (chomp::homology::CubicalComplex &s) const |
| Reads a set of cubical cells from the file. | |
| int | readcubes (chomp::homology::SetOfCubes &s) const |
| Reads a cubical set from the file. | |
| int | readcubes (int *&sizes, char *&bytes, int padding=0, bool power2=false) const |
| Reads a bitmap from a file. | |
Static Public Member Functions | |
| static const char * | name () |
| The name of this type of a cubical set. | |
| static std::ostream & | describe (std::ostream &out) |
| Describes this particular type of a set of cubes. | |
| static bool | compatible (const char *filename) |
| Verifies if the file format is compatible with this cubfile type. | |
Private Member Functions | |
| void | analyze () const |
| Analyzes the file to determine the number of cubes and the scope of their coordinates. | |
Static Private Attributes | |
| static cubfile_traits < bitcodefile > | t |
| Add this type of a cubical set to the list. | |
Text-encoded bitcodes.
Definition at line 520 of file cubfiles.h.
| chomp::homengin::bitcodefile::bitcodefile | ( | const char * | filename | ) | [inline] |
The constructor.
Definition at line 588 of file cubfiles.h.
| void chomp::homengin::bitcodefile::analyze | ( | ) | const [private] |
| bool chomp::homengin::bitcodefile::bitmaptype | ( | ) | const [inline, virtual] |
Is this a bitmap type of set of cubes?
Reimplemented from chomp::homengin::cubfile.
Definition at line 543 of file cubfiles.h.
{
return false;
}
| static bool chomp::homengin::bitcodefile::compatible | ( | const char * | filename | ) | [static] |
Verifies if the file format is compatible with this cubfile type.
Reimplemented from chomp::homengin::cubfile.
| int chomp::homengin::bitcodefile::count | ( | ) | const [inline, virtual] |
How many cubes are there in the set?
Reimplemented from chomp::homengin::cubfile.
Definition at line 535 of file cubfiles.h.
References chomp::homengin::cubfile::_count, and analyze().
| static std::ostream& chomp::homengin::bitcodefile::describe | ( | std::ostream & | out | ) | [static] |
Describes this particular type of a set of cubes.
Reimplemented from chomp::homengin::cubfile.
| int chomp::homengin::bitcodefile::dim | ( | ) | const [inline, virtual] |
What is the dimension of the set of cubes?
Reimplemented from chomp::homengin::cubfile.
Definition at line 527 of file cubfiles.h.
References chomp::homengin::cubfile::_dim, and analyze().
| bool chomp::homengin::bitcodefile::elementary | ( | ) | const [inline, virtual] |
Is this a set of elementary cubes, as opposed to full cubes?
Reimplemented from chomp::homengin::cubfile.
Definition at line 549 of file cubfiles.h.
{
return false;
}
| static const char* chomp::homengin::bitcodefile::name | ( | ) | [inline, static] |
The name of this type of a cubical set.
Reimplemented from chomp::homengin::cubfile.
Definition at line 555 of file cubfiles.h.
{
return "text bitcodes";
}
| int chomp::homengin::bitcodefile::readcubes | ( | int *& | sizes, | |
| char *& | bytes, | |||
| int | padding = 0, |
|||
| bool | power2 = false | |||
| ) | const [virtual] |
Reads a bitmap from a file.
Reimplemented from chomp::homengin::cubfile.
| int chomp::homengin::bitcodefile::readcubes | ( | chomp::homology::CubicalComplex & | s | ) | const [virtual] |
Reads a set of cubical cells from the file.
Reimplemented from chomp::homengin::cubfile.
| int chomp::homengin::bitcodefile::readcubes | ( | chomp::homology::SetOfCubes & | s | ) | const [virtual] |
Reads a cubical set from the file.
Reimplemented from chomp::homengin::cubfile.
cubfile_traits<bitcodefile> chomp::homengin::bitcodefile::t [static, private] |
Add this type of a cubical set to the list.
Definition at line 582 of file cubfiles.h.
1.7.1