|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
ah-convert.H and ah-stl-utils.H in the same program. More...
Go to the source code of this file.
Functions | |
| std::vector< int > | other_unit_to_vector (const Aleph::DynList< int > &l) |
| Aleph::DynList< int > | other_unit_vector_to_DynList (const std::vector< int > &v) |
| Aleph::DynArray< int > | other_unit_vector_to_DynArray (const std::vector< int > &v) |
| TEST (AhConvertComposition, BothUnitsConvertTheSameWay) | |
| TEST (AhConvertComposition, ToVectorTakesWhatEitherHeaderTook) | |
ah-convert.H and ah-stl-utils.H in the same program.
Both headers defined to_vector(), vector_to_DynList() and vector_to_DynArray(), so a translation unit could not include the two. This one includes ah-convert.H first; ah_convert_composition_other.cc, the other translation unit of this program, includes ah-stl-utils.H first, and both instantiate the same conversions.
Definition in file ah_convert_composition_test.cc.
| std::vector< int > other_unit_to_vector | ( | const Aleph::DynList< int > & | l | ) |
Definition at line 44 of file ah_convert_composition_other.cc.
References l, and Aleph::to_vector().
Referenced by TEST().
| Aleph::DynArray< int > other_unit_vector_to_DynArray | ( | const std::vector< int > & | v | ) |
Definition at line 54 of file ah_convert_composition_other.cc.
References Aleph::vector_to_DynArray().
Referenced by TEST().
| Aleph::DynList< int > other_unit_vector_to_DynList | ( | const std::vector< int > & | v | ) |
Definition at line 49 of file ah_convert_composition_other.cc.
References Aleph::vector_to_DynList().
Referenced by TEST().
| TEST | ( | AhConvertComposition | , |
| BothUnitsConvertTheSameWay | |||
| ) |
Definition at line 96 of file ah_convert_composition_test.cc.
References Aleph::DynList< T >::append(), l, other_unit_to_vector(), other_unit_vector_to_DynArray(), other_unit_vector_to_DynList(), Aleph::DynArray< T >::size(), Aleph::to_vector(), Aleph::vector_to_DynArray(), and Aleph::vector_to_DynList().
| TEST | ( | AhConvertComposition | , |
| ToVectorTakesWhatEitherHeaderTook | |||
| ) |
Definition at line 121 of file ah_convert_composition_test.cc.
References Aleph::DynSetTree< Key, Tree, Compare >::insert(), and Aleph::to_vector().