TrinityCore
WorldPackets::Timestamp< Underlying > Class Template Reference

#include <PacketUtilities.h>

Public Member Functions

 Timestamp ()=default
 
 Timestamp (time_t value)
 
 Timestamp (SystemTimePoint const &systemTime)
 
Timestampoperator= (time_t value)
 
Timestampoperator= (SystemTimePoint const &systemTime)
 
 operator time_t () const
 
Underlying AsUnderlyingType () const
 

Private Attributes

time_t _value = time_t(0)
 

Friends

ByteBufferoperator<< (ByteBuffer &data, Timestamp timestamp)
 
ByteBufferoperator>> (ByteBuffer &data, Timestamp &timestamp)
 

Detailed Description

template<typename Underlying = int64>
class WorldPackets::Timestamp< Underlying >

Definition at line 242 of file PacketUtilities.h.

Constructor & Destructor Documentation

◆ Timestamp() [1/3]

template<typename Underlying = int64>
WorldPackets::Timestamp< Underlying >::Timestamp ( )
default

◆ Timestamp() [2/3]

template<typename Underlying = int64>
WorldPackets::Timestamp< Underlying >::Timestamp ( time_t  value)
inline

Definition at line 246 of file PacketUtilities.h.

◆ Timestamp() [3/3]

template<typename Underlying = int64>
WorldPackets::Timestamp< Underlying >::Timestamp ( SystemTimePoint const &  systemTime)
inline

Definition at line 247 of file PacketUtilities.h.

Member Function Documentation

◆ AsUnderlyingType()

template<typename Underlying = int64>
Underlying WorldPackets::Timestamp< Underlying >::AsUnderlyingType ( ) const
inline

Definition at line 266 of file PacketUtilities.h.

+ Here is the caller graph for this function:

◆ operator time_t()

template<typename Underlying = int64>
WorldPackets::Timestamp< Underlying >::operator time_t ( ) const
inline

Definition at line 261 of file PacketUtilities.h.

◆ operator=() [1/2]

template<typename Underlying = int64>
Timestamp & WorldPackets::Timestamp< Underlying >::operator= ( SystemTimePoint const &  systemTime)
inline

Definition at line 255 of file PacketUtilities.h.

◆ operator=() [2/2]

template<typename Underlying = int64>
Timestamp & WorldPackets::Timestamp< Underlying >::operator= ( time_t  value)
inline

Definition at line 249 of file PacketUtilities.h.

Friends And Related Function Documentation

◆ operator<<

template<typename Underlying = int64>
ByteBuffer & operator<< ( ByteBuffer data,
Timestamp< Underlying >  timestamp 
)
friend

Definition at line 271 of file PacketUtilities.h.

◆ operator>>

template<typename Underlying = int64>
ByteBuffer & operator>> ( ByteBuffer data,
Timestamp< Underlying > &  timestamp 
)
friend

Definition at line 277 of file PacketUtilities.h.

Member Data Documentation

◆ _value

template<typename Underlying = int64>
time_t WorldPackets::Timestamp< Underlying >::_value = time_t(0)
private

Definition at line 284 of file PacketUtilities.h.


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