Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::Internal::RDirectoryEntry Class Reference

Definition at line 29 of file RDirectoryEntry.hxx.

Public Types

using clock_t = std::chrono::system_clock
 
using time_point_t = std::chrono::time_point< clock_t >
 

Public Member Functions

 RDirectoryEntry ()
 
template<class T >
 RDirectoryEntry (const std::shared_ptr< T > &ptr)
 
 RDirectoryEntry (std::nullptr_t)
 
template<class T >
 RDirectoryEntry (T *ptr)
 
template<class U >
std::shared_ptr< U > CastPointer () const
 
const time_point_tGetDate () const
 Get the last change date of the entry.
 
std::shared_ptr< void > & GetPointer ()
 Retrieve the shared_ptr of the referenced object.
 
const std::shared_ptr< void > & GetPointer () const
 
TClassGetType () const
 Get the object's type.
 
const std::type_info & GetTypeInfo () const
 Type of the object represented by this entry.
 
 operator bool () const
 
void SetChanged ()
 Inform the entry that it has been modified, and needs to update its last-changed time stamp.
 
void swap (RDirectoryEntry &other) noexcept
 

Private Attributes

time_point_t fDate = clock_t::now()
 Time of last change.
 
std::shared_ptr< void > fObj
 
TClassfType
 

#include <ROOT/RDirectoryEntry.hxx>

Member Typedef Documentation

◆ clock_t

using ROOT::Experimental::Internal::RDirectoryEntry::clock_t = std::chrono::system_clock

Definition at line 31 of file RDirectoryEntry.hxx.

◆ time_point_t

Definition at line 32 of file RDirectoryEntry.hxx.

Constructor & Destructor Documentation

◆ RDirectoryEntry() [1/4]

ROOT::Experimental::Internal::RDirectoryEntry::RDirectoryEntry ( )
inline

Definition at line 40 of file RDirectoryEntry.hxx.

◆ RDirectoryEntry() [2/4]

ROOT::Experimental::Internal::RDirectoryEntry::RDirectoryEntry ( std::nullptr_t  )
inline

Definition at line 42 of file RDirectoryEntry.hxx.

◆ RDirectoryEntry() [3/4]

template<class T >
ROOT::Experimental::Internal::RDirectoryEntry::RDirectoryEntry ( T *  ptr)
inlineexplicit

Definition at line 45 of file RDirectoryEntry.hxx.

◆ RDirectoryEntry() [4/4]

template<class T >
ROOT::Experimental::Internal::RDirectoryEntry::RDirectoryEntry ( const std::shared_ptr< T > &  ptr)
inlineexplicit

Definition at line 49 of file RDirectoryEntry.hxx.

Member Function Documentation

◆ CastPointer()

template<class U >
std::shared_ptr< U > ROOT::Experimental::Internal::RDirectoryEntry::CastPointer

Definition at line 78 of file RDirectoryEntry.hxx.

◆ GetDate()

const time_point_t & ROOT::Experimental::Internal::RDirectoryEntry::GetDate ( ) const
inline

Get the last change date of the entry.

Definition at line 53 of file RDirectoryEntry.hxx.

◆ GetPointer() [1/2]

std::shared_ptr< void > & ROOT::Experimental::Internal::RDirectoryEntry::GetPointer ( )
inline

Retrieve the shared_ptr of the referenced object.

Definition at line 66 of file RDirectoryEntry.hxx.

◆ GetPointer() [2/2]

const std::shared_ptr< void > & ROOT::Experimental::Internal::RDirectoryEntry::GetPointer ( ) const
inline

Definition at line 67 of file RDirectoryEntry.hxx.

◆ GetType()

TClass * ROOT::Experimental::Internal::RDirectoryEntry::GetType ( ) const
inline

Get the object's type.

Definition at line 63 of file RDirectoryEntry.hxx.

◆ GetTypeInfo()

const std::type_info & ROOT::Experimental::Internal::RDirectoryEntry::GetTypeInfo ( ) const
inline

Type of the object represented by this entry.

Definition at line 60 of file RDirectoryEntry.hxx.

◆ operator bool()

ROOT::Experimental::Internal::RDirectoryEntry::operator bool ( ) const
inlineexplicit

Definition at line 72 of file RDirectoryEntry.hxx.

◆ SetChanged()

void ROOT::Experimental::Internal::RDirectoryEntry::SetChanged ( )
inline

Inform the entry that it has been modified, and needs to update its last-changed time stamp.

Definition at line 57 of file RDirectoryEntry.hxx.

◆ swap()

void ROOT::Experimental::Internal::RDirectoryEntry::swap ( RDirectoryEntry other)
inlinenoexcept

Definition at line 85 of file RDirectoryEntry.hxx.

Member Data Documentation

◆ fDate

time_point_t ROOT::Experimental::Internal::RDirectoryEntry::fDate = clock_t::now()
private

Time of last change.

Definition at line 35 of file RDirectoryEntry.hxx.

◆ fObj

std::shared_ptr<void> ROOT::Experimental::Internal::RDirectoryEntry::fObj
private

Definition at line 37 of file RDirectoryEntry.hxx.

◆ fType

TClass* ROOT::Experimental::Internal::RDirectoryEntry::fType
private

Definition at line 36 of file RDirectoryEntry.hxx.

Libraries for ROOT::Experimental::Internal::RDirectoryEntry:

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