Logo ROOT   6.14/05
Reference Guide
List of all members | Public Types | Public Member Functions | Private Attributes | List of all members
ROOT::Experimental::Internal::TDirectoryEntry Class Reference

Definition at line 30 of file TDirectoryEntry.hxx.

Public Types

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

Public Member Functions

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

Private Attributes

time_point_t fDate = clock_t::now()
 Time of last change. More...
 
std::shared_ptr< voidfObj
 
TClassfType
 

#include <ROOT/TDirectoryEntry.hxx>

Member Typedef Documentation

◆ clock_t

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

Definition at line 32 of file TDirectoryEntry.hxx.

◆ time_point_t

Definition at line 33 of file TDirectoryEntry.hxx.

Constructor & Destructor Documentation

◆ TDirectoryEntry() [1/4]

ROOT::Experimental::Internal::TDirectoryEntry::TDirectoryEntry ( )
inline

Definition at line 41 of file TDirectoryEntry.hxx.

◆ TDirectoryEntry() [2/4]

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

Definition at line 43 of file TDirectoryEntry.hxx.

◆ TDirectoryEntry() [3/4]

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

Definition at line 46 of file TDirectoryEntry.hxx.

◆ TDirectoryEntry() [4/4]

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

Definition at line 50 of file TDirectoryEntry.hxx.

Member Function Documentation

◆ CastPointer()

template<class U >
std::shared_ptr< U > ROOT::Experimental::Internal::TDirectoryEntry::CastPointer ( ) const

Definition at line 79 of file TDirectoryEntry.hxx.

◆ GetDate()

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

Get the last change date of the entry.

Definition at line 54 of file TDirectoryEntry.hxx.

◆ GetPointer() [1/2]

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

Retrieve the shared_ptr of the referenced object.

Definition at line 67 of file TDirectoryEntry.hxx.

◆ GetPointer() [2/2]

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

Definition at line 68 of file TDirectoryEntry.hxx.

◆ GetType()

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

Get the object's type.

Definition at line 64 of file TDirectoryEntry.hxx.

◆ GetTypeInfo()

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

Type of the object represented by this entry.

Definition at line 61 of file TDirectoryEntry.hxx.

◆ operator bool()

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

Definition at line 73 of file TDirectoryEntry.hxx.

◆ SetChanged()

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

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

Definition at line 58 of file TDirectoryEntry.hxx.

◆ swap()

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

Definition at line 86 of file TDirectoryEntry.hxx.

Member Data Documentation

◆ fDate

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

Time of last change.

Definition at line 36 of file TDirectoryEntry.hxx.

◆ fObj

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

Definition at line 38 of file TDirectoryEntry.hxx.

◆ fType

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

Definition at line 37 of file TDirectoryEntry.hxx.

Libraries for ROOT::Experimental::Internal::TDirectoryEntry:
[legend]

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