Allocator to customize Value internal map.
Below is an example of a simple implementation (default implementation actually use memory pool for speed).
class DefaultValueMapAllocator : public ValueMapAllocator
{
public:
virtual ValueInternalMap *
newMap()
{
return new ValueInternalMap();
}
virtual ValueInternalMap *
newMapCopy(
const ValueInternalMap &other )
{
return new ValueInternalMap( other );
}
{
delete map;
}
{
return new ValueInternalLink[size];
}
{
delete [] links;
}
{
return new ValueInternalLink();
}
{
delete link;
}
};
Definition at line 582 of file value.h.