~ubuntu-branches/ubuntu/raring/openwalnut/raring

« back to all changes in this revision

Viewing changes to src/core/common/constraints/WPropertyConstraintMax.h

  • Committer: Package Import Robot
  • Author(s): Sebastian Eichelbaum
  • Date: 2012-12-12 11:26:32 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20121212112632-xhiuwkxuz5h0idkh
Tags: 1.3.1+hg5849-1
* Minor changes compared to 1.3.0 but included several bug fixes.
* See http://www.openwalnut.org/versions/4

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
     *
56
56
     * \return true if value <= m_max
57
57
     */
58
 
    virtual bool accept( boost::shared_ptr< WPropertyVariable< T > > property, T value );
 
58
    virtual bool accept( boost::shared_ptr< WPropertyVariable< T > > property, const T& value );
59
59
 
60
60
    /**
61
61
     * Returns the current max value.
79
79
    virtual boost::shared_ptr< typename WPropertyVariable< T >::PropertyConstraint > clone();
80
80
 
81
81
private:
82
 
 
83
82
    /**
84
83
     * The maximal value the property should have
85
84
     */
98
97
}
99
98
 
100
99
template < typename T >
101
 
bool WPropertyConstraintMax< T >::accept( boost::shared_ptr< WPropertyVariable< T > > /* property */, T value )
 
100
bool WPropertyConstraintMax< T >::accept( boost::shared_ptr< WPropertyVariable< T > > /* property */, const T& value )
102
101
{
103
102
    return value <= m_max;
104
103
}