Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/vis15/src/lib/include/diderot/dynseq.hxx
ViewVC logotype

Diff of /branches/vis15/src/lib/include/diderot/dynseq.hxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4070, Tue Jun 28 02:11:42 2016 UTC revision 4071, Tue Jun 28 13:31:31 2016 UTC
# Line 57  Line 57 
57    
58          ~dynseq () { };          ~dynseq () { };
59    
60          // load a sequence from a nrrd or nrrd file; return true on error
61            bool load (world_base *wrld, const Nrrd *nin);
62            bool load (world_base *wrld, std::string const &file);
63    
64          uint32_t length () const { return this->_seq->size(); }          uint32_t length () const { return this->_seq->size(); }
65    
66          const T& operator[] (uint32_t i) const { return (*this->_seq)[i]; }          const T& operator[] (uint32_t i) const { return (*this->_seq)[i]; }
# Line 132  Line 136 
136          : _seq(seq._seq)          : _seq(seq._seq)
137      { }      { }
138    
   /***** functions for loading sequences from nrrd files and objects *****/  
   
   //! load from nrrd; type-specialized versions of this function are generated by the compiler  
   //  
     template <typename T>  
     dynseq<T> load_dynseq_from_nrrd (world_base *wrld, const Nrrd *nin, bool &sts);  
   
     template <typename T>  
     dynseq<T> load_dynseq_from_file (world_base *wrld, std::string const &file, bool &sts);  
   
139  } // namespace diderot  } // namespace diderot
140    
141  #include "dynseq-inst.hxx"  #include "dynseq-inst.hxx"

Legend:
Removed from v.4070  
changed lines
  Added in v.4071

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0