You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
851 B
33 lines
851 B
/* |
|
Queues |
|
*/ |
|
|
|
%fragment("StdQueueTraits","header",fragment="StdSequenceTraits") |
|
%{ |
|
namespace swig { |
|
template <class T> |
|
struct traits_asptr<std::queue<T> > { |
|
static int asptr(VALUE obj, std::queue<T> **vec) { |
|
return traits_asptr_stdseq<std::queue<T> >::asptr(obj, vec); |
|
} |
|
}; |
|
|
|
template <class T> |
|
struct traits_from<std::queue<T> > { |
|
static VALUE from(const std::queue<T> & vec) { |
|
return traits_from_stdseq<std::queue<T> >::from(vec); |
|
} |
|
}; |
|
} |
|
%} |
|
|
|
%rename("delete") std::queue::__delete__; |
|
%rename("reject!") std::queue::reject_bang; |
|
%rename("map!") std::queue::map_bang; |
|
%rename("empty?") std::queue::empty; |
|
%rename("include?" ) std::queue::__contains__ const; |
|
%rename("has_key?" ) std::queue::has_key const; |
|
|
|
%alias std::queue::push "<<"; |
|
|
|
%include <std/std_queue.i>
|
|
|