~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/temporal_interval.h

  • Committer: Olaf van der Spek
  • Date: 2011-08-08 09:51:16 UTC
  • mto: This revision was merged to the branch mainline in revision 2396.
  • Revision ID: olafvdspek@gmail.com-20110808095116-hnodu1sdn0vezgfn
cppcheck

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include <drizzled/item.h>
28
28
#include <drizzled/type/time.h>
29
29
 
30
 
namespace drizzled 
31
 
{
 
30
namespace drizzled {
32
31
 
33
32
/**
34
33
 * @brief
93
92
    return neg;
94
93
  }
95
94
 
96
 
  inline uint32_t  get_year() { return year; }
 
95
  inline uint32_t  get_year() const { return year; }
97
96
  inline void set_year(uint32_t new_year) { year = new_year; }
98
97
 
99
 
  inline uint32_t  get_month(){ return month; }
 
98
  inline uint32_t  get_month() const { return month; }
100
99
  inline void set_month(uint32_t new_month) { month = new_month; }
101
100
 
102
 
  inline uint32_t  get_day(){ return day; }
 
101
  inline uint32_t  get_day() const { return day; }
103
102
  inline void set_day(uint32_t new_day) { day = new_day; }
104
103
 
105
 
  inline uint32_t  get_hour(){ return hour; }
 
104
  inline uint32_t  get_hour() const { return hour; }
106
105
  inline void set_hour(uint32_t new_hour) { hour = new_hour; }
107
106
 
108
 
  inline uint64_t  get_minute(){ return minute; }
 
107
  inline uint64_t  get_minute() const { return minute; }
109
108
  inline void set_minute(uint32_t new_minute) { minute = new_minute; }
110
109
 
111
 
  inline uint64_t  get_second(){ return second; }
 
110
  inline uint64_t  get_second() const { return second; }
112
111
  inline void set_second(uint32_t new_second) { second = new_second; }
113
112
 
114
 
  inline uint64_t  get_second_part(){ return second_part; }
 
113
  inline uint64_t  get_second_part() const { return second_part; }
115
114
  inline void set_second_part(uint32_t new_second_part) { second_part = new_second_part; }
116
115
 
117
116
  /**