ParserCache Class Reference

#include <c4d_general.h>

详细描述

Class to hold cached parser data.

注意
Has to be created with Alloc() and destroyed with Free() 。使用 AutoAlloc to automate the allocation and destruction based on scope.

公共成员函数

Bool   CopyTo ( ParserCache *dest)

静态公共成员函数

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

私有成员函数

  ParserCache ()
  ~ParserCache (void)

构造函数 & 析构函数文档编制

◆  ParserCache()

ParserCache () private

◆  ~ParserCache()

~ ParserCache ( void  )
private

成员函数文档编制

◆  Alloc()

static ParserCache * Alloc ( void  )
static

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

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

◆  Free()

static void Free ( ParserCache *&  p )
static

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

参数
[in,out] p The 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.

参数
[out] dest The destination parser cache. The caller owns the pointed parser cache.
返回
true if successful, otherwise false .