Teamcenter C++ API Reference  2312
Classes | Namespaces | Enumerations | Functions
PackedMemoryBuilder.hxx File Reference
#include <map>
#include <set>
#include <string.h>
#include <vector>
#include <base_utils/base_utils_errors.h>
#include <base_utils/IFail.hxx>
#include <base_utils/Mem.h>
#include <base_utils/SharedPtr.hxx>

Go to the source code of this file.

Classes

struct  Teamcenter::PackedMemory::Builder< T, Alloc >::BackRefData
 Struct to efficiently add a back reference to a mapped pointer. More...
 
class  Teamcenter::PackedMemory::Builder< T, Alloc >
 Provides a template class to help generating packed memory for ITK function and class methods returning OF type data. More...
 
struct  Teamcenter::PackedMemory::DefaultAllocator
 This is the default memory allocator used by the Builder. More...
 
struct  Teamcenter::PackedMemory::Builder< T, Alloc >::StringData
 Struct to efficiently store unique string we have added to the builder. More...
 

Namespaces

namespace  Teamcenter
 A convenient C++ class to manage a list of tag_t. This convenient class is derived from TagList class which is only available for internal developers.
 
namespace  Teamcenter::PackedMemory
 

Enumerations

enum  Teamcenter::PackedMemory::CreateMode { Teamcenter::PackedMemory::AllowOverride, Teamcenter::PackedMemory::NoOverride, Teamcenter::PackedMemory::NoMarking }
 Allows controlling the packing mode when creating the buffer. More...
 

Functions

size_t Teamcenter::PackedMemory::getAlignedSize (size_t datasize)
 

Detailed Description

Provides a template class to help generating packed memory for ITK function and class methods returning OF data. It can easily get a little tricky when you return a data structure from an ITK that is more then a fixed array of element like an array of tag_t.

Note
All dynamic memory returned from the ITK functions must be freeable with a single call to MEM_free.

Definition in file PackedMemoryBuilder.hxx.