15 #ifndef ROOT7_TDirectoryEntry 16 #define ROOT7_TDirectoryEntry 25 namespace Experimental {
31 using clock_t = std::chrono::system_clock;
37 std::shared_ptr<void>
fObj;
71 explicit operator bool()
const {
return !!
fObj; }
79 return std::shared_ptr<U>(
fObj,
static_cast<U*
>(ptr));
80 return std::shared_ptr<U>();
TClass * GetType() const
Get the object's type.
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
void swap(TDirectoryEntry &e1, TDirectoryEntry &e2) noexcept
std::shared_ptr< void > & GetPointer()
Retrieve the shared_ptr of the referenced object.
std::shared_ptr< U > CastPointer() const
const std::shared_ptr< void > & GetPointer() const
void swap(TDirectoryEntry &other) noexcept
std::chrono::system_clock clock_t
std::shared_ptr< void > fObj
const time_point_t & GetDate() const
Get the last change date of the entry.
TDirectoryEntry(const std::shared_ptr< T > &ptr)
TDirectoryEntry(std::nullptr_t)
The ROOT global object gROOT contains a list of all defined classes.
const std::type_info & GetTypeInfo() const
Type of the object represented by this entry.
time_point_t fDate
Time of last change.
const std::type_info * GetTypeInfo() const
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
void * DynamicCast(const TClass *base, void *obj, Bool_t up=kTRUE)
Cast obj of this class type up to baseclass cl if up is true.
void SetChanged()
Inform the entry that it has been modified, and needs to update its last-changed time stamp...
std::chrono::time_point< clock_t > time_point_t