![]() |
This class is a base class for report implementations. More...
Public Types | |
using | This = TraceReporterBase |
using | ThisPtr = TraceReporterBasePtr |
using | ThisRefPtr = TraceReporterBaseRefPtr |
using | CollectionPtr = std::shared_ptr< TraceCollection > |
using | DataSourcePtr = std::unique_ptr< TraceReporterDataSourceBase > |
![]() | |
typedef void(* | UniqueChangedFuncPtr )(TfRefBase const *, bool) |
Public Member Functions | |
TRACE_API | TraceReporterBase (DataSourcePtr dataSource) |
Constructor taking ownership of dataSource . More... | |
virtual TRACE_API | ~TraceReporterBase () |
Destructor. More... | |
TRACE_API bool | SerializeProcessedCollections (std::ostream &ostr) const |
Write all collections that were processed by this reporter to ostr . More... | |
![]() | |
size_t | GetCurrentCount () const |
Return the current reference count of this object. More... | |
bool | IsUnique () const |
Return true if only one TfRefPtr points to this object. More... | |
const TfRefCount & | GetRefCount () const |
void | SetShouldInvokeUniqueChangedListener (bool shouldCall) |
![]() | |
TfWeakBase (const TfWeakBase &) | |
const TfWeakBase & | __GetTfWeakBase__ () const |
const TfWeakBase & | operator= (const TfWeakBase &) |
void | EnableNotification2 () const |
TF_API void const * | GetUniqueIdentifier () const |
Protected Member Functions | |
TRACE_API void | _Clear () |
Removes all references to TraceCollections. More... | |
TRACE_API void | _Update () |
Gets the latest data from the TraceCollector singleton and processes all collections that have been received since the last call to _Update(). More... | |
virtual void | _ProcessCollection (const CollectionPtr &)=0 |
Called once per collection from _Update() More... | |
![]() | |
TfRefPtr< Tf_Remnant > | _Register () const |
template<class T > | |
TfRefPtr< Tf_Remnant > | _Register (T *tempRmnt) const |
bool | _HasRemnant () const |
Additional Inherited Members | |
![]() | |
static TF_API void | SetUniqueChangedListener (UniqueChangedListener listener) |
This class is a base class for report implementations.
It handles receiving and processing of TraceCollections.
Definition at line 52 of file reporterBase.h.
TRACE_API TraceReporterBase | ( | DataSourcePtr | dataSource | ) |
Constructor taking ownership of dataSource
.
|
virtual |
Destructor.
|
protected |
Removes all references to TraceCollections.
|
protectedpure virtual |
Called once per collection from _Update()
|
protected |
Gets the latest data from the TraceCollector singleton and processes all collections that have been received since the last call to _Update().
TRACE_API bool SerializeProcessedCollections | ( | std::ostream & | ostr | ) | const |
Write all collections that were processed by this reporter to ostr
.