[Saga-devel] [SAGA] #317: session.list_contexts() shoudl return a vector

SAGA saga-devel at cct.lsu.edu
Thu Jan 1 12:16:32 CST 2009


#317: session.list_contexts() shoudl return a vector
-------------------------+--------------------------------------------------
 Reporter:  amerzky      |       Owner:  amerzky          
     Type:  defect       |      Status:  new              
 Priority:  minor        |   Milestone:  1.1.1 (Edinburgh)
Component:  SAGA Engine  |     Version:  SVN              
 Keywords:               |  
-------------------------+--------------------------------------------------
 because we return vectors on all other list_* functions, in other packages
 (monitorable.list_metrics(), dir.list (), ...).  Easy to implement, I'm
 happy to do it, just wanted to open this ticket to check if someone thinks
 that is a bad idea, for some reason.

 {{{
 Jonas merzky ~/links/saga/trunk/saga/saga : \
   find . -name \*pp -exec grep -B1 -e '\<std::list\>' {} \; |\
   grep -B1 list_

       */
       std::list <saga::context> list_contexts() const;
 }}}

 (replace 'std::list' with 'std::vector', and you find the other list_*
 signatures)

 Thanks, Andre.

-- 
Ticket URL: <http://fortytwo.cct.lsu.edu:8000/SAGA/ticket/317>
SAGA <http://saga.cct.lsu.edu/>
SAGA - Simple API for Grid Applications - C++ reference implementation


More information about the saga-devel mailing list