trick/test/SIM_stls/models/STLCheckpoint.hh

91 lines
2.9 KiB
C++
Raw Normal View History

2015-02-26 15:02:31 +00:00
/*
PURPOSE: (Illustrate how to checkpoint STLs)
2015-02-26 15:02:31 +00:00
LIBRARY_DEPENDENCIES: (
(STLCheckpoint.o)
)
*/
#ifndef STLCHECKPOINT_HH
#define STLCHECKPOINT_HH
2015-02-26 15:02:31 +00:00
#include <map>
#include <vector>
#include <list>
#include <deque>
#include <set>
#include <string>
#include <stack>
#include <queue>
#include <utility>
class STLCheckpoint {
public:
2015-02-26 15:02:31 +00:00
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 ;
2015-02-26 15:02:31 +00:00
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 ;
2015-02-26 15:02:31 +00:00
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 ;
2015-02-26 15:02:31 +00:00
std::vector< double > double_vector ;
std::vector< std::string > string_vector ;
2015-02-26 15:02:31 +00:00
std::list< short > short_list ;
std::list< std::string > string_list ;
2015-02-26 15:02:31 +00:00
std::deque< float > float_deque ;
std::deque< std::string > string_deque ;
2015-02-26 15:02:31 +00:00
std::set< int > int_set ;
std::set< std::string > string_set ;
2015-02-26 15:02:31 +00:00
std::multiset< long > long_multiset ;
std::multiset< std::string > string_multiset ;
2015-02-26 15:02:31 +00:00
std::stack< unsigned int > uint_stack ;
std::stack< std::string > string_stack ;
std::stack< std::vector<int> > stack_vector_int ;
2015-02-26 15:02:31 +00:00
std::queue< int > int_queue ;
std::queue< std::string > string_queue ;
std::queue< std::vector<int> > queue_vector_int ;
2015-02-26 15:02:31 +00:00
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 ;
2015-02-26 15:02:31 +00:00
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 ;
2015-02-26 15:02:31 +00:00
} ;
#endif