mirror of
https://github.com/nasa/trick.git
synced 2024-12-21 22:17:51 +00:00
06a405ef35
stl::stack code completed. refs #206
91 lines
2.9 KiB
C++
91 lines
2.9 KiB
C++
/*
|
|
PURPOSE: (Illustrate how to checkpoint STLs)
|
|
LIBRARY_DEPENDENCIES: (
|
|
(STLCheckpoint.o)
|
|
)
|
|
*/
|
|
|
|
#ifndef STLCHECKPOINT_HH
|
|
#define STLCHECKPOINT_HH
|
|
|
|
#include <map>
|
|
#include <vector>
|
|
#include <list>
|
|
#include <deque>
|
|
#include <set>
|
|
#include <string>
|
|
#include <stack>
|
|
#include <queue>
|
|
#include <utility>
|
|
|
|
class STLCheckpoint {
|
|
|
|
public:
|
|
|
|
STLCheckpoint() ;
|
|
STLCheckpoint(std::string in_name) ;
|
|
int speak() ;
|
|
|
|
std::string name ;
|
|
|
|
std::map< double , double > double_map ;
|
|
std::map< std::string , int > string_key_map ;
|
|
std::map< int , std::string > string_data_map ;
|
|
std::map< std::string , std::string > string_map ;
|
|
|
|
std::map< int , std::vector< int > > map_int_vector_int ;
|
|
std::map< std::pair< int , int > , int > gcd ;
|
|
std::map< std::pair< int , int > , std::pair< int , int > > map_pair_pair ;
|
|
std::map< std::pair< int , int > , std::vector< int > > common_multiples ;
|
|
|
|
std::multimap< int , int > int_multimap ;
|
|
std::multimap< std::string , int > string_key_multimap ;
|
|
std::multimap< int , std::string > string_data_multimap ;
|
|
std::multimap< std::string , std::string > string_multimap ;
|
|
|
|
std::vector< double > double_vector ;
|
|
std::vector< std::string > string_vector ;
|
|
|
|
std::list< short > short_list ;
|
|
std::list< std::string > string_list ;
|
|
|
|
std::deque< float > float_deque ;
|
|
std::deque< std::string > string_deque ;
|
|
|
|
std::set< int > int_set ;
|
|
std::set< std::string > string_set ;
|
|
|
|
std::multiset< long > long_multiset ;
|
|
std::multiset< std::string > string_multiset ;
|
|
|
|
std::stack< unsigned int > uint_stack ;
|
|
std::stack< std::string > string_stack ;
|
|
std::stack< std::vector<int> > stack_vector_int ;
|
|
|
|
std::queue< int > int_queue ;
|
|
std::queue< std::string > string_queue ;
|
|
std::queue< std::vector<int> > queue_vector_int ;
|
|
|
|
std::priority_queue< int > int_priority_queue ;
|
|
std::priority_queue< std::string > string_priority_queue ;
|
|
std::priority_queue< int , std::vector< int > , std::greater< int > > int_greater_priority_queue ;
|
|
std::priority_queue< std::vector<int> > priority_queue_vector_int ;
|
|
|
|
std::pair< int , int > int_pair ;
|
|
std::pair< std::string , int > string_first_pair ;
|
|
std::pair< int , std::string > string_second_pair ;
|
|
std::pair< std::string , std::string > string_pair ;
|
|
|
|
std::pair< int , std::pair< int, int > > int_pair_int_int ;
|
|
std::pair< std::pair< int, int > , int > pair_int_int_int ;
|
|
|
|
std::pair< std::pair< int, int > , std::pair< int, int > > pair_pair_pair ;
|
|
|
|
std::vector< std::vector< double > > vector_vector_double ;
|
|
std::vector< std::vector< std::vector< double > > > vector_vector_vector_double ;
|
|
//std::vector< std::list< double > > vector_list_double ;
|
|
} ;
|
|
|
|
#endif
|
|
|