#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. | |
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.
|
|
A RodPrimList with a particular index.
|
|
Copy and keep data to end of life.
|
|
If data is non zero then take ownership of the provided memory block.
|
|
Clear all datastructures. This deletes the contents of the RodPrimList as well as all the data buffers it owns. |