#include <primListWrapper.h>
Public Member Functions | |
PrimListWrapper () | |
Create a default RodPrimList. | |
PrimListWrapper (unsigned int index) | |
A RodPrimList with a particular index. | |
void | clear () |
Clear all datastructures. | |
void | addPrimitive (const SctPixelRod::RodPrimitive &prim, long *data=0) |
If data is non zero then take ownership of the provided memory block. | |
void | addPrimitive (long length, long index, long prim, long rev, const long *data) |
Copy and keep data to end of life. | |
~PrimListWrapper () | |
Data Fields | |
std::auto_ptr< SctPixelRod::RodPrimList > | list |
std::list< long * > | data |
Why? When a RodPrimitive is created a buffer containing the primitive is passed to the constructor. This remains under the ownership of the caller, but is used by RodPrimitive, and especially RodPrimList in the call buildList.
PrimListWrapper allows the caller to pass ownership, so the memory buffer isn't leaked.
Definition at line 24 of file primListWrapper.h.
|
Create a default RodPrimList.
Definition at line 9 of file primListWrapper.cxx. |
|
A RodPrimList with a particular index.
Definition at line 10 of file primListWrapper.cxx. |
|
Copy and keep data to end of life.
Definition at line 24 of file primListWrapper.cxx. |
|
If data is non zero then take ownership of the provided memory block.
Definition at line 17 of file primListWrapper.cxx. |
|
Clear all datastructures. This deletes the contents of the RodPrimList as well as all the data buffers it owns. Definition at line 12 of file primListWrapper.cxx. References list. |