PhoenixLecture  2.0.0
Set of tools to make lectures
PLatexTime Class Reference

Describes a date. More...

#include <PTimeTable.h>

Public Member Functions

size_t & getHour ()
 Gets the hour of the PLatexTime. More...
 
size_t getHour () const
 Gets the hour of the PLatexTime. More...
 
size_t & getMinute ()
 Gets the minute of the PLatexTime. More...
 
size_t getMinute () const
 Gets the minute of the PLatexTime. More...
 
PLatexTimeoperator= (const PLatexTime &other)
 Operator = of class PLatexTime. More...
 
 PLatexTime ()
 Constructor of class PLatexTime. More...
 
 PLatexTime (const PLatexTime &other)
 Copy Constructor of class PLatexTime. More...
 
void setHour (size_t hour)
 Sets the hour of the PLatexTime. More...
 
void setMinute (size_t minute)
 Sets the minute of the PLatexTime. More...
 
virtual ~PLatexTime ()
 Destructor of class PLatexTime. More...
 

Protected Member Functions

void copyPLatexTime (const PLatexTime &other)
 Copy Function of class PLatexTime. More...
 

Private Member Functions

void initialisationPLatexTime ()
 Initialisation Function of class PLatexTime. More...
 

Private Attributes

size_t p_hour
 Hours. More...
 
size_t p_minute
 

Detailed Description

Describes a date.

Definition at line 86 of file PTimeTable.h.

Constructor & Destructor Documentation

◆ PLatexTime() [1/2]

PLatexTime::PLatexTime ( )

Constructor of class PLatexTime.

Definition at line 287 of file PTimeTable.cpp.

287  {
289 }
void initialisationPLatexTime()
Initialisation Function of class PLatexTime.
Definition: PTimeTable.cpp:363

References initialisationPLatexTime().

+ Here is the call graph for this function:

◆ PLatexTime() [2/2]

PLatexTime::PLatexTime ( const PLatexTime other)

Copy Constructor of class PLatexTime.

Parameters
other: PLatexTime we want ot copy

Definition at line 294 of file PTimeTable.cpp.

294  {
295  copyPLatexTime(other);
296 }
void copyPLatexTime(const PLatexTime &other)
Copy Function of class PLatexTime.
Definition: PTimeTable.cpp:357

References copyPLatexTime().

+ Here is the call graph for this function:

◆ ~PLatexTime()

PLatexTime::~PLatexTime ( )
virtual

Destructor of class PLatexTime.

Definition at line 299 of file PTimeTable.cpp.

299  {
300 
301 }

Member Function Documentation

◆ copyPLatexTime()

void PLatexTime::copyPLatexTime ( const PLatexTime other)
protected

Copy Function of class PLatexTime.

Parameters
other: PLatexTime we want ot copy

Definition at line 357 of file PTimeTable.cpp.

357  {
358  p_hour = other.p_hour;
359  p_minute = other.p_minute;
360 }
size_t p_hour
Hours.
Definition: PTimeTable.h:103
size_t p_minute
Definition: PTimeTable.h:105

References p_hour, and p_minute.

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

+ Here is the caller graph for this function:

◆ getHour() [1/2]

size_t & PLatexTime::getHour ( )

Gets the hour of the PLatexTime.

Returns
hour of the PLatexTime

Definition at line 336 of file PTimeTable.cpp.

336  {
337  return p_hour;
338 }

References p_hour.

◆ getHour() [2/2]

size_t PLatexTime::getHour ( ) const

Gets the hour of the PLatexTime.

Returns
hour of the PLatexTime

Definition at line 329 of file PTimeTable.cpp.

329  {
330  return p_hour;
331 }

References p_hour.

Referenced by addTime(), ptimetable_dateTimeToCalendarTime(), ptimetable_timeToStr(), ptimetable_updateTime(), and ptimetable_updateWeekLaterTime().

+ Here is the caller graph for this function:

◆ getMinute() [1/2]

size_t & PLatexTime::getMinute ( )

Gets the minute of the PLatexTime.

Returns
minute of the PLatexTime

Definition at line 350 of file PTimeTable.cpp.

350  {
351  return p_minute;
352 }

References p_minute.

◆ getMinute() [2/2]

size_t PLatexTime::getMinute ( ) const

Gets the minute of the PLatexTime.

Returns
minute of the PLatexTime

Definition at line 343 of file PTimeTable.cpp.

343  {
344  return p_minute;
345 }

References p_minute.

Referenced by addTime(), ptimetable_dateTimeToCalendarTime(), ptimetable_timeToStr(), ptimetable_updateTime(), and ptimetable_updateWeekLaterTime().

+ Here is the caller graph for this function:

◆ initialisationPLatexTime()

void PLatexTime::initialisationPLatexTime ( )
private

Initialisation Function of class PLatexTime.

Definition at line 363 of file PTimeTable.cpp.

363  {
364  p_hour = 0lu;
365  p_minute = 0lu;
366 }

References p_hour, and p_minute.

Referenced by PLatexTime().

+ Here is the caller graph for this function:

◆ operator=()

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

Operator = of class PLatexTime.

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

Definition at line 307 of file PTimeTable.cpp.

307  {
308  copyPLatexTime(other);
309  return *this;
310 }

References copyPLatexTime().

+ Here is the call graph for this function:

◆ setHour()

void PLatexTime::setHour ( size_t  hour)

Sets the hour of the PLatexTime.

Parameters
hour: hour of the PLatexTime

Definition at line 315 of file PTimeTable.cpp.

315  {
316  p_hour = hour;
317 }

References p_hour.

Referenced by addTime(), ptimetable_createTexTimeTable(), ptimetable_parsePLatexTime(), and ptimetable_updateEndTime().

+ Here is the caller graph for this function:

◆ setMinute()

void PLatexTime::setMinute ( size_t  minute)

Sets the minute of the PLatexTime.

Parameters
minute: minute of the PLatexTime

Definition at line 322 of file PTimeTable.cpp.

322  {
323  p_minute = minute;
324 }

References p_minute.

Referenced by addTime(), ptimetable_createTexTimeTable(), ptimetable_parsePLatexTime(), and ptimetable_updateEndTime().

+ Here is the caller graph for this function:

Member Data Documentation

◆ p_hour

size_t PLatexTime::p_hour
private

Hours.

Definition at line 103 of file PTimeTable.h.

Referenced by copyPLatexTime(), getHour(), initialisationPLatexTime(), and setHour().

◆ p_minute

size_t PLatexTime::p_minute
private

Definition at line 105 of file PTimeTable.h.

Referenced by copyPLatexTime(), getMinute(), initialisationPLatexTime(), and setMinute().


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