Special implementation of ROOT::RRangeCast for TCollection, including a check that the cast target type inherits from TObject and a new constructor that takes the TCollection by pointer.
More...
|
| struct | CallableTraitsImpl |
| | Extract types from the signature of a callable object. See CallableTraits. More...
|
| |
| struct | CallableTraitsImpl< R(*)(Args...), false > |
| |
| struct | CallableTraitsImpl< R(Args...), false > |
| |
| struct | CallableTraitsImpl< R(T::*)(Args...) const, false > |
| |
| struct | CallableTraitsImpl< R(T::*)(Args...), false > |
| |
| struct | CallableTraitsImpl< T, true > |
| |
| struct | indices |
| |
| struct | is_array_class |
| |
| struct | is_array_class< std::array< T, N > > |
| |
| struct | is_array_class< std::initializer_list< T > > |
| |
| struct | is_array_class< std::vector< T > > |
| |
| struct | make_indices_ |
| |
| struct | make_indices_impl |
| |
| struct | make_indices_impl< First, Step, N, typename std::enable_if<(N > 1 &&N % 2==0)>::type > |
| |
| struct | make_indices_impl< First, Step, N, typename std::enable_if<(N > 1 &&N % 2==1)>::type > |
| |
| struct | make_indices_impl< First, Step, N, typename std::enable_if<(N==0)>::type > |
| |
| struct | make_indices_impl< First, Step, N, typename std::enable_if<(N==1)>::type > |
| |
| struct | make_indices_next |
| |
| struct | make_indices_next2 |
| |
| struct | make_indices_next2< indices< Indices... >, Next, Tail > |
| |
| struct | make_indices_next< indices< Indices... >, Next > |
| |
| class | RFieldVisitor |
| | Abstract base class for classes implementing the visitor design pattern. More...
|
| |
| class | RLogBuilder |
| | Builds a diagnostic entry, emitted by the static RLogManager upon destruction of this builder, where - by definition - the RLogEntry has been completely built. More...
|
| |
| class | RRawPtrWriteEntry |
| | A container of const raw pointers, corresponding to a row in the data set. More...
|
| |
| class | TBranchProxy |
| | Base class for all the proxy object. More...
|
| |
| class | TCollectionProxyInfo |
| |
| class | TKeyMapIterable |
| |
| struct | TKeyMapNode |
| |
| class | TRangeCast |
| |
| class | TSchemaRuleSet |
| |
| class | TStatusBitsChecker |
| |
|
| std::pair< std::string_view, std::string_view > | DecomposePath (std::string_view path) |
| | Given a "path-like" string (like foo/bar/baz), returns a pair { dirName, baseName }.
|
| |
| R__ALWAYS_INLINE bool | HasBeenDeleted (const TObject *obj) |
| | Check if the TObject's memory has been deleted.
|
| |
| template<typename T > |
| constexpr bool | HasCallOp (char) |
| |
| template<typename T > |
| constexpr auto | HasCallOp (int) -> decltype(&T::operator(), true) |
| |
| template<class ArrayL , class ArrayR > |
| bool | operator_equal_impl (ArrayL const &lhs, size_t const lhs_size, ArrayR const &rhs, size_t const rhs_size) |
| |
Special implementation of ROOT::RRangeCast for TCollection, including a check that the cast target type inherits from TObject and a new constructor that takes the TCollection by pointer.
- Template Parameters
-
| T | The new type to convert to. |
| isDynamic | If true, dynamic_cast is used, otherwise static_cast is used. |
◆ make_indices
template<size_t Start, size_t Last, size_t Step = 1>
◆ TRangeStaticCast
TRangeStaticCast is an adapter class that allows the typed iteration through a TCollection.
This requires the collection to contain elements of the type requested (or a derived class). Any deviation from this expectation will only be caught/reported by an assert in debug builds.
This is best used with a TClonesArray, for other cases TRangeDynCast is preferred.
The typical use is:
}
}
Each class (see TClass) has a linked list of its base class(es).
- Template Parameters
-
| T | The new type to convert to. |
Definition at line 338 of file TCollection.h.
◆ DecomposePath()
| std::pair< std::string_view, std::string_view > ROOT::Detail::DecomposePath |
( |
std::string_view | path | ) |
|
Given a "path-like" string (like foo/bar/baz), returns a pair { dirName, baseName }.
baseName will be empty if the string ends with '/'. dirName will be empty if the string contains no '/'. dirName, if not empty, always ends with a '/'. NOTE: this function does no semantic checking or path expansion, nor does it interact with the filesystem in any way (so it won't follow symlink or anything like that). Moreover it doesn't trim the path in any way, so any leading or trailing whitespaces will be preserved. This function does not perform any copy: the returned string_views have the same lifetime as path.
Definition at line 193 of file RFile.cxx.
◆ HasBeenDeleted()
Check if the TObject's memory has been deleted.
- Warning
- This should be only used for error mitigation as the answer is only sometimes correct. It actually just checks whether the object has been deleted, so this will falsely return true for an object that has been destructed but its memory has not been deleted. This will return an undefined value if the memory is re-used between the deletion and the check. i.e. This is useful to prevent a segmentation fault in case where the problem can be detected when the deletion and the usage are 'close-by'
-
In enviroment where delete taints (changes) the memory, this function always returns false as the marker left by ~TObject will be overwritten.
- Parameters
-
- Returns
- true if the object has been destructed and it can be inferred that it has been deleted
Definition at line 409 of file TObject.h.
◆ HasCallOp() [1/2]
template<typename T >
| constexpr bool ROOT::Detail::HasCallOp |
( |
char | | ) |
|
|
constexpr |
◆ HasCallOp() [2/2]
template<typename T >
| constexpr auto ROOT::Detail::HasCallOp |
( |
int | | ) |
-> decltype(&T::operator(), true) |
|
constexpr |
◆ operator_equal_impl()
template<class ArrayL , class ArrayR >
| bool ROOT::Detail::operator_equal_impl |
( |
ArrayL const & | lhs, |
|
|
size_t const | lhs_size, |
|
|
ArrayR const & | rhs, |
|
|
size_t const | rhs_size ) |
|
inline |