|
AGXDynamics
2.31.1.0
|
#include <BufferPrinter.h>
Inheritance diagram for agx::BufferPrinter:Public Types | |
| typedef agx::observer_ptr < const Event > | EventConstObserver |
| typedef agx::ref_ptr< const Event > | EventConstRef |
| typedef agx::observer_ptr< Event > | EventObserver |
| typedef agx::ref_ptr< Event > | EventRef |
| typedef Event1< Task * > | ExecutionEvent |
| typedef Event2< Component *, Object * > | ObjectEvent |
| Event when adding removing child objects. More... | |
| typedef Event2< Task *, Parameter * > | ParameterEvent |
| enum | ParameterMatch { NO_EVENTS = 0, EMPTY_BINDING_LIST = (1<<0), PARAMETER_VALID = (1<<1), PARAMETER_NOT_REQUIRED = (1<<2), PARAMETER_BOUND = (1<<3), PARAMETER_HAS_BOUND_PATH = (1<<4), FORMATS_MATCH = (1<<5), NEED_DEVICE_TRANSFORM = (1<<6), MISSING_BINDING = (1<<7), BINDING_LACKS_TYPE = (1<<8), FORMATS_MISSMATCH = (1<<9), EXTRA_BINDING = (1<<10), INCONSISTEN_PARAMETERS = (1<<11), MATCH_MASK = EMPTY_BINDING_LIST | PARAMETER_VALID | PARAMETER_NOT_REQUIRED | PARAMETER_BOUND | PARAMETER_HAS_BOUND_PATH | FORMATS_MATCH | NEED_DEVICE_TRANSFORM, NO_MATCH_MASK = MISSING_BINDING | BINDING_LACKS_TYPE | FORMATS_MISSMATCH | EXTRA_BINDING | INCONSISTEN_PARAMETERS } |
| Used for tracing mismatched parameter bindings. More... | |
| enum | ProfilingMode { PROFILING_NONE, PROFILING_FAST, PROFILING_FULL } |
| typedef Callback1< Object * > | TraverseCallback |
Public Member Functions | |
| BufferPrinter (Device *device) | |
| ~BufferPrinter () | |
| void | addDependencies (const agx::String &paths) |
| void | addDependency (agx::Task *parent) |
| Add a dependency. More... | |
| void | addDependency (const agx::Path &path) |
| void | addListener (EventListener *listener) |
| virtual void | addObject (agx::Object *object, bool assignContext=true) |
| Add an object to the component. More... | |
| void | addParameter (agx::Parameter *parameter) |
| Add a parameter. More... | |
| void | addParameter (agx::Parameter *parameter, size_t index) |
| void | addResolvePath (const agx::Path &path) |
| void | addResolvePaths (const agx::String &paths) |
| void | addTriggerPath (const agx::Path &path) |
| void | addTriggerPaths (const agx::String &paths) |
| AGX_DECLARE_VECTOR_TYPES (Event) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| virtual String | autoComplete (const String &partialName, StringVector &matchingNames) const |
| void | beginCallback () |
| virtual void | buildNavigationTree (agxJson::Value &eNode) const override |
| virtual void | configure (TiXmlElement *eTask) override |
| void | configure (TiXmlElement *eTask, bool loadParameters) |
| void | configure (Model *model) |
| void | endCallback (agx::Real32 computeCost, agx::Real32 overheadCost=0) |
| void | execute () |
| Execute the task. More... | |
| agx::String | fullName () const |
| agx::String | fullPath () const |
| agx::String | fullPath (const agx::Object *root) const |
| agx::Real32 | getAccumulatedComputeCost () const |
| agx::Real32 | getAccumulatedOverheadTime () const |
| agx::Real32 | getAccumulatedWallTime () const |
| agx::ArrayParameter * | getArrayParameter (const agx::Name &name) |
| const agx::ArrayParameter * | getArrayParameter (const agx::Name &name) const |
| agx::Object * | getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr) |
| const agx::Object * | getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr) const |
| template<typename T > | |
| T * | getAutoScopedResource (const agx::Path &path) |
| template<typename T > | |
| const T * | getAutoScopedResource (const agx::Path &path) const |
| const agx::TaskPtrVector & | getChildren () const |
| agx::Real32 | getComputeCost () const |
| agx::Object * | getContext () |
| const agx::Object * | getContext () const |
| template<typename T > | |
| T * | getContext () |
| template<typename T > | |
| const T * | getContext () const |
| agx::Device * | getDevice () |
| const agx::Device * | getDevice () const |
| template<typename T > | |
| T * | getDevice () |
| template<typename T > | |
| const T * | getDevice () const |
| agx::Thread * | getDispatchThread () |
| agx::TaskGroup * | getGroup () |
| const agx::TaskGroup * | getGroup () const |
| agx::UInt32 | getId () const |
| const agx::Name & | getImplementationName () const |
| Job * | getJob () |
| agx::Model * | getModel () |
| const agx::Model * | getModel () const |
| const agx::Name & | getName () const |
| agx::Object * | getNextSibling () |
| const agx::Object * | getNextSibling () const |
| agx::UInt | getNumAccumulationSamples () const |
| size_t | getNumObjects (const agx::Name &name) const |
| agx::Object * | getObject (const agx::Name &name, size_t index=0) |
| const agx::Object * | getObject (const agx::Name &name, size_t index=0) const |
| agx::Object * | getObject (const agx::Name &name, agx::Model *model, size_t index=0) |
| const agx::Object * | getObject (const agx::Name &name, agx::Model *model, size_t index=0) const |
| template<typename T > | |
| T * | getObject (const agx::Name &name, size_t index=0) |
| template<typename T > | |
| const T * | getObject (const agx::Name &name, size_t index=0) const |
| const agx::ObjectRefVector & | getObjects () const |
| template<typename T > | |
| void | getObjects (agx::ObjectPtrVector &result, bool recursive=false) const |
| void | getObjects (agx::ObjectPtrVector &result, const agx::Model *model, bool recursive=false) const |
| template<typename T > | |
| void | getObjects (ObjectPtrVector &result, bool recursive) const |
| agx::Real32 | getOverheadTime () const |
| agx::Parameter * | getParameter (const agx::Name &name) |
| const agx::Parameter * | getParameter (const agx::Name &name) const |
| agx::Parameter * | getParameter (size_t index) |
| const agx::Parameter * | getParameter (size_t index) const |
| const agx::ParameterPtrVector & | getParameters () const |
| const agx::TaskPtrVector & | getParents () const |
| agx::Path | getPath () const |
| agx::Path | getPath (const agx::Object *root) const |
| agx::PointerParameter * | getPointerParameter (const agx::Name &name) |
| const agx::PointerParameter * | getPointerParameter (const agx::Name &name) const |
| virtual agx::Job * | getPostJob () override |
| virtual agx::Job * | getPreJob () override |
| int | getReferenceCount () const |
| agx::Object * | getResource (const agx::Path &path, agx::Model *model=nullptr) |
| const agx::Object * | getResource (const agx::Path &path, agx::Model *model=nullptr) const |
| template<typename T > | |
| T * | getResource (const agx::Path &path) |
| template<typename T > | |
| const T * | getResource (const agx::Path &path) const |
| agx::Object * | getRootContext () |
| const agx::Object * | getRootContext () const |
| agx::ScalarParameter * | getScalarParameter (const agx::Name &name) |
| const agx::ScalarParameter * | getScalarParameter (const agx::Name &name) const |
| agx::Thread * | getTargetThread () |
| agx::Real32 | getWallTime () const |
| Performance statistics. More... | |
| bool | hasDependency (agx::Task *parent) const |
| bool | hasListener (EventListener *listener) |
| bool | hasParent (const agx::Object *node) const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| bool | isEnabled () const |
| bool | isRunning () const |
| bool | isUnique () const |
| UInt32 | matchParameters (const ParameterTable &bindings) |
| UInt32 | matchParameters (const agx::ParameterBindingVector &bindings) |
| UInt32 | matchParameters (agx::ParameterBindingVector &bindings, bool allowFormatPromotions) |
| void | print () const |
| void | print (std::ostream &stream) const |
| void | printBindings () |
| void | printBindings (std::ostream &stream) |
| virtual void | printSubtree () const override |
| void | printSubtree (std::ostream &stream, int depth=0) const |
| virtual void | rebind () override |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | removeAllObjects () |
| Remove all components. More... | |
| void | removeDependency (agx::Task *parent) |
| Remove a dependency. More... | |
| void | removeListener (EventListener *listener) |
| virtual void | removeObject (agx::Object *object) |
| Remove an object from the component. More... | |
| void | removeObject (const agx::Name &name, size_t index=0) |
| Remove an object with a specified name (and optional index) from the component. More... | |
| void | removeParameter (agx::Parameter *parameter) |
| Remove a parameter. More... | |
| void | removeParameter (size_t index) |
| void | replace (agx::Task *other) |
| Replace the task with another task by rerouting the dependencies. More... | |
| void | resetAccumulationTimers (bool recursive=true) |
| Reset accumulated performance statistics. More... | |
| virtual void | run () |
| Execution callback. More... | |
| void | save (agx::TiXmlElement *parent) const override |
| virtual void | save (TiXmlElement *) const |
| virtual void | setContext (agx::Object *context) override |
| void | setDispatch (const Job::Delegate &dispatchCallback) |
| Specify the task dispatch to execute. More... | |
| void | setEnable (bool flag) |
| Enable/disable a task. More... | |
| void | setId (UInt32 id) |
| void | setModel (agx::Model *model) |
| void | setName (const agx::Name &name) |
| Set the name of the object. More... | |
| virtual void | setTargetThread (agx::Thread *thread) override |
| Set a specific thread which must execute this task. More... | |
| virtual void | snapshot (TiXmlNode *eParent, const String &directory) const override |
| void | traverse (const TraverseCallback &callback) |
| void | traverse (ComponentVisitor *) |
| void | traverse (const Callback1< Task * > &callback, bool breadthFirst=true) |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| virtual void | wait () |
| Block until the task has completed execution. More... | |
Static Public Member Functions | |
| static Component * | _load (TiXmlElement *eComponent, Device *device) |
| static agx::Model * | ClassModel () |
| static agx::String | generateName (const agx::String &bindPath) |
| static const HashSet< Object * > & | getActiveObjects () |
| static bool | getEnableRebind () |
| Should rebinding be allowed? Right now a global setting. More... | |
| static ProfilingMode | getProfilingMode () |
| static Component * | load (const String &path, const Path &_namespace=Path()) |
| static Component * | load (const String &path, Device *device, const Path &_namespace=Path()) |
| static Component * | load (const Path &path, const Name &implementation, Device *device, const Path &_namespace=Path()) |
| static Task * | load (const String &path, Device *device=CpuDevice::instance()) |
| static Task * | load (const char *path, Device *device=CpuDevice::instance()) |
| static Task * | load (TiXmlElement *eTask, Device *device) |
| static Task * | load (const Path &path, Device *device=CpuDevice::instance()) |
| static Task * | load (const Path &path, const Name &implementation, Device *device=CpuDevice::instance()) |
| static Task * | load (const Path &path, const Name &implementation, const agx::ParameterBindingVector ¶meterList, Device *device=CpuDevice::instance()) |
| static Task * | load (const Path &path, const Name &implementation, agx::ParameterBindingVector ¶meterList, bool allowFormatPromotions, Device *device=CpuDevice::instance()) |
| static Object * | load (const String &path, Device *device, const String &type="", size_t instance=0) |
| static Object * | load (const String &path, Device *device, const String &type, const String &attribute, const String &value) |
| static void | load (const String &path, Device *device, ObjectPtrVector &loadedObjects) |
| static TiXmlDocument | openDocument (const String &path) |
| static void | printParameterMatch (UInt32 parameterMatch) |
| static void | setEnableRebind (bool flag) |
| Sets if rebinding of objects should be allowed (Right now a global setting). More... | |
| static void | setProfilingMode (ProfilingMode mode) |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Public Attributes | |
| ObjectEvent | addObjectEvent |
| ParameterEvent | addParameterEvent |
| Triggered when a parameter is added. More... | |
| ExecutionEvent | completionEvent |
| Triggered after the task has completed. More... | |
| agxData::Val< Bool > | enableParameter |
| Enable/disable the task, normally use setEnable/isEnabled instead. More... | |
| ObjectEvent | removeObjectEvent |
| ParameterEvent | removeParameterEvent |
| Triggered when a parameter is removed. More... | |
| ExecutionEvent | startEvent |
| Triggered before the task begins. More... | |
Protected Member Functions | |
| void | allocateObserverVector () const |
| void | connectToChild (Task *descendant) |
| void | connectToParent (Task *ancestor) |
| void | deleteUsingDeleteHandler () const |
| void | disconnectFromChild (Task *descendant) |
| void | disconnectFromParent (Task *ancestor) |
| void | dispatchBlocking (Thread *thread) |
| void | enableCallback (agxData::Value *enable) |
| String | expandAutoCompletionMatch (const String &query, const StringVector &matchingNames) const |
| virtual Object * | getResourceImpl (const Path &path, agx::Model *model) override |
| void | init () |
| virtual void | parameterAddedCallback (Parameter *) |
| virtual void | parameterRemovedCallback (Parameter *) |
| void | prepareGlobalResultSorting (size_t numJobs) |
| void | registerBufferReadersAndWriters () |
| void | setDevice (Device *device) |
| void | setGroup (TaskGroup *group) |
| virtual void | subtaskAddedCallback (Task *) |
| void | unregisterBufferReadersAndWriters () |
| void | verifyParameters () |
Static Protected Member Functions | |
| static void | addConnection (Task *parent, Task *child) |
| static DeleteHandler * | getDeleteHandler () |
| static bool | hasUnhandledException () |
| static void | removeConnection (Task *parent, Task *child) |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
| static void | signalUnhandledException () |
Protected Attributes | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Definition at line 31 of file BufferPrinter.h.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Event when adding removing child objects.
NOTE: Events are triggered recursively up the parent structure Example: B is added to root node A, one event is triggered (A.addObjectEvent(A, B)). Then when C is added to B two events are triggered (B.addObjectEvent(B, C), and A.addObjectEvent(B,C))
Definition at line 61 of file Component.h.
|
inherited |
|
inherited |
Definition at line 141 of file Component.h.
|
inherited |
Used for tracing mismatched parameter bindings.
|
inherited |
| agx::BufferPrinter::BufferPrinter | ( | Device * | device | ) |
| agx::BufferPrinter::~BufferPrinter | ( | ) |
|
staticinherited |
|
inherited |
Add a dependency.
| parent | The parent dependency. |
|
inherited |
|
virtualinherited |
Add an object to the component.
| object | The object to be added |
| assignContext | True if the child get the component as the context, set to false to allow 'weak' coupled children |
|
inherited |
Add a parameter.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), and agx::InternalData::getOrCreate().
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
|
virtualinherited |
Reimplemented in agx::Namespace.
|
inherited |
|
overridevirtualinherited |
Reimplemented from agx::Object.
Reimplemented in agxData::Buffer, and agx::Model.
|
staticinherited |
|
overridevirtualinherited |
Reimplemented from agx::Component.
Reimplemented in agx::Kernel, and agx::UnresolvedTask.
|
inherited |
|
protectedinherited |
|
protectedinherited |
|
inherited |
|
inherited |
Execute the task.
The call will not return until the task execution has completed.
Referenced by agx::ParallelRaContainerKernel< T, argument_type >::doExecute(), agxSDK::MergeSplitParallelReferencedDataKernel< T >::execute(), agx::IndexLambdaKernel::executeEx(), and agxModel::triangleIterator().
|
protectedinherited |
|
inherited |
Referenced by agx::ScalarParameter::get(), agx::ArrayParameter::get(), agxData::Buffer::getArray(), and agxData::Buffer::getElement().
|
inherited |
|
inherited |
|
staticinherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 712 of file Task.h.
Referenced by agx::Task::getArrayParameter().
|
inherited |
Definition at line 713 of file Task.h.
References agx::Task::getArrayParameter().
|
inherited |
Referenced by agx::Object::getAutoScopedResource().
|
inherited |
|
inherited |
Definition at line 428 of file Object.h.
References agx::Object::getAutoScopedResource(), and agx::Referenced::is().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 373 of file Object.h.
Referenced by agxData::Value::get(), and agx::Model::getNamespace().
|
inherited |
|
inherited |
|
staticprotectedinherited |
|
inherited |
Definition at line 222 of file Component.h.
Referenced by agx::Component::getDevice().
|
inherited |
Definition at line 223 of file Component.h.
References agx::Component::getDevice().
|
inherited |
|
inherited |
|
inherited |
|
staticinherited |
Should rebinding be allowed? Right now a global setting.
|
inherited |
|
inherited |
Definition at line 370 of file Object.h.
Referenced by agxData::EntityStorage::indexToId().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 369 of file Object.h.
Referenced by agxData::Value::get(), agxData::EntityStorage::get(), agxData::FormatBinding< T >::getFormat(), and agxData::EntityPtr::operator()().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 194 of file Component.h.
Referenced by agxData::EntityPtr::operator()().
|
inherited |
Definition at line 195 of file Component.h.
|
inherited |
Definition at line 197 of file Component.h.
|
inherited |
Definition at line 198 of file Component.h.
|
inherited |
|
inherited |
|
inherited |
Definition at line 192 of file Component.h.
Referenced by agx::Component::getObjects().
|
inherited |
|
inherited |
|
inherited |
Definition at line 241 of file Component.h.
References agx::Component::getObjects().
|
inherited |
Definition at line 706 of file Task.h.
Referenced by agx::Task::getParameter().
Definition at line 707 of file Task.h.
References agx::Task::getParameter().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Referenced by agxData::EntityStorage::dereferenceMultipliedAttribute(), agx::ScalarParameter::get(), agx::ArrayParameter::get(), agx::PointerParameter::get(), agxData::EntityInstance::verifyIndex(), and agxData::EntityPtr::verifyIndex().
|
inherited |
| root | A node along the parent path from this object. |
|
inherited |
Definition at line 715 of file Task.h.
Referenced by agx::Task::getPointerParameter().
|
inherited |
Definition at line 716 of file Task.h.
References agx::Task::getPointerParameter().
|
overridevirtualinherited |
Implements agx::Task.
|
overridevirtualinherited |
Implements agx::Task.
|
staticinherited |
|
inherited |
|
inherited |
Referenced by agx::Object::getResource().
|
inherited |
|
inherited |
Definition at line 414 of file Object.h.
References agx::Object::getResource(), and agx::Referenced::is().
|
inherited |
|
overrideprotectedvirtualinherited |
Reimplemented from agx::Component.
|
inherited |
|
inherited |
|
inherited |
Definition at line 709 of file Task.h.
Referenced by agx::Task::getScalarParameter().
|
inherited |
Definition at line 710 of file Task.h.
References agx::Task::getScalarParameter().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
staticprotectedinherited |
|
protectedinherited |
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::Buffer::getElement(), and agx::Object::getResource().
|
inherited |
|
inherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
Definition at line 379 of file Object.h.
References agx::Object::load().
|
staticinherited |
Definition at line 386 of file Object.h.
References agx::Object::load().
|
staticinherited |
|
inherited |
|
inherited |
|
inherited |
|
staticinherited |
Reimplemented in agx::Kernel.
Reimplemented in agx::Kernel.
|
protectedinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
overridevirtualinherited |
Reimplemented from agx::Object.
|
inherited |
|
overridevirtualinherited |
Reimplemented from agx::Component.
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
Referenced by agxData::Val< UInt >::Val().
|
protectedinherited |
|
inherited |
Remove all components.
Remove a dependency.
| parent | The parent dependency. |
|
inherited |
|
virtualinherited |
Remove an object from the component.
Remove an object with a specified name (and optional index) from the component.
|
inherited |
Remove a parameter.
|
inherited |
Replace the task with another task by rerouting the dependencies.
|
inherited |
Reset accumulated performance statistics.
|
virtual |
Execution callback.
Override in subclass, only called if no dispatchCallback is registered.
Reimplemented from agx::SerialTask.
|
overrideinherited |
|
inlinevirtualinherited |
Reimplemented in agx::Clock.
|
overridevirtualinherited |
Reimplemented from agx::Object.
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
|
inherited |
Specify the task dispatch to execute.
|
inherited |
Enable/disable a task.
When disabled, it is bypassed in the execution path.
|
staticinherited |
Sets if rebinding of objects should be allowed (Right now a global setting).
Allowing it when adding larger parts to the system tree might hit performance, so it might be smarter to disable it first, then add, and then enable again.
|
inherited |
|
staticinherited |
|
overridevirtualinherited |
Set a specific thread which must execute this task.
Reimplemented from agx::Task.
|
staticprotectedinherited |
|
overridevirtualinherited |
Reimplemented from agx::Object.
|
inherited |
|
inherited |
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
|
protectedinherited |
|
staticinherited |
|
protectedinherited |
|
inherited |
Definition at line 63 of file Component.h.
|
inherited |
|
inherited |
|
inherited |
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
|
inherited |
Definition at line 64 of file Component.h.
|
inherited |
|
inherited |