2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
/*
|
2015-03-23 21:03:14 +00:00
|
|
|
PURPOSE: (Helpers to checkpoint STLs)
|
2015-02-26 15:02:31 +00:00
|
|
|
*/
|
|
|
|
|
2015-03-23 21:03:14 +00:00
|
|
|
#ifndef CHECKPOINT_QUEUE_HH
|
|
|
|
#define CHECKPOINT_QUEUE_HH
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
#include <queue>
|
|
|
|
#include <algorithm>
|
2016-03-31 14:22:45 +00:00
|
|
|
#include <typeinfo>
|
|
|
|
#include <sstream>
|
|
|
|
#include <type_traits>
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#include <cxxabi.h>
|
|
|
|
#endif
|
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
#include "checkpoint_is_stl_container.hh"
|
2016-03-31 20:48:19 +00:00
|
|
|
#include "checkpoint_stl_protos.hh"
|
2016-03-31 14:22:45 +00:00
|
|
|
#include "checkpoint_fwd_declare.hh"
|
2016-03-31 19:50:27 +00:00
|
|
|
#include "checkpoint_sequence_stl.hh"
|
2015-06-01 15:28:29 +00:00
|
|
|
#include "trick/memorymanager_c_intf.h"
|
|
|
|
#include "trick/message_proto.h"
|
2015-02-26 15:02:31 +00:00
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
/* =================================================================================================*/
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
// queue: intrinsic
|
|
|
|
template <typename ITEM_TYPE, typename _Sequence,
|
|
|
|
typename std::enable_if<!is_stl_container<ITEM_TYPE>::value>::type* >
|
|
|
|
int checkpoint_stl(std::queue<ITEM_TYPE,_Sequence> & in_stl , std::string object_name , std::string var_name ) {
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
unsigned int ii ;
|
|
|
|
unsigned int cont_size ;
|
2016-03-31 14:22:45 +00:00
|
|
|
std::ostringstream var_declare ;
|
2015-02-26 15:02:31 +00:00
|
|
|
int status ;
|
|
|
|
|
2016-03-29 14:59:49 +00:00
|
|
|
ITEM_TYPE * items = nullptr ;
|
2016-03-31 14:22:45 +00:00
|
|
|
std::queue<ITEM_TYPE,_Sequence> temp_queue(in_stl) ;
|
2015-02-26 15:02:31 +00:00
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
cont_size = temp_queue.size() ;
|
2019-09-23 19:25:27 +00:00
|
|
|
std::replace_if(object_name.begin(), object_name.end(), static_cast<int (*)(int)>(std::ispunct), '_');
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
if ( cont_size > 0 ) {
|
2018-10-04 18:58:28 +00:00
|
|
|
std::string type_string;
|
|
|
|
try {
|
|
|
|
type_string = stl_type_name_convert(abi::__cxa_demangle(typeid(*items).name(), 0, 0, &status )) ;
|
|
|
|
} catch (const std::bad_typeid& e) {
|
|
|
|
message_publish(1, "Error, having difficulty checkpointing %s.%s\n", object_name.c_str(), var_name.c_str()) ;
|
|
|
|
return 0 ;
|
|
|
|
}
|
2016-03-31 20:48:19 +00:00
|
|
|
var_declare << type_string << " "
|
2016-03-31 14:22:45 +00:00
|
|
|
<< object_name << "_" << var_name << "[" << cont_size << "]" ;
|
|
|
|
items = (ITEM_TYPE *)TMM_declare_var_s(var_declare.str().c_str()) ;
|
2018-01-25 19:25:29 +00:00
|
|
|
if ( items ) {
|
|
|
|
TMM_add_checkpoint_alloc_dependency(std::string(object_name + "_" + var_name).c_str()) ;
|
|
|
|
//message_publish(1, "CHECKPOINT_STL_STACK with %s\n", var_declare) ;
|
|
|
|
|
|
|
|
for ( ii = 0 ; ii < cont_size ; ii++ ) {
|
|
|
|
items[ii] = temp_queue.front() ;
|
|
|
|
temp_queue.pop() ;
|
|
|
|
}
|
2015-02-26 15:02:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0 ;
|
|
|
|
}
|
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
// queue: STL
|
|
|
|
template <typename ITEM_TYPE, typename _Sequence,
|
|
|
|
typename std::enable_if< is_stl_container<ITEM_TYPE>::value>::type* >
|
|
|
|
int checkpoint_stl(std::queue<ITEM_TYPE,_Sequence> & in_stl , std::string object_name , std::string var_name ) {
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
unsigned int ii ;
|
|
|
|
unsigned int cont_size ;
|
2016-03-31 14:22:45 +00:00
|
|
|
std::ostringstream var_declare ;
|
2015-02-26 15:02:31 +00:00
|
|
|
|
2016-03-31 15:32:13 +00:00
|
|
|
std::string * items = nullptr ;
|
2016-03-31 14:22:45 +00:00
|
|
|
std::queue<ITEM_TYPE,_Sequence> temp_queue(in_stl) ;
|
2015-02-26 15:02:31 +00:00
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
cont_size = temp_queue.size() ;
|
2019-09-23 19:25:27 +00:00
|
|
|
std::replace_if(object_name.begin(), object_name.end(), static_cast<int (*)(int)>(std::ispunct), '_');
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
if ( cont_size > 0 ) {
|
2016-03-31 14:22:45 +00:00
|
|
|
var_declare << "std::string "
|
|
|
|
<< object_name << "_" << var_name << "[" << cont_size << "]" ;
|
2016-03-31 15:32:13 +00:00
|
|
|
items = (std::string *)TMM_declare_var_s(var_declare.str().c_str()) ;
|
2018-01-25 19:25:29 +00:00
|
|
|
if ( items ) {
|
|
|
|
TMM_add_checkpoint_alloc_dependency(std::string(object_name + "_" + var_name).c_str()) ;
|
|
|
|
//message_publish(1, "CHECKPOINT_STL_STACK with %s\n", var_declare) ;
|
|
|
|
|
|
|
|
for ( ii = 0 ; ii < cont_size ; ii++ ) {
|
|
|
|
std::ostringstream sub_elements ;
|
|
|
|
sub_elements << object_name << "_" << var_name << "_" << ii ;
|
|
|
|
items[ii] = sub_elements.str() ;
|
|
|
|
|
|
|
|
std::ostringstream index_string ;
|
|
|
|
index_string << ii ;
|
|
|
|
checkpoint_stl (temp_queue.front(), object_name + "_" + var_name, index_string.str()) ;
|
|
|
|
temp_queue.pop() ;
|
|
|
|
}
|
2016-03-31 14:22:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0 ;
|
|
|
|
}
|
|
|
|
|
|
|
|
// priority queue: intrinsic
|
|
|
|
template <typename ITEM_TYPE, typename _Container, typename _Compare,
|
|
|
|
typename std::enable_if<!is_stl_container<ITEM_TYPE>::value>::type* >
|
|
|
|
int checkpoint_stl(std::priority_queue<ITEM_TYPE, _Container, _Compare> & in_stl ,
|
|
|
|
std::string object_name , std::string var_name ) {
|
|
|
|
unsigned int ii ;
|
|
|
|
unsigned int cont_size ;
|
|
|
|
std::ostringstream var_declare ;
|
|
|
|
int status ;
|
|
|
|
|
|
|
|
ITEM_TYPE * items = nullptr ;
|
|
|
|
std::priority_queue<ITEM_TYPE,_Container,_Compare> temp_queue(in_stl) ;
|
2015-02-26 15:02:31 +00:00
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
cont_size = temp_queue.size() ;
|
2019-09-23 19:25:27 +00:00
|
|
|
std::replace_if(object_name.begin(), object_name.end(), static_cast<int (*)(int)>(std::ispunct), '_');
|
2016-03-31 14:22:45 +00:00
|
|
|
|
|
|
|
if ( cont_size > 0 ) {
|
2018-10-04 18:58:28 +00:00
|
|
|
std::string type_string;
|
|
|
|
try {
|
|
|
|
type_string = stl_type_name_convert(abi::__cxa_demangle(typeid(*items).name(), 0, 0, &status )) ;
|
|
|
|
} catch (const std::bad_typeid& e) {
|
|
|
|
message_publish(1, "Error, having difficulty checkpointing %s.%s\n", object_name.c_str(), var_name.c_str()) ;
|
|
|
|
return 0 ;
|
|
|
|
}
|
2016-03-31 20:48:19 +00:00
|
|
|
var_declare << type_string << " "
|
2016-03-31 14:22:45 +00:00
|
|
|
<< object_name << "_" << var_name << "[" << cont_size << "]" ;
|
|
|
|
items = (ITEM_TYPE *)TMM_declare_var_s(var_declare.str().c_str()) ;
|
2018-01-25 19:25:29 +00:00
|
|
|
if ( items ) {
|
|
|
|
TMM_add_checkpoint_alloc_dependency(std::string(object_name + "_" + var_name).c_str()) ;
|
|
|
|
//message_publish(1, "CHECKPOINT_STL_STACK with %s\n", var_declare) ;
|
|
|
|
|
|
|
|
for ( ii = 0 ; ii < cont_size ; ii++ ) {
|
|
|
|
items[ii] = temp_queue.top() ;
|
|
|
|
temp_queue.pop() ;
|
|
|
|
}
|
2015-02-26 15:02:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0 ;
|
|
|
|
}
|
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
// priority queue: STL
|
|
|
|
template <typename ITEM_TYPE, typename _Container, typename _Compare,
|
|
|
|
typename std::enable_if< is_stl_container<ITEM_TYPE>::value>::type* >
|
|
|
|
int checkpoint_stl(std::priority_queue<ITEM_TYPE, _Container, _Compare> & in_stl ,
|
|
|
|
std::string object_name , std::string var_name ) {
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
unsigned int ii ;
|
|
|
|
unsigned int cont_size ;
|
2016-03-31 14:22:45 +00:00
|
|
|
std::ostringstream var_declare ;
|
2015-02-26 15:02:31 +00:00
|
|
|
|
2016-03-31 15:32:13 +00:00
|
|
|
std::string * items = nullptr ;
|
2016-03-31 14:22:45 +00:00
|
|
|
std::priority_queue<ITEM_TYPE,_Container,_Compare> temp_queue(in_stl) ;
|
2015-02-26 15:02:31 +00:00
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
cont_size = temp_queue.size() ;
|
2019-09-23 19:25:27 +00:00
|
|
|
std::replace_if(object_name.begin(), object_name.end(), static_cast<int (*)(int)>(std::ispunct), '_');
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
if ( cont_size > 0 ) {
|
2016-03-31 19:50:27 +00:00
|
|
|
var_declare << "std::string "
|
2016-03-31 14:22:45 +00:00
|
|
|
<< object_name << "_" << var_name << "[" << cont_size << "]" ;
|
2016-03-31 15:32:13 +00:00
|
|
|
items = (std::string *)TMM_declare_var_s(var_declare.str().c_str()) ;
|
2018-01-25 19:25:29 +00:00
|
|
|
if ( items ) {
|
|
|
|
TMM_add_checkpoint_alloc_dependency(std::string(object_name + "_" + var_name).c_str()) ;
|
|
|
|
//message_publish(1, "CHECKPOINT_STL_STACK with %s\n", var_declare) ;
|
|
|
|
|
|
|
|
for ( ii = 0 ; ii < cont_size ; ii++ ) {
|
|
|
|
std::ostringstream sub_elements ;
|
|
|
|
sub_elements << object_name << "_" << var_name << "_" << ii ;
|
|
|
|
items[ii] = sub_elements.str() ;
|
|
|
|
|
|
|
|
std::ostringstream index_string ;
|
|
|
|
index_string << ii ;
|
|
|
|
checkpoint_stl (const_cast< ITEM_TYPE &>(temp_queue.top()), object_name + "_" + var_name, index_string.str()) ;
|
|
|
|
temp_queue.pop() ;
|
|
|
|
}
|
2015-02-26 15:02:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0 ;
|
|
|
|
}
|
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
/* =================================================================================================*/
|
|
|
|
|
2016-03-31 19:50:27 +00:00
|
|
|
// The delete routines use the same method as the sequence types
|
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
template <typename ITEM_TYPE, typename _Sequence>
|
|
|
|
int delete_stl(std::queue<ITEM_TYPE,_Sequence> & in_stl , std::string object_name , std::string var_name ) {
|
2016-03-31 19:50:27 +00:00
|
|
|
return delete_sequence_alloc( in_stl , object_name , var_name ) ;
|
2016-03-31 14:22:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
template <typename ITEM_TYPE, typename _Container, typename _Compare>
|
|
|
|
int delete_stl(std::priority_queue<ITEM_TYPE,_Container,_Compare> & in_stl ,
|
|
|
|
std::string object_name , std::string var_name ) {
|
2016-03-31 19:50:27 +00:00
|
|
|
return delete_sequence_alloc( in_stl , object_name , var_name ) ;
|
2016-03-31 14:22:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* =================================================================================================*/
|
|
|
|
|
|
|
|
/* Find the arrays the map data was stored in the checkpoint using ref_attributes
|
2015-02-26 15:02:31 +00:00
|
|
|
From the address of the resulting ref_attributes, we can figure out the number of
|
|
|
|
items that were stored in the checkpoint. Knowing the size, we can restore
|
2016-03-31 14:22:45 +00:00
|
|
|
the map from the 2 arrays.
|
2015-02-26 15:02:31 +00:00
|
|
|
*/
|
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
// queue: intrinsic
|
|
|
|
template <typename ITEM_TYPE, typename _Sequence,
|
|
|
|
typename std::enable_if<!is_stl_container<ITEM_TYPE>::value>::type* >
|
|
|
|
int restore_stl(std::queue<ITEM_TYPE,_Sequence> & in_stl , std::string object_name , std::string var_name ) {
|
2015-02-26 15:02:31 +00:00
|
|
|
unsigned int ii ;
|
|
|
|
unsigned int cont_size ;
|
|
|
|
|
|
|
|
REF2 * items_ref ;
|
2016-03-31 14:22:45 +00:00
|
|
|
ITEM_TYPE * items ;
|
2019-09-23 19:25:27 +00:00
|
|
|
std::replace_if(object_name.begin(), object_name.end(), static_cast<int (*)(int)>(std::ispunct), '_');
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
//message_publish(1, "RESTORE_STL_queue %s_%s\n", object_name.c_str() , var_name.c_str()) ;
|
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
items_ref = ref_attributes((char *)(object_name + std::string("_") + var_name).c_str()) ;
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
if ( items_ref != NULL ) {
|
2016-03-29 14:26:49 +00:00
|
|
|
cont_size = in_stl.size() ;
|
|
|
|
for ( ii = 0 ; ii < cont_size ; ii++ ) {
|
|
|
|
in_stl.pop() ;
|
|
|
|
}
|
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
items = (ITEM_TYPE *)items_ref->address ;
|
2015-02-26 15:02:31 +00:00
|
|
|
cont_size = get_size((char *)items) ;
|
|
|
|
|
|
|
|
for ( ii = 0 ; ii < cont_size ; ii++ ) {
|
|
|
|
in_stl.push( items[ii] ) ;
|
2016-03-29 14:26:49 +00:00
|
|
|
}
|
2015-02-26 15:02:31 +00:00
|
|
|
delete_stl( in_stl , object_name , var_name ) ;
|
2016-03-29 14:26:49 +00:00
|
|
|
}
|
2015-02-26 15:02:31 +00:00
|
|
|
return 0 ;
|
|
|
|
}
|
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
// queue: STL
|
|
|
|
template <typename ITEM_TYPE, typename _Sequence,
|
|
|
|
typename std::enable_if< is_stl_container<ITEM_TYPE>::value>::type* >
|
|
|
|
int restore_stl(std::queue<ITEM_TYPE,_Sequence> & in_stl , std::string object_name , std::string var_name ) {
|
|
|
|
unsigned int ii ;
|
|
|
|
unsigned int cont_size ;
|
|
|
|
|
|
|
|
REF2 * items_ref ;
|
|
|
|
std::string * items ;
|
2019-09-23 19:25:27 +00:00
|
|
|
std::replace_if(object_name.begin(), object_name.end(), static_cast<int (*)(int)>(std::ispunct), '_');
|
2016-03-31 14:22:45 +00:00
|
|
|
|
|
|
|
//message_publish(1, "RESTORE_STL_queue %s_%s\n", object_name.c_str() , var_name.c_str()) ;
|
|
|
|
|
|
|
|
items_ref = ref_attributes((char *)(object_name + "_" + var_name).c_str()) ;
|
|
|
|
|
|
|
|
if ( items_ref != NULL ) {
|
|
|
|
cont_size = in_stl.size() ;
|
|
|
|
for ( ii = 0 ; ii < cont_size ; ii++ ) {
|
|
|
|
in_stl.pop() ;
|
|
|
|
}
|
|
|
|
|
|
|
|
items = (std::string *)items_ref->address ;
|
|
|
|
cont_size = get_size((char *)items) ;
|
2015-02-26 15:02:31 +00:00
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
for ( ii = 0 ; ii < cont_size ; ii++ ) {
|
|
|
|
ITEM_TYPE vt ;
|
|
|
|
std::ostringstream index_string ;
|
|
|
|
index_string << ii ;
|
|
|
|
restore_stl( vt , object_name + "_" + var_name , index_string.str()) ;
|
|
|
|
in_stl.push( vt ) ;
|
|
|
|
}
|
|
|
|
delete_stl( in_stl , object_name , var_name ) ;
|
|
|
|
}
|
|
|
|
return 0 ;
|
|
|
|
}
|
|
|
|
|
|
|
|
// priority_queue: intrinsic
|
|
|
|
template <typename ITEM_TYPE, typename _Container, typename _Compare,
|
|
|
|
typename std::enable_if<!is_stl_container<ITEM_TYPE>::value>::type* >
|
|
|
|
int restore_stl(std::priority_queue<ITEM_TYPE,_Container,_Compare> & in_stl ,
|
|
|
|
std::string object_name , std::string var_name ) {
|
2015-02-26 15:02:31 +00:00
|
|
|
unsigned int ii ;
|
|
|
|
unsigned int cont_size ;
|
|
|
|
|
|
|
|
REF2 * items_ref ;
|
2016-03-31 14:22:45 +00:00
|
|
|
ITEM_TYPE * items ;
|
2019-09-23 19:25:27 +00:00
|
|
|
std::replace_if(object_name.begin(), object_name.end(), static_cast<int (*)(int)>(std::ispunct), '_');
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
//message_publish(1, "RESTORE_STL_queue %s_%s\n", object_name.c_str() , var_name.c_str()) ;
|
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
items_ref = ref_attributes((char *)(object_name + std::string("_") + var_name).c_str()) ;
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
if ( items_ref != NULL ) {
|
2016-03-31 14:22:45 +00:00
|
|
|
cont_size = in_stl.size() ;
|
|
|
|
for ( ii = 0 ; ii < cont_size ; ii++ ) {
|
|
|
|
in_stl.pop() ;
|
|
|
|
}
|
|
|
|
|
|
|
|
items = (ITEM_TYPE *)items_ref->address ;
|
2015-02-26 15:02:31 +00:00
|
|
|
cont_size = get_size((char *)items) ;
|
|
|
|
|
|
|
|
for ( ii = 0 ; ii < cont_size ; ii++ ) {
|
|
|
|
in_stl.push( items[ii] ) ;
|
2016-03-29 14:26:49 +00:00
|
|
|
}
|
2015-02-26 15:02:31 +00:00
|
|
|
delete_stl( in_stl , object_name , var_name ) ;
|
2016-03-29 14:26:49 +00:00
|
|
|
}
|
2015-02-26 15:02:31 +00:00
|
|
|
return 0 ;
|
|
|
|
}
|
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
// priority_queue: STL
|
|
|
|
template <typename ITEM_TYPE, typename _Container, typename _Compare,
|
|
|
|
typename std::enable_if< is_stl_container<ITEM_TYPE>::value>::type* >
|
|
|
|
int restore_stl(std::priority_queue<ITEM_TYPE,_Container,_Compare> & in_stl ,
|
|
|
|
std::string object_name , std::string var_name ) {
|
|
|
|
unsigned int ii ;
|
|
|
|
unsigned int cont_size ;
|
2015-02-26 15:02:31 +00:00
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
REF2 * items_ref ;
|
|
|
|
std::string * items ;
|
2019-09-23 19:25:27 +00:00
|
|
|
std::replace_if(object_name.begin(), object_name.end(), static_cast<int (*)(int)>(std::ispunct), '_');
|
2015-02-26 15:02:31 +00:00
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
//message_publish(1, "RESTORE_STL_queue %s_%s\n", object_name.c_str() , var_name.c_str()) ;
|
2015-02-26 15:02:31 +00:00
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
items_ref = ref_attributes((char *)(object_name + "_" + var_name).c_str()) ;
|
2015-02-26 15:02:31 +00:00
|
|
|
|
2016-03-31 14:22:45 +00:00
|
|
|
if ( items_ref != NULL ) {
|
|
|
|
cont_size = in_stl.size() ;
|
|
|
|
for ( ii = 0 ; ii < cont_size ; ii++ ) {
|
|
|
|
in_stl.pop() ;
|
|
|
|
}
|
|
|
|
|
|
|
|
items = (std::string *)items_ref->address ;
|
|
|
|
cont_size = get_size((char *)items) ;
|
|
|
|
|
|
|
|
for ( ii = 0 ; ii < cont_size ; ii++ ) {
|
|
|
|
ITEM_TYPE vt ;
|
|
|
|
std::ostringstream index_string ;
|
|
|
|
index_string << ii ;
|
|
|
|
restore_stl( vt , object_name + "_" + var_name , index_string.str()) ;
|
|
|
|
in_stl.push( vt ) ;
|
|
|
|
}
|
|
|
|
delete_stl( in_stl , object_name , var_name ) ;
|
|
|
|
}
|
|
|
|
return 0 ;
|
|
|
|
}
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
#endif
|