D++ (DPP)  10.0.30
C++ Discord API Bot Library
test_cached_object_t Class Reference

#include "test.h"

Inheritance diagram for test_cached_object_t:
Collaboration diagram for test_cached_object_t:

Public Member Functions

 test_cached_object_t (dpp::snowflake _id)
 
virtual ~test_cached_object_t ()=default
 
constexpr double get_creation_time () const noexcept
 Get the creation time of this object according to Discord. More...
 
constexpr bool operator!= (const managed &other) const noexcept
 Comparison operator for comparing two managed objects by id. More...
 
constexpr bool operator== (const managed &other) const noexcept
 Comparison operator for comparing two managed objects by id. More...
 

Public Attributes

std::string foo
 
snowflake id = {}
 Unique ID of object set by Discord. More...
 

Constructor & Destructor Documentation

◆ test_cached_object_t()

test_cached_object_t::test_cached_object_t ( dpp::snowflake  _id)
inline

◆ ~test_cached_object_t()

virtual test_cached_object_t::~test_cached_object_t ( )
virtualdefault

Member Function Documentation

◆ get_creation_time()

constexpr double dpp::managed::get_creation_time ( ) const
inlineconstexprnoexceptinherited

Get the creation time of this object according to Discord.

Returns
double creation time inferred from the snowflake ID. The minimum possible value is the first second of 2015.

◆ operator!=()

constexpr bool dpp::managed::operator!= ( const managed other) const
inlineconstexprnoexceptinherited

Comparison operator for comparing two managed objects by id.

Parameters
otherOther object to compare against
Returns
true objects are not the same id
false objects are the same id

◆ operator==()

constexpr bool dpp::managed::operator== ( const managed other) const
inlineconstexprnoexceptinherited

Comparison operator for comparing two managed objects by id.

Parameters
otherOther object to compare against
Returns
true objects are the same id
false objects are not the same id

Member Data Documentation

◆ foo

std::string test_cached_object_t::foo

◆ id


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