Compounds | |
class | printer_of_bij_mapping |
helper class for custom output of a bijective map. More... | |
class | bijective_mapping |
Represents a one-to-one mapping T1 -> T2. More... | |
class | inverse_mapping |
Represents a mapping T2 --> T1 which is the inverse of some bijective_mapping<T1,T2>. More... | |
class | domain_of_bijective_mapping |
Represents the domain of definition of a mapping. More... | |
class | range_of_bijective_mapping |
Represents the range (image) of a bijective mapping ![]() | |
Functions | |
template<class T1, class T2> void | write_bm (bijective_mapping< T1, T2 > const &m, ostream &out) |
write a bijective map to ostream. More... | |
template<class T1, class T2> void | read_bm (bijective_mapping< T1, T2 > &m, istream &in) |
read a bijective map from istream. More... | |
template<class T1, class T2> printer_of_bij_mapping< T1, T2 > | Printer (bijective_mapping< T1, T2 > const &m) |
helper function for custom output of a bijective map. More... |
This module contains class templates for representing bijective mappings:
(same for bijective_mapping<T1,T2>, inverse_mapping<T1,T2>, domain_of_bijective_mapping<T1,T2>, range_of_bijective_mapping<T1,T2>)
hash<T1>
is defined. equal_to<T1>
is defined.
|
write a bijective map to ostream.
Definition at line 10 of file bijective-mapping.C. Referenced by main. |
|
read a bijective map from istream.
Definition at line 19 of file bijective-mapping.C. Referenced by main. |
|
helper function for custom output of a bijective map. Usage: bijective_mapping<int,int> bm; ... cout << Printer(bm) << endl; Definition at line 137 of file bijective-mapping.h. |