[mlpack-svn] [MLPACK] #118: Use consistent accessors and mutators

MLPACK Trac trac at coffeetalk-1.cc.gatech.edu
Thu Dec 15 03:45:16 EST 2011


#118: Use consistent accessors and mutators
------------------------------------------+---------------------------------
  Reporter:  rcurtin                      |        Owner:            
      Type:  wishlist                     |       Status:  closed    
  Priority:  major                        |    Milestone:  MLPACK 1.0
 Component:  MLPACK                       |   Resolution:  fixed     
  Keywords:  mlpack getter setter public  |     Blocking:  120       
Blocked By:                               |  
------------------------------------------+---------------------------------
Changes (by rcurtin):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 The last time we met we agreed that accessors and mutators should be of
 the form

 {{{
 const type& Variable() const { return variable; }
 type& Variable() { return variable; }
 }}}

 and thereby abandoning validation at mutator-time.

 All of the MLPACK methods use the correct format of getters and setters
 now (including math::Range).

-- 
Ticket URL: <http://trac.research.cc.gatech.edu/fastlab/ticket/118#comment:14>
MLPACK <www.fast-lab.org>
MLPACK is an intuitive, fast, and scalable C++ machine learning library developed by the FASTLAB at Georgia Tech under Dr. Alex Gray.


More information about the mlpack-svn mailing list