ParserCache Class Reference

#include <c4d_general.h>

Detailed Description

Class to hold cached parser data.

Note
Has to be created with Alloc() and destroyed with Free(). Use AutoAlloc to automate the allocation and destruction based on scope.

Public Member Functions

Bool CopyTo (ParserCache *dest)
 

Static Public Member Functions

static ParserCacheAlloc (void)
 
static void Free (ParserCache *&p)
 

Private Member Functions

 ParserCache ()
 
 ~ParserCache (void)
 

Constructor & Destructor Documentation

◆ ParserCache()

ParserCache ( )
private

◆ ~ParserCache()

~ParserCache ( void  )
private

Member Function Documentation

◆ Alloc()

static ParserCache* Alloc ( void  )
static

Allocates a parser cache. Destroy the allocated parser cache with Free(). Use AutoAlloc to automate the allocation and destruction based on scope.

Returns
The allocated parser cache, or nullptr if the allocation failed.

◆ Free()

static void Free ( ParserCache *&  p)
static

Destructs parser caches allocated with Alloc(). Use AutoAlloc to automate the allocation and destruction based on scope.

Parameters
[in,out]pThe parser cache to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards.

◆ CopyTo()

Bool CopyTo ( ParserCache dest)

Copies the parser cache.

Parameters
[out]destThe destination parser cache. The caller owns the pointed parser cache.
Returns
true if successful, otherwise false.