PhoenixLecture  2.0.0
Set of tools to make lectures
PLatexDate Class Reference

Describes a date. More...

#include <PTimeTable.h>

Public Member Functions

size_t & getDay ()
 Gets the day of the PLatexDate. More...
 
size_t getDay () const
 Gets the day of the PLatexDate. More...
 
size_t & getMonth ()
 Gets the month of the PLatexDate. More...
 
size_t getMonth () const
 Gets the month of the PLatexDate. More...
 
size_t & getYear ()
 Gets the year of the PLatexDate. More...
 
size_t getYear () const
 Gets the year of the PLatexDate. More...
 
PLatexDateoperator= (const PLatexDate &other)
 Operator = of class PLatexDate. More...
 
 PLatexDate ()
 Constructor of class PLatexDate. More...
 
 PLatexDate (const PLatexDate &other)
 Copy Constructor of class PLatexDate. More...
 
void setDay (size_t day)
 Sets the day of the PLatexDate. More...
 
void setMonth (size_t month)
 Sets the month of the PLatexDate. More...
 
void setYear (size_t year)
 Sets the year of the PLatexDate. More...
 
virtual ~PLatexDate ()
 Destructor of class PLatexDate. More...
 

Protected Member Functions

void copyPLatexDate (const PLatexDate &other)
 Copy Function of class PLatexDate. More...
 

Private Member Functions

void initialisationPLatexDate ()
 Initialisation Function of class PLatexDate. More...
 

Private Attributes

size_t p_day
 Day. More...
 
size_t p_month
 Month. More...
 
size_t p_year
 Year. More...
 

Detailed Description

Describes a date.

Definition at line 58 of file PTimeTable.h.

Constructor & Destructor Documentation

◆ PLatexDate() [1/2]

PLatexDate::PLatexDate ( )

Constructor of class PLatexDate.

Definition at line 182 of file PTimeTable.cpp.

182  {
184 }
void initialisationPLatexDate()
Initialisation Function of class PLatexDate.
Definition: PTimeTable.cpp:280

References initialisationPLatexDate().

+ Here is the call graph for this function:

◆ PLatexDate() [2/2]

PLatexDate::PLatexDate ( const PLatexDate other)

Copy Constructor of class PLatexDate.

Parameters
other: PLatexDate we want ot copy

Definition at line 189 of file PTimeTable.cpp.

189  {
190  copyPLatexDate(other);
191 }
void copyPLatexDate(const PLatexDate &other)
Copy Function of class PLatexDate.
Definition: PTimeTable.cpp:273

References copyPLatexDate().

+ Here is the call graph for this function:

◆ ~PLatexDate()

PLatexDate::~PLatexDate ( )
virtual

Destructor of class PLatexDate.

Definition at line 194 of file PTimeTable.cpp.

194  {
195 
196 }

Member Function Documentation

◆ copyPLatexDate()

void PLatexDate::copyPLatexDate ( const PLatexDate other)
protected

Copy Function of class PLatexDate.

Parameters
other: PLatexDate we want ot copy

Definition at line 273 of file PTimeTable.cpp.

273  {
274  p_year = other.p_year;
275  p_month = other.p_month;
276  p_day = other.p_day;
277 }
size_t p_year
Year.
Definition: PTimeTable.h:78
size_t p_month
Month.
Definition: PTimeTable.h:80
size_t p_day
Day.
Definition: PTimeTable.h:82

References p_day, p_month, and p_year.

Referenced by operator=(), and PLatexDate().

+ Here is the caller graph for this function:

◆ getDay() [1/2]

size_t & PLatexDate::getDay ( )

Gets the day of the PLatexDate.

Returns
day of the PLatexDate

Definition at line 266 of file PTimeTable.cpp.

266  {
267  return p_day;
268 }

References p_day.

◆ getDay() [2/2]

size_t PLatexDate::getDay ( ) const

Gets the day of the PLatexDate.

Returns
day of the PLatexDate

Definition at line 259 of file PTimeTable.cpp.

259  {
260  return p_day;
261 }

References p_day.

Referenced by ptimetable_dateTimeToCalendarTime(), ptimetable_dateToStr(), ptimetable_dateToText(), ptimetable_toTex(), and ptimetable_updateDate().

+ Here is the caller graph for this function:

◆ getMonth() [1/2]

size_t & PLatexDate::getMonth ( )

Gets the month of the PLatexDate.

Returns
month of the PLatexDate

Definition at line 252 of file PTimeTable.cpp.

252  {
253  return p_month;
254 }

References p_month.

◆ getMonth() [2/2]

size_t PLatexDate::getMonth ( ) const

Gets the month of the PLatexDate.

Returns
month of the PLatexDate

Definition at line 245 of file PTimeTable.cpp.

245  {
246  return p_month;
247 }

References p_month.

Referenced by ptimetable_dateTimeToCalendarTime(), ptimetable_dateToStr(), ptimetable_dateToText(), ptimetable_toTex(), and ptimetable_updateDate().

+ Here is the caller graph for this function:

◆ getYear() [1/2]

size_t & PLatexDate::getYear ( )

Gets the year of the PLatexDate.

Returns
year of the PLatexDate

Definition at line 238 of file PTimeTable.cpp.

238  {
239  return p_year;
240 }

References p_year.

◆ getYear() [2/2]

size_t PLatexDate::getYear ( ) const

Gets the year of the PLatexDate.

Returns
year of the PLatexDate

Definition at line 231 of file PTimeTable.cpp.

231  {
232  return p_year;
233 }

References p_year.

Referenced by ptimetable_dateTimeToCalendarTime(), ptimetable_dateToStr(), ptimetable_dateToText(), ptimetable_toTex(), and ptimetable_updateDate().

+ Here is the caller graph for this function:

◆ initialisationPLatexDate()

void PLatexDate::initialisationPLatexDate ( )
private

Initialisation Function of class PLatexDate.

Definition at line 280 of file PTimeTable.cpp.

280  {
281  p_year = 0lu;
282  p_month = 0lu;
283  p_day = 0lu;
284 }

References p_day, p_month, and p_year.

Referenced by PLatexDate().

+ Here is the caller graph for this function:

◆ operator=()

PLatexDate & PLatexDate::operator= ( const PLatexDate other)

Operator = of class PLatexDate.

Parameters
other: PLatexDate we want ot copy
Returns
copied class PLatexDate

Definition at line 202 of file PTimeTable.cpp.

202  {
203  copyPLatexDate(other);
204  return *this;
205 }

References copyPLatexDate().

+ Here is the call graph for this function:

◆ setDay()

void PLatexDate::setDay ( size_t  day)

Sets the day of the PLatexDate.

Parameters
day: day of the PLatexDate

Definition at line 224 of file PTimeTable.cpp.

224  {
225  p_day = day;
226 }

References p_day.

Referenced by ptimetable_parsePLatexDate().

+ Here is the caller graph for this function:

◆ setMonth()

void PLatexDate::setMonth ( size_t  month)

Sets the month of the PLatexDate.

Parameters
month: month of the PLatexDate

Definition at line 217 of file PTimeTable.cpp.

217  {
218  p_month = month;
219 }

References p_month.

Referenced by ptimetable_parsePLatexDate().

+ Here is the caller graph for this function:

◆ setYear()

void PLatexDate::setYear ( size_t  year)

Sets the year of the PLatexDate.

Parameters
year: year of the PLatexDate

Definition at line 210 of file PTimeTable.cpp.

210  {
211  p_year = year;
212 }

References p_year.

Referenced by ptimetable_parsePLatexDate().

+ Here is the caller graph for this function:

Member Data Documentation

◆ p_day

size_t PLatexDate::p_day
private

Day.

Definition at line 82 of file PTimeTable.h.

Referenced by copyPLatexDate(), getDay(), initialisationPLatexDate(), and setDay().

◆ p_month

size_t PLatexDate::p_month
private

Month.

Definition at line 80 of file PTimeTable.h.

Referenced by copyPLatexDate(), getMonth(), initialisationPLatexDate(), and setMonth().

◆ p_year

size_t PLatexDate::p_year
private

Year.

Definition at line 78 of file PTimeTable.h.

Referenced by copyPLatexDate(), getYear(), initialisationPLatexDate(), and setYear().


The documentation for this class was generated from the following files: